public inbox for virtio-comment@lists.linux.dev
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Cc: virtio-comment@lists.linux.dev, "Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [RFC PATCH v1 0/2] Embed files as PDF attachments
Date: Sun, 15 Sep 2024 07:11:06 -0400	[thread overview]
Message-ID: <20240915071049-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <v1-proposal-attachfiles.manos.pitsidianakis@linaro.org>

On Sun, Sep 15, 2024 at 10:56:29AM +0300, Manos Pitsidianakis wrote:
> The PDF specs allow for file attachments to documents. This can be used 
> to make the VIRTIO PDF spec a single source of truth by embedding 
> related files.
> 
> This series attaches the virtio-queue.h header file as a proof of 
> concept. It can be inspected and extracted using a compliant PDF viewer 
> such as Adobe's or Firefox's integrated PDF reader.
> 
> (Note: I'm not sure if Chrome supports it, my local version does not, 
> neither does Chromium.)
> 
> Programmatically extracting files is also possible, allowing for 
> downstream projects to update their headers by accessing the upstream 
> pdf file.
> 
> Example using the `pdfdetach` utility from the Xpdf package of tools 
> (`poppler-utils` package on debian/ubuntu):
> 
>   $ pdfdetach -list virtio-v1.3-csd01.pdf
>   1 embedded files
>   1: virtio-queue.h
>   $ pdfdetach -save 1 virtio-v1.3-csd01.pdf
>   $ file virtio-queue.h
>   virtio-queue.h: C source, ASCII text


Really cool, thank you Manos!

> Manos Pitsidianakis (2):
>   specvars.tex: Add \virtioauthor command
>   Embed virtio-queue.h as PDF attachment
> 
>  commands-html.tex |  7 +++++++
>  commands-pdf.tex  | 10 ++++++++++
>  headerfile.tex    |  2 ++
>  specvars.tex      |  3 ++-
>  virtio.tex        |  1 +
>  5 files changed, 22 insertions(+), 1 deletion(-)
> 
> 
> base-commit: b495841a8e80d12c1130f8868f4128866291142d
> -- 
> γαῖα πυρί μιχθήτω
> 


  parent reply	other threads:[~2024-09-15 11:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-15  7:56 [RFC PATCH v1 0/2] Embed files as PDF attachments Manos Pitsidianakis
2024-09-15  7:56 ` [RFC PATCH v1 1/2] specvars.tex: Add \virtioauthor command Manos Pitsidianakis
2024-09-15  7:56 ` [RFC PATCH v1 2/2] Embed virtio-queue.h as PDF attachment Manos Pitsidianakis
2024-09-15 11:11 ` Michael S. Tsirkin [this message]
2024-09-15 11:31   ` [RFC PATCH v1 0/2] Embed files as PDF attachments Manos Pitsidianakis
2024-09-15 11:56     ` Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240915071049-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=manos.pitsidianakis@linaro.org \
    --cc=virtio-comment@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox