Correct. The exact behavior as implemented in 3.0.2 is that the
comments are added immediately after the second line of the header for
non-linearized files. For linearized files, the comments are added
after the linearization parameter dictionary, including padding, since
that is required to be contained fully within the first 1024 bytes of
the file.
--Jay
On 09/07/2012 08:22 AM, Leonard Rosenthol wrote:
> I ASSUME that setExtraHeaderText adds it AFTER the two required lines of header, yes??
>
> Leonard
>
> -----Original Message-----
> From: Jay Berkenbilt [mailto:ej...@ql...]
> Sent: Thursday, September 06, 2012 9:40 PM
> To: qpd...@li...
> Subject: [Qpdf-announce] qpdf 3.0.2
>
> I have released version 3.0.2 of qpdf. There are three small changes:
>
> * Bug fix: calling QPDFWriter::setOutputMemory would result in a segmentation fault from write() if setStaticID() was not used
> * New method call QPDFWriter::setExtraHeaderText to add text (typically
> comments) to the PDF header
> * Make it so that you can write the same QPDF object through two different QPDFWriter objects that both have linearization enabled
>
> --Jay
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Qpdf-announce mailing list
> Qpd...@li...
> https://lists.sourceforge.net/lists/listinfo/qpdf-announce
>
|