[iText-questions] Embedded fonts exception while generating PDF/A

2011-07-27 Thread myworld.amol
Hello, I am using iText 2.1.7 jar to create PDF/A. When i try to Embedd font Helvetica by creating BaseFont object,it returns me BaseFont object of Helvitica but embedded flag is false. BaseFont baseFont = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.WINANSI, BaseFont.EMBEDDED); Here,even tho

[iText-questions] Antw.: Inaccuracy scaling imported pages

2011-07-27 Thread Markus Meyer
Paulo thank you very much, works perfectly now! Are there any side effects of this setting since it is switched off by default? Just curious @Mark: I actually tried a few viewers but it looks the same in all of them. Thanks again! Markus Gesendet mit meinem HTC - Reply message -

Re: [iText-questions] concatenating an XFA form with static pdf

2011-07-27 Thread Sailesh K
can I call a web service from an acroform...what are the capabilities of acroforms and can they be merged with a static pdf... thanks in advance --- On Wed, 7/27/11, 1T3XT BVBA wrote: From: 1T3XT BVBA Subject: Re: [iText-questions] concatenating an XFA form with static pdf To: "Post all your q

Re: [iText-questions] Inaccuracy scaling imported pages

2011-07-27 Thread Mark Storer
And it's possible that the precision issue is with your PDF viewer, not the data given to that viewer. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; From: Paulo Soares [mailto:psoa...

Re: [iText-questions] Inaccuracy scaling imported pages

2011-07-27 Thread Paulo Soares
This looks like a precision problem. You can increase the precision by calling ByteBuffer.HIGH_PRECISION = true. Paulo - Original Message - From: Markus Meyer To: iText Questions List Sent: Wednesday, July 27, 2011 9:17 PM Subject: [iText-questions] Inaccuracy scaling importe

[iText-questions] Inaccuracy scaling imported pages

