Re: [iText-questions] Reg: itext jar file related to pdf Signature
Iam unable to set itext-paulo-155.jar in CLASSPATH , gettingn error package com.lowagie.text does not exist for imports. Iam compiling my java code on UNIX machine.This scenarios working fine in Windows using Eclipse but Iam facing this error in UNIX .Please help. Thanks -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] WMF/EMF support
I Would like to see the EMF support finally. I'm not that into EMF Specification nor into IText (just learning it currently). But if someone could help me it could be great. Thanks in advance -- View this message in context: http://itext-general.2136553.n4.nabble.com/Re-WMF-EMF-support-tp2161874p2297605.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] Reg: itext jar file related to pdf Signature
himanshi wrote: Iam unable to set itext-paulo-155.jar in CLASSPATH , That jar dates from 2005. It is no longer supported! gettingn error package com.lowagie.text does not exist for imports. Iam compiling my java code on UNIX machine.This scenarios working fine in Windows using Eclipse but Iam facing this error in UNIX . If a Java jar works on Windows, it should work on UNIX too. If it doesn't: consult a Java forum. This question is off-topic on an iText list. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] simple html creation
Pablo wrote: I downloaded iText-5.0.2.jar and tried to run the first example in iText in Action 2006 edition containing : PdfWriter.getInstance(document, new FileOutputStream(HelloWorld.pdf)); HtmlWriter.getInstance(document, new FileOutputStream(HelloWorld.htm)); document.open(); I received a compilation error cause HtmlWriter can not be found, the needed import seems to becom.itextpdf.text.html.HtmlWriter but there is not such thing, is it? HtmlWriter and RtfWriter(2) have been removed from iText. They are no longer supported. The examples in the book uses the com.lowagie.text.html.HtmlWriter import , where can I find the com.lowagie lib ? The link in the book send me to download iText-5.0.2.jar only. The com.lowagie classes are deprecated, and so are the examples of the first book (as there is now a second edition of iText in Action available in MEAP). Can you help me? I am interested in simple paralel creation of html together with pdf. You can still download the old iText version from SourceForge, but you'll be very disappointed when you see the poor quality of the HTML that is generated. iText is about PDF, not about HTML and other formats. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] How to make a set a readonly form field to editable
Leong Wai Meng wrote: Hello, To mark a textfield to readonly, I can use: myAcroFields.setFieldProperty(name, setfflags, PdfFormField.FF_READ_ONLY, null); How can I revert this action to set the textfield to editable? By replacing setfflags by clrfflags; this removes flags instead of setting them (see section 8.2.2 of the second edition of iText in Action). -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] Dynamically Create Submit Button on XFA form
George Steimer wrote: 1. Is there a way to dynamically create a button on an XFA form that submits the form data to a URL? You need to extract the XML that defines the form from the PDF, change it, and then put it back. a. I realize that the submitted data will probably not be in XFDF format, but we can handle that on the server side if needed… True: the Forms Data Format is AcroForm technology. b. If I need to upgrade to a newer version of iText, that’s fine – we’re on 2.0.8 right now. There is no straightforward way to add a button, not in the old, not in the new version: You need to extract the XML that defines the form from the PDF, change it, and then put it back. 2. Assuming #1 is possible, is there a way to know when we’re stamping the PDF whether or not the form is an AcroForm or an XFA form? You should distinguish between three types of forms: 1. AcroForm technology: doable 2. Hybrid: XFA + AcroForm: you could throw away the XFA and keep the AcroForm, that's doable. 3. XFA only: you need to manipulate the XML. How to find out which form you have: see chapter 8 of the second edition of iText in Action. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] Problem with Html Worker Encoding
Hi, I'm trying to use itextsharp for html to pdf convertion. But some characters(Turkish) are missing in pdf. How can i fix the code below for correct output. Response.ContentType = application/pdf; Response.AddHeader(content-disposition, attachment;filename=GridViewExport.pdf); Response.Cache.SetCacheability(HttpCacheability.NoCache); string html = @html xmlns='http://www.w3.org/1999/xhtml' head runat='server' title/title /head body form id='form1' runat='server' div table border='1' tr td style='color:green' ŞşĞğİiÇçĞğÜü td /tr /table /div /form /body /html; html.Replace(Ş, #350;); StringReader sr =new StringReader(html); Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 10f, 0f); PdfWriter pdfWriter = PdfWriter.GetInstance(pdfDoc, Response.OutputStream); pdfDoc.Open(); ListIElement lt = HTMLWorker.ParseToList(sr, null); ColumnText ct = new ColumnText(pdfWriter.DirectContent); ct.SetSimpleColumn(50, 50, PageSize.A4.Width - 50, PageSize.A4.Height - 50); foreach (IElement t in lt) { ct.AddElement(t); } ct.Go(); pdfDoc.Close(); Response.Write(pdfDoc); Response.End(); Regards, Clever61 -- View this message in context: http://itext-general.2136553.n4.nabble.com/Problem-with-Html-Worker-Encoding-tp2298354p2298354.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] Problem with Html Worker Encoding
clever61 wrote: Hi, I'm trying to use itextsharp for html to pdf convertion. But some characters(Turkish) are missing in pdf. How can i fix the code below for correct output. Implement the FontProvider interface and provide a Font that has the Turkish characters. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] java.lang.InternalError and RandomAccessFileOrArray
Hello list, I am using itext for tiff to pdf conversion. In doing this I sometimes obtain the below error. In fact it happens very rarely (like once in a million conversions). I am using iText version 5.0.1. The line in my code that leads to this error is: RandomAccessFileOrArray ra = new RandomAccessFileOrArray(filePath); Also, this is document independent. When I run the conversion again on the document for which it failed earlier, everything goes fine. The process that does the conversions runs many threads, so this RandomAccessFileOrArray constructor can be called by multiple threads at the same time. So, looks like there is something not thread-safe. Should I have known this or is this a bug? Thanks for any advice, dirk java.lang.InternalError at sun.nio.ch.Util.newMappedByteBufferR(Unknown Source) at sun.nio.ch.FileChannelImpl.map(Unknown Source) at com.itextpdf.text.pdf.MappedRandomAccessFile.init(MappedRandomAccessFile.java:98) at com.itextpdf.text.pdf.MappedRandomAccessFile.init(MappedRandomAccessFile.java:82) at com.itextpdf.text.pdf.RandomAccessFileOrArray.init(RandomAccessFileOrArray.java:125) at com.itextpdf.text.pdf.RandomAccessFileOrArray.init(RandomAccessFileOrArray.java:79) at eu.xenit.poller.Tiff2Pdf.tiff2Pdf(Tiff2Pdf.java:76) -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] Problem with Html Worker Encoding
Dear 1T3XT info, Can you give sample code for any encoding? -- View this message in context: http://itext-general.2136553.n4.nabble.com/Problem-with-Html-Worker-Encoding-tp2298354p2298419.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] Use custom font in iTextSharp
Is there a way + example to use a custom font (a file on harddisk)? thx, Lieven Cardoen -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ 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] Use custom font in iTextSharp
On Thu, 22 Jul 2010 15:45:17 +0200, Lieven Cardoen lieven.card...@gmail.com wrote: Is there a way + example to use a custom font (a file on harddisk)? Of course, there are plenty of examples in the book iText in Action (chapter 11 in the second edition). What did you have in mind? See: http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg51906.html -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] Release iText 5.0.3
Hello all, as you know you can find all the examples that are discussed in the second edition of iText in Action here: http://itextpdf.com/examples/index.php?page=chapters Some of these examples didn't work with iText 5.0.2 because iText 5.0.2 dates from before the final chapter of the book was written. They only worked with the iText version that could be downloaded from the SVN repository (the SNAPSHOT version of iText 5.0.3). Today, I've released iText 5.0.3: http://sourceforge.net/projects/itext/files/ All the examples that are in the book should work with this new version. A Technical Editor at Manning is currently testing this, but if you find some problem with the examples, please post a message to the mailing list (where it will be picked up by either me or the Technical Editor). iText 5.0.3 is a maintenance release. You can find the changelog here: http://itextpdf.com/history.php?branch=history.50node=503 As you can see, most of the items start with Bugfix. Once the book is released (after the Copy Editing, the Technical Editing, Layout, Proof Reading and Printing), we'll work on new functionality such as better HTML parsing with HTMLWorker (several patches were posted) and an improved and compiled version of RUPS. best regards, Bruno -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] iTextPDF
Hi, I wanted to ask you which version of HTML does HTMLWorker support? I am parsing an html file to HTMLWorker and it seems to be having trouble reading the style/style tag. Here's my style tag which, for some, reason is printed inside the PDF as if it was plain text. style type=text/css html, body { margin: 0; padding: 0; height: 100%; } body { background-color: #FFF; color: #000; font: 20pt Verdana, Helvetica, Arial, sans-serif; text-align: left; } /style I hope I have made my explanation clear. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] java.lang.InternalError andRandomAccessFileOrArray
iText is only thread safe when one document = one thread. You need to copy the RAFoA or ensure only one thread has access at a time. Or you could subclass RAFoA with thead-local state for everything that's getting stepped on. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: dirk ooms [mailto:d...@onesparrow.com] Sent: Thursday, July 22, 2010 3:54 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] java.lang.InternalError andRandomAccessFileOrArray Hello list, I am using itext for tiff to pdf conversion. In doing this I sometimes obtain the below error. In fact it happens very rarely (like once in a million conversions). I am using iText version 5.0.1. The line in my code that leads to this error is: RandomAccessFileOrArray ra = new RandomAccessFileOrArray(filePath); Also, this is document independent. When I run the conversion again on the document for which it failed earlier, everything goes fine. The process that does the conversions runs many threads, so this RandomAccessFileOrArray constructor can be called by multiple threads at the same time. So, looks like there is something not thread-safe. Should I have known this or is this a bug? Thanks for any advice, dirk java.lang.InternalError at sun.nio.ch.Util.newMappedByteBufferR(Unknown Source) at sun.nio.ch.FileChannelImpl.map(Unknown Source) at com.itextpdf.text.pdf.MappedRandomAccessFile.init(MappedRandomAccessFile .j ava:98) at com.itextpdf.text.pdf.MappedRandomAccessFile.init(MappedRandomAccessFi le .java:82) at com.itextpdf.text.pdf.RandomAccessFileOrArray.init(RandomAccessFileOrA rr ay.java:125) at com.itextpdf.text.pdf.RandomAccessFileOrArray.init(RandomAccessFileOrA rr ay.java:79) at eu.xenit.poller.Tiff2Pdf.tiff2Pdf(Tiff2Pdf.java:76) -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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/3009 - Release Date: 07/21/10 23:36:00 -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] java.lang.InternalError andRandomAccessFileOrArray
thanks for the reply. in my case the various threads are handling different documents (one document = one thread). so might there be something else going wrong? On Thu, 2010-07-22 at 12:18 -0700, Mark Storer wrote: iText is only thread safe when one document = one thread. You need to copy the RAFoA or ensure only one thread has access at a time. Or you could subclass RAFoA with thead-local state for everything that's getting stepped on. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: dirk ooms [mailto:d...@onesparrow.com] Sent: Thursday, July 22, 2010 3:54 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] java.lang.InternalError andRandomAccessFileOrArray Hello list, I am using itext for tiff to pdf conversion. In doing this I sometimes obtain the below error. In fact it happens very rarely (like once in a million conversions). I am using iText version 5.0.1. The line in my code that leads to this error is: RandomAccessFileOrArray ra = new RandomAccessFileOrArray(filePath); Also, this is document independent. When I run the conversion again on the document for which it failed earlier, everything goes fine. The process that does the conversions runs many threads, so this RandomAccessFileOrArray constructor can be called by multiple threads at the same time. So, looks like there is something not thread-safe. Should I have known this or is this a bug? Thanks for any advice, dirk java.lang.InternalError at sun.nio.ch.Util.newMappedByteBufferR(Unknown Source) at sun.nio.ch.FileChannelImpl.map(Unknown Source) at com.itextpdf.text.pdf.MappedRandomAccessFile.init(MappedRandomAccessFile .j ava:98) at com.itextpdf.text.pdf.MappedRandomAccessFile.init(MappedRandomAccessFi le .java:82) at com.itextpdf.text.pdf.RandomAccessFileOrArray.init(RandomAccessFileOrA rr ay.java:125) at com.itextpdf.text.pdf.RandomAccessFileOrArray.init(RandomAccessFileOrA rr ay.java:79) at eu.xenit.poller.Tiff2Pdf.tiff2Pdf(Tiff2Pdf.java:76) -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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/3009 - Release Date: 07/21/10 23:36:00 -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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 email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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/