Re: [iText-questions] The document has been changed since it was created and these rights are no longer valid
Sir, I had read the solution and as per the given suggestion did download the source, did create a new build, which apparently worked well and I did care to reply back to the forum. But, at that time I was using 'setField(...)' option to fill the form but later I have found that some of the files that we received from Govt. are not in Acroform format hence have used to XFA to fill these PDF files. We have managed to fill few forms using XFA but the attached form is throwing the same error that i was getting at the first instance. Hence, I have put my query in the same thread than opening a new thread. Regards Rajeev -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-IKVM-C-stream-to-browser-issues-tp2167197p2530838.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
[iText-questions] Converting RTF files to PDF/A 1A
I need to write a proof of concept that will convert an RTF file to a PDF/A 1A format. From my reading of the iText sample code and documents I concluded that iText was not the correct tool. However, upon further reading perhaps I am incorrect. How do I use the sdk to convert a RTF document to PDF/A 1A? Lucille Wilson Emptoris -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Converting RTF files to PDF/A 1A
No, iText isn't the tool for you. There are, however, NUMEROUS other solutions available today - ranging from commercial to open source, in various programming languages and/or APIs for same. Why would you want to reinvent the wheel instead of using something already out there? Leonard From: Wilson, Lucille [mailto:lwil...@emptoris.com] Sent: Wednesday, September 08, 2010 9:52 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Converting RTF files to PDF/A 1A I need to write a proof of concept that will convert an RTF file to a PDF/A 1A format. From my reading of the iText sample code and documents I concluded that iText was not the correct tool. However, upon further reading perhaps I am incorrect. How do I use the sdk to convert a RTF document to PDF/A 1A? Lucille Wilson Emptoris -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Converting RTF files to PDF/A 1A
Dear Leonard, Thanks for the confirmation. Lucille Wilson From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Wednesday, September 08, 2010 10:20 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Converting RTF files to PDF/A 1A No, iText isn't the tool for you. There are, however, NUMEROUS other solutions available today - ranging from commercial to open source, in various programming languages and/or APIs for same. Why would you want to reinvent the wheel instead of using something already out there? Leonard From: Wilson, Lucille [mailto:lwil...@emptoris.com] Sent: Wednesday, September 08, 2010 9:52 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Converting RTF files to PDF/A 1A I need to write a proof of concept that will convert an RTF file to a PDF/A 1A format. From my reading of the iText sample code and documents I concluded that iText was not the correct tool. However, upon further reading perhaps I am incorrect. How do I use the sdk to convert a RTF document to PDF/A 1A? Lucille Wilson Emptoris -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Converting RTF files to PDF/A 1A
I would create an app that opens the rtf doc with a word processor (ms office), then use an API to print the doc to postscript then use a utility like ps2pdf to generate your PDF. On 2010-09-08, at 8:25 AM, Wilson, Lucille lwil...@emptoris.com wrote: Dear Leonard, Thanks for the confirmation. Lucille Wilson From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Wednesday, September 08, 2010 10:20 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Converting RTF files to PDF/A 1A No, iText isn’t the tool for you. There are, however, NUMEROUS other solutions available today – ranging from commercial to open source, in various programming languages and/or APIs for same. Why would you want to reinvent the wheel instead of using something already out there? Leonard From: Wilson, Lucille [mailto:lwil...@emptoris.com] Sent: Wednesday, September 08, 2010 9:52 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Converting RTF files to PDF/A 1A I need to write a proof of concept that will convert an RTF file to a PDF/A 1A format. From my reading of the iText sample code and documents I concluded that iText was not the correct tool. However, upon further reading perhaps I am incorrect. How do I use the sdk to convert a RTF document to PDF/A 1A? Lucille Wilson Emptoris -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/ -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] New iText site
On 7 September 2010 18:21, Bruno Lowagie br...@lowagie.com wrote: On 7/09/2010 11:56, Alexis Pigeon wrote: However, I would find it even more awesomer if you would consider increasing the font of the main text by one or two units, for readability's sake. OK, done. (You may need to hit the Refresh button to reload the CSS.) This is faaar better! Thx! alexis -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Converting RTF files to PDF/A 1A
Except that you can’t do PDF/A-1a via Postscript, since it requires stuff that can’t be passed through a PS stream. (at least not in a compatible/standard way) Leonard From: Terry Mah [mailto:tandt...@yahoo.com] Sent: Wednesday, September 08, 2010 10:34 AM To: Post all your questions about iText here Cc: Post all your questions about iText here Subject: Re: [iText-questions] Converting RTF files to PDF/A 1A I would create an app that opens the rtf doc with a word processor (ms office), then use an API to print the doc to postscript then use a utility like ps2pdf to generate your PDF. On 2010-09-08, at 8:25 AM, Wilson, Lucille lwil...@emptoris.commailto:lwil...@emptoris.com wrote: Dear Leonard, Thanks for the confirmation. Lucille Wilson From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Wednesday, September 08, 2010 10:20 AM To: itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Converting RTF files to PDF/A 1A No, iText isn’t the tool for you. There are, however, NUMEROUS other solutions available today – ranging from commercial to open source, in various programming languages and/or APIs for same. Why would you want to reinvent the wheel instead of using something already out there? Leonard From: Wilson, Lucille [mailto:lwil...@emptoris.com] Sent: Wednesday, September 08, 2010 9:52 AM To: itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: [iText-questions] Converting RTF files to PDF/A 1A I need to write a proof of concept that will convert an RTF file to a PDF/A 1A format. From my reading of the iText sample code and documents I concluded that iText was not the correct tool. However, upon further reading perhaps I am incorrect. How do I use the sdk to convert a RTF document to PDF/A 1A? Lucille Wilson Emptoris -- This SF.nethttp://SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.netmailto:iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/ -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
[iText-questions] New iText site
Ooooh I agree heartily. Strange that even though we can get the sense of things from books because what we do often is code it suddenly comes to life when shown as a listing with colour highlights on screen. Great piece of work to all those who have taken the time to do it. And surely with some extra input the front of the explanation part of the web could act as the simple route in to iText you talked about recently. Some simple graphics to explain workflows and traps/ common misconceptions/ mistakes could then link to the relevant pointers for where to then read more in the book?? john renfrew Right Way Up Office +44 1675 475341 Fax +44 1675 475342 Mobile +44 7767 443992 From: Alexis Pigeon [mailto:pigeon.ale...@gmail.com] Sent: 08 September 2010 15:41 To: Post all your questions about iText here Subject: Re: [iText-questions] New iText site On 7 September 2010 18:21, Bruno Lowagie br...@lowagie.com wrote: On 7/09/2010 11:56, Alexis Pigeon wrote: However, I would find it even more awesomer if you would consider increasing the font of the main text by one or two units, for readability's sake. OK, done. (You may need to hit the Refresh button to reload the CSS.) This is faaar better! Thx! alexis -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/-- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
[iText-questions] Acro Fields not copied to duplicate pages
I am merging several PDF files that each have acrofields on them. It works when the PDFs are unique, that is, none of the pdfs are the same. If, however, I try to merge two of the same pdf files the form fields only appear on the last copy of the page. So if I have a pdf file and I merge it to itself the acrofields will appear on page 2 only and not on page 1 and 2 like they should. Page 1 is copied but without the fields. How can I fix that? I want the aerofields to appear on each page as in the original documents. I assume then when data is entered on one it will appear on the other...this may be the problem...I don;t know if that is legal in a pdf file, having 2 of the same acrofield. In that case, I would like to rename the fields so they can appear on both forms and not be linked together - In fact, that's probably the best thing anyway. So... 2 questions: Q1: How to make the identical fields appear on each page of the merged copy Q2: How to change the names of the fields during the merge so they are now unique. I can see uses for both of theses situations. Thanks! Here is the asp.vb code (not mine) I am using to combine multiple forms with acrofields: Like I said, it workks great if anyonw needs it, but does not create duplicate acrofileds as desired. Public Shared Function CombineMultiplePDFs(ByVal filenames() As String) As Byte() Dim doc As Document = Nothing Dim writer As PdfCopy = Nothing Dim myStream As New System.IO.MemoryStream() For f As Int16 = 0 To filenames.Length - 1 If File.Exists(filenames(f)) Then Dim reader As PdfReader = New PdfReader(filenames(f)) reader.ConsolidateNamedDestinations() Dim n As Integer = reader.NumberOfPages If f = 0 Then doc = New Document(reader.GetPageSizeWithRotation(1)) writer = New PdfCopy(doc, myStream) doc.Open() End If For i As Int16 = 1 To n If writer IsNot Nothing Then Dim page As PdfImportedPage = writer.GetImportedPage(reader, i) writer.AddPage(page) End If Next Dim form As PRAcroForm = reader.AcroForm If form IsNot Nothing And writer IsNot Nothing Then writer.CopyAcroForm(reader) End If Else 'error: file not found! End If Next f If doc IsNot Nothing Then doc.Close() End If Return myStream.ToArray End Function -- View this message in context: http://itext-general.2136553.n4.nabble.com/Acro-Fields-not-copied-to-duplicate-pages-tp2531514p2531514.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
[iText-questions] PageSize Not Translating to 72 per inch
I'm trying to determine the actual value to create the correct margins on my page, but I seem to be running into an issue. When I create a document using PageSize.A4, which is supposed to be 8.5x11, I get back 595x842. If you divide those values by 72, you get ~8.264x11.694. Am I missing something that's a part of the A4 rectangle? I checked the border values and they're -1. I looked at the documentation on PageSize.A4 and it simply says that it's the A4 format. Any help would be appreciated. Thanks, Steve -- View this message in context: http://itext-general.2136553.n4.nabble.com/PageSize-Not-Translating-to-72-per-inch-tp2531545p2531545.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] PageSize Not Translating to 72 per inch
A4 isn't US Letter. US Letter is 8.5x11. -Original Message- From: shaselsc [mailto:haselschwerdt.step...@aoins.com] Sent: Wednesday, September 08, 2010 11:47 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] PageSize Not Translating to 72 per inch I'm trying to determine the actual value to create the correct margins on my page, but I seem to be running into an issue. When I create a document using PageSize.A4, which is supposed to be 8.5x11, I get back 595x842. If you divide those values by 72, you get ~8.264x11.694. Am I missing something that's a part of the A4 rectangle? I checked the border values and they're -1. I looked at the documentation on PageSize.A4 and it simply says that it's the A4 format. Any help would be appreciated. Thanks, Steve -- View this message in context: http://itext-general.2136553.n4.nabble.com/PageSize-Not-Translating-to-72-per-inch-tp2531545p2531545.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/ -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Acro Fields not copied to duplicate pages
Use PdfCopyFields. Paulo -Original Message- From: kpgraci [mailto:itextsh...@gmail.com] Sent: Wednesday, September 08, 2010 4:34 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Acro Fields not copied to duplicate pages I am merging several PDF files that each have acrofields on them. It works when the PDFs are unique, that is, none of the pdfs are the same. If, however, I try to merge two of the same pdf files the form fields only appear on the last copy of the page. So if I have a pdf file and I merge it to itself the acrofields will appear on page 2 only and not on page 1 and 2 like they should. Page 1 is copied but without the fields. How can I fix that? I want the aerofields to appear on each page as in the original documents. I assume then when data is entered on one it will appear on the other...this may be the problem...I don;t know if that is legal in a pdf file, having 2 of the same acrofield. In that case, I would like to rename the fields so they can appear on both forms and not be linked together - In fact, that's probably the best thing anyway. So... 2 questions: Q1: How to make the identical fields appear on each page of the merged copy Q2: How to change the names of the fields during the merge so they are now unique. I can see uses for both of theses situations. Thanks! Here is the asp.vb code (not mine) I am using to combine multiple forms with acrofields: Like I said, it workks great if anyonw needs it, but does not create duplicate acrofileds as desired. Public Shared Function CombineMultiplePDFs(ByVal filenames() As String) As Byte() Dim doc As Document = Nothing Dim writer As PdfCopy = Nothing Dim myStream As New System.IO.MemoryStream() For f As Int16 = 0 To filenames.Length - 1 If File.Exists(filenames(f)) Then Dim reader As PdfReader = New PdfReader(filenames(f)) reader.ConsolidateNamedDestinations() Dim n As Integer = reader.NumberOfPages If f = 0 Then doc = New Document(reader.GetPageSizeWithRotation(1)) writer = New PdfCopy(doc, myStream) doc.Open() End If For i As Int16 = 1 To n If writer IsNot Nothing Then Dim page As PdfImportedPage = writer.GetImportedPage(reader, i) writer.AddPage(page) End If Next Dim form As PRAcroForm = reader.AcroForm If form IsNot Nothing And writer IsNot Nothing Then writer.CopyAcroForm(reader) End If Else 'error: file not found! End If Next f If doc IsNot Nothing Then doc.Close() End If Return myStream.ToArray End Function -- View this message in context: http://itext-general.2136553.n4.nabble.com/Acro-Fields-not-copied-to-duplicate-pages-tp2531514p2531514.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/ 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. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010.
Re: [iText-questions] New iText site
On 8/09/2010 17:12, John Renfrew wrote: Great piece of work to all those who have taken the time to do it. The design was made by Namahn: http://www.namahn.com/ but I did the technical implementation (the php code and the content). It was a huge effort, especially adding keywords to every example, but I'm pleased with the result. And surely with some extra input the front of the explanation part of the web could act as the simple route in to iText you talked about recently. Some simple graphics to explain workflows and traps/ common misconceptions/ mistakes could then link to the relevant pointers for where to then read more in the book?? Yes, as you can see there are placeholders for specific themes: http://itextpdf.com/themes/ but I don't have the time to add content right now. There's also a forum: http://itextpdf.com/forum/ but for now I keep it closed until I have more time. I am to busy with the finalization of the book and with the creation of the Conference Guide for Devoxx. The book will be presented at http://devoxx.com and I have two sessions of 75 minutes to explain the basic concepts of iText, how the conference was created, and I'll also show some hot new functionality that is in the book. best regards, Bruno -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Acro Fields not copied to duplicate pages
On 8/09/2010 17:34, kpgraci wrote: Q1: How to make the identical fields appear on each page of the merged copy Q2: How to change the names of the fields during the merge so they are now unique. Try this link: http://1t3xt.be/?0f8 -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
[iText-questions] Turkish Character Error
Hello, While with HTML Worker when I am changing the hmtl codes to PDF turkish character (ıIşŞğĞİ) don't come out? -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
[iText-questions] error during signature verification
Hi All! Please help when i want use Smartcard to create Signature after that insert it to PDF file, i get error Error during signature verifycation Fail decoding DER data as binary. follow is all may code. when try test sign i only call SmartCardSignDetached function. public void SmartCardSignDetached() { X509Certificate2 card = GetCertificate(); Org.BouncyCastle.X509.X509CertificateParser cp = newOrg.BouncyCastle.X509. X509CertificateParser(); Org.BouncyCastle.X509.X509Certificate[] chain = newOrg.BouncyCastle.X509. X509Certificate[] { cp.ReadCertificate(card.RawData) }; PdfReader reader = new PdfReader(c:\\test.pdf); PdfStamper stp = PdfStamper.CreateSignature(reader, new FileStream(c:\\ST3_hello_detached.pdf, FileMode.Create), '\0'); PdfSignatureAppearance sap = stp.SignatureAppearance; sap.SetVisibleSignature(new iTextSharp.text.Rectangle(100, 100, 300, 200), 1, null); sap.SignDate = DateTime.Now; sap.SetCrypto(null, chain, null, null); sap.Reason = I like to sign; sap.Location = Universe; sap.Acro6Layers = true; sap.Render = PdfSignatureAppearance.SignatureRender .NameAndDescription; PdfSignature dic = new PdfSignature(PdfName.ADOBE_PPKMS, PdfName .ADBE_PKCS7_DETACHED); dic.Date = new PdfDate(sap.SignDate); dic.Name = PdfPKCS7.GetSubjectFields(chain[0]).GetField(CN); if (sap.Reason != null) dic.Reason = sap.Reason; if (sap.Location != null) dic.Location = sap.Location; sap.CryptoDictionary = dic; int csize = 4000; Hashtable exc = new Hashtable(); exc[PdfName.CONTENTS] = csize * 2 + 2; sap.PreClose(exc); HashAlgorithm sha = new SHA1CryptoServiceProvider(); MemoryStream ss = new MemoryStream(); Stream s = sap.RangeStream; int read = 0; byte[] buff = new byte[8192]; while ((read = s.Read(buff, 0, 8192)) 0) { sha.TransformBlock(buff, 0, read, buff, 0); ss.Write(buff, 0, read); } sha.TransformFinalBlock(buff, 0, 0); byte[] hash = sha.Hash; byte[] pk = SmartCardSign(hash); MessageBox.Show(Verify: + Verify(sap.RangeStream, pk)); byte[] outc = new byte[csize]; PdfDictionary dic2 = new PdfDictionary(); Array.Copy(pk, 0, outc, 0, pk.Length); dic2.Put(PdfName.CONTENTS, new PdfString(outc).SetHexWriting( true)); sap.Close(dic2); } public byte[] SmartCardSign(byte[] msg) { byte[] Bytesignature = null; try { int iSec = ST3.ConnectToken(0); if (iSec.ToString().Length = 8) { int iRe = ST3.Login(iSec, 12345678); int iPriKey = ST3.EnumPrivate(0, iSec, 2); string signature = ST3.Sign(0, iSec, iPriKey, 0, ToHex(msg)); textBox1.Text = signature; MessageBox.Show(signature); int discarded = 0; Bytesignature = HexEncoding.GetBytes(signature, outdiscarded); } } catch (Exception ee) { MessageBox.Show(ee.Message); } return Bytesignature; } public X509Certificate2 GetCertificate() { X509Store st = new X509Store(StoreName.My, StoreLocation .CurrentUser); st.Open(OpenFlags.ReadOnly); X509Certificate2Collection col = st.Certificates; X509Certificate2 card = null; X509Certificate2Collection sel = X509Certificate2UI.SelectFromCollection(col, Certificates, Select one to sign, X509SelectionFlag.SingleSelection); if (sel.Count 0) { X509Certificate2Enumerator en = sel.GetEnumerator(); en.MoveNext(); card = en.Current; } st.Close(); return card; } private string ToHex(byte[] data) { StringBuilder buf = new StringBuilder(); try { int length = data.Length; for (int i = 0; i length; i++) { buf.Append(data[i].ToString(X)); } } catch (Exception ee) { return ; } return buf.ToString(); } Thanks for your help -- This SF.net Dev2Dev email is sponsored by:
Re: [iText-questions] Turkish Character Error
On 8/09/2010 12:38, Sefa TEYEK | iCreso Internet's Creative Solutions wrote: Hello, While with HTML Worker when I am changing the hmtl codes to PDF turkish character (ıIşŞğĞİ) don't come out? Did you declare a FontProvider? If so: which fonts did you use? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] PageSize Not Translating to 72 per inch
And that would be why. I misread something on the wikipedia page that said the Similar ISO A Size. Thanks for the help. -- View this message in context: http://itext-general.2136553.n4.nabble.com/PageSize-Not-Translating-to-72-per-inch-tp2531545p2531730.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Reading text from PDF
Ok, thank you very much. I cannot send the PDF for you to see it because it contains some personal information which is not mine. If I try to modify them, I would have to delete the clip region and then, you won´t be able to see the problem I am talking about. If I success with the PDFStamper class, i will send you the solution, but if not, I will have to ask the person whose personal details are in the PDF, and send them to you so we can work together the answer. Date: Tue, 7 Sep 2010 05:42:03 -0700 From: ke...@trumpetinc.com To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Reading text from PDF Almost certainly, the PDF is not a valid PDF. When you re-save using Acrobat, it is cleaning up the problems. If you can generate a SMALL PDF that demonstrates the problem, we can take a look at it in RUPS and see what the specific issue is (it may be reasonable for iText to just handle the problem). -- View this message in context: http://itext-general.2136553.n4.nabble.com/Reading-text-from-PDF-tp2528925p2529626.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/ -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
[iText-questions] Licensing question
Hello, Looking through the archives, my question was almost but not quite answered here: http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg49530.html We're considering using iText to support a couple of PHP web applications that we develop. Presently, the functionality is provided by a commercial (and closed-source) program that is installed on the server, which we run as a CLI app via the exec() function in PHP. Our idea is to create a CLI wrapper for the iText class that presents a similar calling syntax as the commercial program, and then just swap it in. Thus, only minimal changes needed to the web apps, and we can compile the wrapper app to easily run it in our dev environment. Really, it would be much like Pdftk, which we thought about using but decided against because it appears to be an abandoned project suffering badly from bit-rot. If I understand the terms of the AGPL license, the wrapper application would be covered by AGPL and thus need to be available in source form to any users to whom the binary is available. I don't have a problem with this, though I'm not completely clear to whom it would need to be available in our case (just those who can get on the server and directly run or access the binary?). What I would have a problem with are the web apps - in this scenario, they're not impacted by the AGPL license, right? Regards, -- Bob Williams Developer Technical Lead Newtek Technology Services A Newtek Business Services Company Phone: (602) 263-0300 x12458 Email: rewilli...@newtektechnologyservices.com URL: http://www.newtektechnologyservices.com/ Notice: This communication, including attachments, may contain information that is confidential. It constitutes non-public information intended to be conveyed only to the designated recipient(s). If the reader or recipient of this communication is not the intended recipient, an employee or agent of the intended recipient who is responsible for delivering it to the intended recipient, or if you believe that you have received this communication in error, please notify the sender immediately by return e-mail and promptly delete this e-mail, including attachments without reading or saving them in any manner. The unauthorized use, dissemination, distribution, or reproduction of this e-mail, including attachments, is prohibited and may be unlawful. If you have received this email in error, please notify us immediately by e-mail or telephone and delete the e-mail and the attachments (if any). -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] PDF gets sent as XML in email in IE file -amp; gt; sendas page option
Could we see the PDF? I really don't think this has anything to do with iText, but I'll have a look anyway. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Tuesday, September 07, 2010 12:04 AM To: Post all your questions about iText here Subject: Re: [iText-questions] PDF gets sent as XML in email in IE file -amp; gt; sendas page option On 6/09/2010 11:22, pankaj wrote: Hi Mark, Only the PDF modified by iText gets sent as XML. If we can't reproduce a problem, we can't fix it. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/ No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.851 / Virus Database: 271.1.1/3110 - Release Date: 09/05/10 23:35:00 -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Converting RTF files to PDF/A 1A
To expand on this a bit, iText as a low level SDK can be used to create PDF/A, 1/a or 1/b. I've done 1/b myself, and have worked with marked content/document structure, both with iText (though I believe I ended up rearanging iText's handling of same in each case). I'm quite confident that its possible to do PDF/A 1A with iText, but I don't know that its actually been done yet. All the foundation pieces are in place, but that's it. If you want to be able to call document.add(new paragraph(blah)); and get PDF/A 1a out, there's a Long Way To Go. But it is possible... if you're willing to, as Leonard put it, reinvent the wheel. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Wednesday, September 08, 2010 7:20 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Converting RTF files to PDF/A 1A No, iText isn't the tool for you. There are, however, NUMEROUS other solutions available today - ranging from commercial to open source, in various programming languages and/or APIs for same. Why would you want to reinvent the wheel instead of using something already out there? Leonard From: Wilson, Lucille [mailto:lwil...@emptoris.com] Sent: Wednesday, September 08, 2010 9:52 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Converting RTF files to PDF/A 1A I need to write a proof of concept that will convert an RTF file to a PDF/A 1A format. From my reading of the iText sample code and documents I concluded that iText was not the correct tool. However, upon further reading perhaps I am incorrect. How do I use the sdk to convert a RTF document to PDF/A 1A? Lucille Wilson Emptoris No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.851 / Virus Database: 271.1.1/3120 - Release Date: 09/07/10 23:07:00 -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Reading text from PDF
Another option would be to use com.itextpdf.text.pdf.parser.PdfContentReaderTool to obtain the content stream for the page that is causing problems. The tool should actually fail with the null pointer exception, but you'll get the content stream output before then. Replace the text extraction strategy (which is specified in line 181 of PdfContentReaderTool) with your own TextExtractionStrategy implementation (I would just print the text content to sysout for each call to renderText() ). The last text emitted before the NPE will be the string to search on in the content stream to find the bad array. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Reading-text-from-PDF-tp2528925p2532215.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Licensing question
AGPL entitles anyone who has access to the generated content (the PDFs in this case) access to the source. Which source? Not gonna touch that one. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: Robert Williams [mailto:rewilli...@newtektechnologyservices.com] Sent: Wednesday, September 08, 2010 2:35 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Licensing question Hello, Looking through the archives, my question was almost but not quite answered here: http://www.mail-archive.com/itext-questi...@lists.sourceforge .net/msg49530.html We're considering using iText to support a couple of PHP web applications that we develop. Presently, the functionality is provided by a commercial (and closed-source) program that is installed on the server, which we run as a CLI app via the exec() function in PHP. Our idea is to create a CLI wrapper for the iText class that presents a similar calling syntax as the commercial program, and then just swap it in. Thus, only minimal changes needed to the web apps, and we can compile the wrapper app to easily run it in our dev environment. Really, it would be much like Pdftk, which we thought about using but decided against because it appears to be an abandoned project suffering badly from bit-rot. If I understand the terms of the AGPL license, the wrapper application would be covered by AGPL and thus need to be available in source form to any users to whom the binary is available. I don't have a problem with this, though I'm not completely clear to whom it would need to be available in our case (just those who can get on the server and directly run or access the binary?). What I would have a problem with are the web apps - in this scenario, they're not impacted by the AGPL license, right? Regards, -- Bob Williams Developer Technical Lead Newtek Technology Services A Newtek Business Services Company Phone: (602) 263-0300 x12458 Email: rewilli...@newtektechnologyservices.com URL: http://www.newtektechnologyservices.com/ Notice: This communication, including attachments, may contain information that is confidential. It constitutes non-public information intended to be conveyed only to the designated recipient(s). If the reader or recipient of this communication is not the intended recipient, an employee or agent of the intended recipient who is responsible for delivering it to the intended recipient, or if you believe that you have received this communication in error, please notify the sender immediately by return e-mail and promptly delete this e-mail, including attachments without reading or saving them in any manner. The unauthorized use, dissemination, distribution, or reproduction of this e-mail, including attachments, is prohibited and may be unlawful. If you have received this email in error, please notify us immediately by e-mail or telephone and delete the e-mail and the attachments (if any). -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/ No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.851 / Virus Database: 271.1.1/3120 - Release Date: 09/07/10 23:07:00 -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] The document has been changed since it was created and these rights are no longer valid
Sir, Any suggestions ... Regards Rajeev -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-IKVM-C-stream-to-browser-issues-tp2167197p2532344.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] The document has been changed since it was created and these rights are no longer valid
On 9/09/2010 7:15, rajeev2012 wrote: Sir, Any suggestions ... You once said that it worked in the Java version. If that is still true: fix the iTextSharp code. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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: [iText-questions] Licensing question
On 8/09/2010 23:35, Robert Williams wrote: Really, it would be much like Pdftk, PdfTk is (as you probably know) a mighty old version of iText compiled with GCJ. If I understand the terms of the AGPL license, the wrapper application would be covered by AGPL As I understand the AGPL, it was created to close some loopholes, and I have the impression that you're looking to create another loophole (that then would need to be closed too). I am not a lawyer, but I don't think your wrapper solution would pass a legal test. Have you asked your company lawyer what he thinks about it? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/