Hi there,

I have a hopefully simple question.

Why is it, that a PdfCopy/SmartCopy doe's not worry about paper sizes and
rotations when adding 
an imported page via copy.addPage(page) and a writer does worry via
writer.addtemplate(page).

Why im asking this?

My problem is, that i want to merge pages but also scale them down and have
them exceute a custom
PdfPageEventHelper so that I get the same page, a little smaller with header
and footer.

It seems Copy/Smart does not trigger the OnEndPageEvent() and can't scale
the imported page.
So I have to use the Writer and addtemplate(page, matrix) to get the desired
result. 

There lies my problem -  now it seems I have to worry about paper sizes and
rotation. 
Rotations/scaling I can handle with a matrix, but the resulting pages does
not have the same size as the imported page. 

How do I set them to match the source page size. When using 
  document.setPageSize(importedPage.getSize());
  document.newPage();

I get wired results - even if I use 
 importedPage.getSizeWithRotation(); (on rotated pages)

the result size is diffent from the source size. 
Is there a way to get/set the size the way Copy/SmartCopy does it? 





--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/itext-PdfCopy-SmartCopy-vs-PdfWriter-tp4655915.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to