Hi,

This was currently indeed not possible. I commited a small patch so that you 
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 24, 2007 2:09 PM
> To: podofo-users@lists.sourceforge.net
> 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 = ....;
> 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
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users



-- 
**********************************************************************
Dominik Seichter - [EMAIL PROTECTED]
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
**********************************************************************

Attachment: pgp5aB88hS5w5.pgp
Description: PGP signature

-------------------------------------------------------------------------
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
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to