I suggest you step through the source, find out where the problem lies,
and change it.  Open Source is great like that.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
Autonomy Corp., an HP Company
 

> -----Original Message-----
> From: Billy Anachronism [mailto:[email protected]] 
> Sent: Tuesday, October 25, 2011 8:29 PM
> To: [email protected]
> Subject: [iText-questions] How do you stop iText from 
> automatically adding cm operators to content streams?
> 
> Hi,
> 
> I am having problems working with iText and scanned PDFs.
> 
> Scanned PDFs sometimes have the dimensions of a "landscape" 
> document (e.g.
> horizontal A4) but are rotated to be "portrait" when viewing 
> in a PDF reader. When I try to append content to these 
> documents with PDFStamper, It seems that iText figures out 
> that if it appends content as-is, it will appear sideways; so 
> it tries to compensate for this by appending a cm to the 
> start of either UnderContent or OverContent (depending on 
> what is used). For example, when modifying an A4 PDF with the 
> dimensions 842.40 x 595.44 and the flag /Rotate 270 on each 
> page, iText adds "0 -1 1 0 0 595.44 cm" to each newly added 
> content stream.
> 
> The problem is that when you use UnderContent and 
> OverContent, iText will add a cm each time which can mean 
> (depending on what you do with
> UnderContent) that the OverContent will appear "out of phase".
> 
> Is there any way to stop iText from adding cm operators? My 
> work-around at the moment is to manually append a "Q" after 
> the cm which is probably not an ideal solution.
> 
> Thanks
> 
> Billy
> 
> --
> View this message in context: 
> http://itext-general.2136553.n4.nabble.com/How-do-you-stop-iTe
xt-from-automatically-adding-cm-operators-to-content-streams->
tp3939221p3939221.html
> Sent from the iText - General mailing list archive at Nabble.com.
> 
> --------------------------------------------------------------
> ----------------
> The demand for IT networking professionals continues to grow, 
> and the demand for specialized networking skills is growing 
> even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn 
> about Cisco certifications, training, and career opportunities. 
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> 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
> 
> 

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
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