Re: [Podofo-users] Setting PDF version
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: Dominik S. <dom...@we...> - 2007-07-31 13:20:15
|
Hi,
This was currently indeed not possible. I commited a small patch so that yo=
u=20
can set the PDF version in the constructor of a PdfStreamedDocument.
best regards,
Dom
Am Monday 30 July 2007 schrieb Jonathan Sibony:
> Small question,
>
> I guess that in order that the UserUnit would take effect, the pdf
> version should be of 1.6 or else this key would be ignored.
>
> How do i set the pdf version in PdfStreamedDocument? (the only
> SetPdfVersion I see is in PdfDocument).
>
> Thanks!
> Jonathan.
>
>
>
> -----Original Message-----
> From: dom...@we... [mailto:dom...@we...]
> Sent: Tuesday, July 24, 2007 2:09 PM
> To: pod...@li...
> Cc: Jonathan Sibony
>
> > 2. If I choose to write down the streams to files using your
> > library, how do I preserve the DPI (I know that before 1.6, a point
>
> was
>
> > set to 1/72 inch dictating a resolution, in 1.6 I can play with my
>
> media
>
> > box vs. my image dimensions to get what I want).
> > (I guess that changing the default ePDFVersion param at the
> > PDFImmediateWriter constructor to 1_6 is not enough)
>
> I think
>
> PdfPage* pPage =3D ....;
> pPage->GetObject()->GetDictionary().AddKey( PdfName("UserUnit"), 75.000
> );
>
> should help.
>
> best regards,
> Dom
>
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Podofo-users mailing list
> Pod...@li...
> https://lists.sourceforge.net/lists/listinfo/podofo-users
=2D-=20
**********************************************************************
Dominik Seichter - dom...@we...
KRename - http://www.krename.net - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************
|