|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
PdfStamper.getImportedPage() and the usage of PdfImportedPage (assumption to be verified and two questions)Hi all iText cracks,
please verify my assumption: PdfStamper.getImportedPage() copies the content stream and its resources to the writer (stamper) as an external XObject (Form XObject). Each getImportedPage() increases therefor the size of the resulting document, independent of whether the XObject is referenced or not. My question: The imported page (external XObject) can be referenced in the following two ways: PdfContentByte.addTemplate(...) or PdfContentByte.addImage(...) when wrapping the PdfImportedPage object with an Image instance. Reasons the wrap the imported page in an image (performance, content stream aspects, etc) ? Thanks and kind regards, Martin ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ |
|
|
Re: PdfStamper.getImportedPage() and the usage of PdfImportedPage (assumption to be verified and two questions)Reasons the wrap the imported page in an image: convenience. It's easier to scale and rotate an image. There's no performance or size impact.
Paulo ________________________________________ From: martin.weiss@... [martin.weiss@...] Sent: Friday, November 06, 2009 2:44 PM To: itext-questions@... Subject: [iText-questions] PdfStamper.getImportedPage() and the usage of PdfImportedPage (assumption to be verified and two questions) Hi all iText cracks, please verify my assumption: PdfStamper.getImportedPage() copies the content stream and its resources to the writer (stamper) as an external XObject (Form XObject). Each getImportedPage() increases therefor the size of the resulting document, independent of whether the XObject is referenced or not. My question: The imported page (external XObject) can be referenced in the following two ways: PdfContentByte.addTemplate(...) or PdfContentByte.addImage(...) when wrapping the PdfImportedPage object with an Image instance. Reasons the wrap the imported page in an image (performance, content stream aspects, etc) ? Thanks and kind regards, Martin Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ |
|
|
Re: PdfStamper.getImportedPage() and the usage of PdfImportedPage (assumption to be verified and two questions)martin.weiss@... wrote:
> Hi all iText cracks, > please verify my assumption: > PdfStamper.getImportedPage() copies the content stream and its resources to the writer (stamper) as an external XObject (Form XObject). Each getImportedPage() increases therefor the size of the resulting document, independent of whether the XObject is referenced or not. Correct. > My question: > The imported page (external XObject) can be referenced in the following two ways: PdfContentByte.addTemplate(...) or PdfContentByte.addImage(...) when wrapping the PdfImportedPage object with an Image instance. Reasons the wrap the imported page in an image (performance, content stream aspects, etc) ? Reasons to wrap an imported page inside an Image are: ease of use. If you like calculating the transformation matrix: use addTemplate(); If you like the convenience methods available in Image to scale and rotate the image, wrap the page inside an Image. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ |
| Free embeddable forum powered by Nabble | Forum Help |