2011-07-27 Thread Markus Meyer
Hi, when importing pages, an inaccuracy occurs. Consider the following example: public static void main(String[] args) throws Exception { Document doc = new Document(new Rectangle(0, 0, pt(500), pt(500))); PdfWriter writer = PdfWriter.getInstance(doc,

Re: [iText-questions] Document getBottomMargin() bug?

2011-07-27 Thread Jason Berk
import java.io.File; import java.io.FileOutputStream; import com.itextpdf.text.BaseColor; import com.itextpdf.text.Document; import com.itextpdf.text.Element; import com.itextpdf.text.PageSize; import com.itextpdf.text.Phrase; import com.itextpdf.text.Rectangle; import com.itextpdf.text.pdf.Column

[iText-questions] Rotation of PDF with pdfsmartcopy?

2011-07-27 Thread Botte, John
I am currently using pdfsmartcopy to merge documents that have annotations. Is there a way to rotate these documents without using a writer and maintaining annotations? Thanks, John -- Got Input? Slash

[iText-questions] Document getBottomMargin() bug

2011-07-27 Thread Jason Berk
I will send up a sample to illustrate, but here's the just of it. I change page margins in the onEndPage event, so the changes will affect the next page. When I add my table to the document via doc.add(myTable), the new margins are respected and my PDF looks great. What's funny is that if use do

Re: [iText-questions] Adding text to existing PDF is not working for all PDF documents

2011-07-27 Thread Mathias Weiser
Thank you very much for that information! Unfortunately I get that PDF from another application I can't change, but as long as I know that the dimensions are a abit weird I can handle that in my code :-) Thanks again for your quick and valuable help! >On 27/07/2011 17:21, 1T3XT BVBA wrote: >> T

Re: [iText-questions] Adding text to existing PDF is not working for all PDF documents

2011-07-27 Thread 1T3XT BVBA
On 27/07/2011 17:21, 1T3XT BVBA wrote: > The lower left corner of the page in NotWorking.pdf has coordinate > 0,0; the upper right corner 595.3, -841.9. > In other words: the right corner is to the left of the left corner? > How is that possible? Sorry: I meant to say: The upper-right corner is

Re: [iText-questions] Adding text to existing PDF is not working for all PDF documents

2011-07-27 Thread 1T3XT BVBA
On 27/07/2011 17:04, Mathias Weiser wrote: > Attached are 2 PDF documents, both empty, for one the code is working, for > the other not. The lower left corner of the page in Working.pdf has coordinate 0,0; the upper right corner 612,792. If you add something at coordinate 400,400, it's visible.

[iText-questions] Adding text to existing PDF is not working for all PDF documents

2011-07-27 Thread Mathias Weiser
Hi everybody, I have a problem adding text to an existing PDF document. The code looks like: public class PdfTest {     public static void main(String[] args) throws Exception     {         PdfReader reader = new PdfReader("Empty.pdf");         PdfStamper stamper = new PdfStamper(reader, new Fil

[iText-questions] Problems detecting page sizes of PDF documents

2011-07-27 Thread John Renfrew
Another issue is that there are MANY ways of getting a piece of A4 too. We come across InDesign, Word, and printer pages that all vary slightly so when adding stationery as a template do a bit of maths that says if either dimension is with 3 for a4 and 2 for a5 then assume it is actually the sam

Re: [iText-questions] Find/Replace Text in Existing PDF?

2011-07-27 Thread Alexis Pigeon
Hi Darren, On 27 July 2011 14:09, sesshomurai wrote: > Hi, > I read that thread but I didn't find it informative. Given that iText > loads a PDF > into a structured format, is it possible to analyse the text elements of > that PDF? > Your assumptions are wrong. The structure used by iText whe

Re: [iText-questions] Find/Replace Text in Existing PDF?

2011-07-27 Thread sesshomurai
Hi, I read that thread but I didn't find it informative. Given that iText loads a PDF into a structured format, is it possible to analyse the text elements of that PDF? And if so, it should be possible to replace those structured elements with new ones with the appropriate visual settings? I

Re: [iText-questions] concatenating an XFA form with static pdf

2011-07-27 Thread 1T3XT BVBA
On 27/07/2011 13:13, Sailesh K wrote: > anything wrong with this approach? You're trying something that isn't possible with iText. A form created in Livecycle is an XFA form, not an AcroForm. XFA forms are XML based, they don't consist of PDF objects such as field dictionaries, field arrays,... If

[iText-questions] concatenating an XFA form with static pdf

2011-07-27 Thread Sailesh K
Hi, I recently tried to merge a survey form that I created in Livecycle designer (that makes a web service call) with a static pdf file using the itext api concatenate code. the resulting pdf had the an error page for where the form should have been indicating it would 'appear shortly' but never

Re: [iText-questions] "Template not rendering as expected" Forum Post

2011-07-27 Thread 1T3XT BVBA
On 27/07/2011 1:08, James Butenhoff wrote: > Bruno (& folks), > > Using the unmodified MovieCountries1.java from SVN (Rev. 4521) and > several JVMs, I continue to generate the same problem my own code > experiences. Thank you for the bug report. The problem was introduced in iText 5.1.1. It's fix

Re: [iText-questions] How to merge pdf with different page size.

2011-07-27 Thread 1T3XT BVBA
On 27/07/2011 10:22, me_gem69 wrote: > how do i merge pdf using itext when the pdf's i need to merge are of > different size. one is European A4& other is US A4 and merging also leaves > extra margin on top& left side of the page. Please go to http://affiliate.manning.com/idevaffiliate.php?id=22

[iText-questions] How to merge pdf with different page size.

2011-07-27 Thread me_gem69
how do i merge pdf using itext when the pdf's i need to merge are of different size. one is European A4 & other is US A4 and merging also leaves extra margin on top & left side of the page. I am using the following code. Please help as in the merged pdf the page difference is visible & even the mar

[iText-questions] R: Problems detecting page sizes of PDF documents

2011-07-27 Thread Bassini Massimo
Thank you very much. That's the correct explanation. There was a CropBox smaller than the media box. Once set the CropBox equal to the mediabox size, for example, then everything's ok. Thank you again! Massimo -Messaggio originale- Da: 1T3XT BVBA [mailto:i...@1t3xt.info] Inviato: 27 Ju

[iText-questions] R: Problems detecting page sizes of PDF documents

2011-07-27 Thread Bassini Massimo
Thanks for the reply, but nothing changes from the "size" point of view if I use the GetPageSize instead of GetPageSizeWithRotation. Still I get the A4 size and I don't know why. Would it be useful if I attach the PDF that generates the problem? Thanks Massimo Da: Mark Storer [mail

Re: [iText-questions] "Template not rendering as expected" Forum Post

2011-07-27 Thread 1T3XT BVBA
On 27/07/2011 1:08, James Butenhoff wrote: > Using the unmodified MovieCountries1.java from SVN (Rev. 4521) and > several JVMs, I continue to generate the same problem my own code > experiences Hello, thank you for clarifying. This is actually a bug introduced in iText 5.1.1. We thought we had fi