Paulo, OK - we're going to investigate - seems like the right place to start is here:
http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/PdfContentByte.html query the current state - then use transform to get to the page size state we want... Thanks, DW -----Original Message----- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 4:57 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Re-sizing Page Size and Cropbox for small <2" x4" input docs > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Webber, David (NIH/OD) [C] > Sent: Wednesday, September 27, 2006 7:49 PM > To: Post all your questions about iText here > Subject: [iText-questions] Re-sizing Page Size and Cropbox > for small < 2" x4" input docs > > We've been getting this to almost work. So close and yet - one last > thing needed. > > What we are doing is taking a bunch of PDFs and then building > one large > PDF using PDFwriter to join them all together as one. > > All works fine for normal 8.5" x 11" page sized doc's > > We're using setPageSize and setCropBox to address PDFs that are larger > than 8.5" x 11" - by resetting their dimensions accordingly to 8.5" x > 11". > > We're also doing that for PDFs that have smaller page sizes with no > cropbox setting. However when a PDF has both smaller page > size and tiny > cropbox size - then what we get is an 8.5" x 11" page with a tiny page > image in the bottom left corner - like the old crop box setting was > still there - but its not of course. > > Is there some special trick to reliable re-sizing PDFs to one uniform > page size? > You can apply a transform to resize the page. Paulo > We've about exhausted combinations with the above technique - we have > just this one last case to solve - where the incoming PDF is using a > tiny page size and a tiny cropbox and then we can declare victory... > > Thanks, DW 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. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
