![](https://secure.gravatar.com/avatar/468d45d9f34c99f0697f0e59e2e73b46.jpg?s=120&d=mm&r=g)
On Tuesday 20 January 2009 08:19:04 am Arthur Reutenauer wrote:
But he did say that his printing shop wants the ability to download just the header information from a pdf rather than the whole pdf file which may be up to 80 mbytes.
OK. That's not Tagged PDF. Tagged PDF's main features focus on accessibility, adding information for the visually impaired (you can, for example, tag some text as part of the page header, by contrast to the page body: an application that reads the document out loud would know not to read that part). It also allows better archiving (the PDF/A standard). All concerns very distinct from the needs of publishers.
I'm just learning about XMP (Extensible Metadata Platform) which Luigi mentioned, but it doesn't really look like it contains the information you mention (although you can apparently add all sort of metadata, including images).
Actually, the kind of information the printing shop asks for is available in any PDF file in a straightforward way: the very format has been designed so that all the PDF objects can be accessed directly with extreme efficience (there is a cross-reference table with the byte offsets to every object inside the file). Individual pages are objects in a PDF file; they contain references to the resources needed to render them (fonts, images, etc.), so the basic functionality to render each page individually is already present in the format. And it's been there from day one -- which is, by the way, the reason why the insides of a PDF file look so undecipherable to the human eye: it's designed to be efficient to process automatically, not to be read by a programmer. By contrast, an XML-based format would be (somewhat) more human-friendly, but much slower to parse.
There's a variation on this basic feature: if you look at a PDF file over the Internet, the cross-reference table isn't conveniently located because it is at the very end of the file; so you need to download the entire file before your PDF viewer can start displaying it (I think the argument behind that design decision was that a PDF-producing application only knows the entire list of objects at the end of the first pass, and can thus output the whole file sequentially in a single pass. Of course that clashes directly with the needs of PDF-consuming applications). To circumvent this, Adobe devised a special type of object that contains the same information as the cross-reference table, which you can put at the very beginning of the file, together with the material needed to render the first pages. This is Linearized PDF (sometimes, confusingly enough, called "optimized" PDF). It's rather unlikely that it'd be what your printer wants (I suppose the file is already available on disk somewhere), but in any case, Ghostscript can produce it with the utility pdfopt. ConTeXt isn't able to produce it; it has been ruled that it was beyond the scope of pdfTeX and luaTeX.
When I get specific information from the printing shop, I'll pass it along.
I'm interested, too.
But needless to say, I'm very concerned. If tagged pdf support is not available in ConTeXt/LuaTeX, I feel that difficulties are either here now, or at best, looming on the horizon.
Why? There's progress made every day. Tagged PDF is indeed a problem for the moment, but it's clearly not the feature your printer asks for, and as a rule, you can be sure that if some functionality is essential to publishers, it will be added quickly to ConTeXt :-)
Thanks again to all for the responses. The information has been very enlightening. I have sent an optimized (I know, badly named,) PDF file off to the publisher and I'm waiting for his response. From all indications on this thread, I'm somewhat optimistic that it will solve the problem. I'll let you know what I hear back. Thanks so much again, Bart