Am Tuesday 24 July 2007 schrieb Jonathan Sibony: > Hello again, > > Your library is very nice! I find it very simple and working well. > > I have some questions regarding the page size that could pose some > serious threat to things I am trying to do. > I am trying to create images for print, my image can get very large > (just imagine a 50x50 inch poster of 720 DPI, RGB. You'd get around 3.7 > GB of image data, quite a lot to fit into memory). > So, image is not read fully into memory, but rather chunk by chunk, each > is stored as a small pdf file (compressed). > Those tiles will be read in time to be put one under the other to create > a seemingly one image (reading the parts to memory is done by your > library). > > First thing that worries me is that any PDF version before 1.6 would > restrict the page size to 14,400 units each axis (where my image could > be of width higher than that, unless I tile along the x as well, which I > prefer not to). > > My questions: > 1. Can the library read streams from pdf1.6 (I encounter problems > with this). In generally this should work. Streams in PDF1.6 are not technically different from streams in previous PDF versions. Do you have a (small) example file?
> 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
> thanks in advance!
> yoni
--
**********************************************************************
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
**********************************************************************
pgpDCirHMoIzd.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 [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
