Re: [iText-questions] How to deep copy a PdfPTable?
new PdfPTable(PdfPTable) Paulo Thanks Paulo, but I cant get it to work. Please see attached pdf sample. My code is below. What am I doing wrong ? PdfWriter.getInstance(document, new FileOutputStream("C:\\CFusionMX7\\wwwroot\\Sites\\iText\\MyFirstTable.pdf")); // step 3: we open the document document.open(); // Create the table and give it some content PdfPTable table = new PdfPTable(1); table.addCell("Cell 1 @pageno"); // Make a deep copy of the table as suggested: new PdfPTable(PdfPTable) PdfPTable tableCopy = new PdfPTable(table); // Add both tables to the document document.add(new Paragraph("Table:")); document.add(table); document.add(new Paragraph("Table COPY:")); document.add(tableCopy); // Loop through to the chunk content and replace the "@pageno" with "NEW" // Do this in the original table only for (Iterator iter = table.getRows().iterator(); iter.hasNext();) { PdfPRow row = (PdfPRow) iter.next(); PdfPCell[] cells = row.getCells(); int numbCells = cells.length; for (int c=0; c < numbCells; c++) { Phrase phrase = cells[c].getPhrase(); int chCnt = -1; for (Iterator ph_iter = phrase.getChunks().iterator(); ph_iter.hasNext();) { Chunk chunk = (Chunk) ph_iter.next(); String content = chunk.getContent(); chCnt++; if (content.indexOf("@pageno") != -1) { String newContent = content.replaceAll("(?i:@pageno)+", "NEW"); Chunk newChunk = new Chunk(newContent); phrase.set(chCnt, newChunk); } } } } // Now write both tables to the document again document.add(new Paragraph("Table after change:")); document.add(table); document.add(new Paragraph("Table COPY after change to Table. Is the same as table but should not be:")); document.add(tableCopy); Here is my sample output: http://www.nabble.com/file/p19281246/MyFirstTable.pdf MyFirstTable.pdf By way of context: I use iText via ColdFusion. I am using version 2.1.3 loaded using javaloader.cfc. I can produce PDFs very well using this method. iText is a great package! Thanks. Now, I want to have a header and footer. My idea (that nearly works) is to create a PdfPTable in ColdFusion for the the header and one for the footer, then pass it to the PageHelper and have the onEndPage() method replace the embedded @pageno with the actual page number of the page. By passing a complete table from CF I have flexibility about the content of the header/footer and I dont need a separate bit of Java each time I want a new style of header/footer. The technique works except that because I cant get a deep copy of the table, the page number replacement works for page 1 but I cant then pass the original table because the @pageno has already been changed and so cant be found to change for page 2,3,4 etc. Maybe there is another way to do this using the PdfContentByte? But how would I locate the correct place to attach it? I will face that issue soon anyway because I want to have "Page 1 of 5" type page numbering and I will need to use PdfContentByte to do the max pages value. However, I havent tried to do that bit yet. Many thanks, Murray -- View this message in context: http://www.nabble.com/How-to-deep-copy-a-PdfPTable--tp19264760p19281246.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://list
Re: [iText-questions] Large text paragraph not kept on one page
You may change the font size, the leading or the horizontal scaling. If you really want to control the placement use a ColumnText. Paulo - Original Message - From: "zoharat" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 02, 2008 8:46 PM Subject: [iText-questions] Large text paragraph not kept on one page Hello, Our customers tend to create reports which are large text files. They have defined how many lines are there per page and at what offset should the text be displayed in the PDF file. Now I can display it at the required offset but the page gets split into two pages. I have attached sample code where I have the text which should ideally go on one page. Are there any size limitations of paragraphs? http://www.nabble.com/file/p19276995/LargeTextPDF.java LargeTextPDF.java Could someone have a look at the code and tell me what I am doing wrong? - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Annotation does not print
If you create the note with Acrobat, does it print? Paulo - Original Message - From: "BorisTheCat" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 02, 2008 7:19 PM Subject: Re: [iText-questions] Annotation does not print > > I'm using Adobe Reader 9 and the only print dialog option i have is a > Comments and Forms dropdown list. > I've tried each of those options and my popup annotation never appears on > the printed output. > I've posted my actual PDF if someone would see if they can see the > problem. > http://home.fuse.net/mikebrungs/output.pdf > > > > Paulo Soares-3 wrote: >> >> Works for me. Check that you have the option to print the annotations in >> the print dialog. >> >> Paulo >> >>> -Original Message- >>> From: [EMAIL PROTECTED] >>> [mailto:[EMAIL PROTECTED] On >>> Behalf Of BorisTheCat >>> Sent: Tuesday, September 02, 2008 4:16 PM >>> To: itext-questions@lists.sourceforge.net >>> Subject: [iText-questions] Annotation does not print >>> >>> >>> Even though i am using PdfAnnotation.FLAGS_PRINT, the >>> annotation does not >>> appear on the printout even though it does appear in the PDF. >>> >>> Here's the code snippet: >>>PdfAnnotation popup = PdfAnnotation.createText(writer, >>> getRectangle(), >>> null, >>> >>> text.getText(), false, >>> "TextNote"); >>> popup.setFlags(PdfAnnotation.FLAGS_PRINT); >>> writer.addAnnotation(popup); - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Large text paragraph not kept on one page
Hello, Our customers tend to create reports which are large text files. They have defined how many lines are there per page and at what offset should the text be displayed in the PDF file. Now I can display it at the required offset but the page gets split into two pages. I have attached sample code where I have the text which should ideally go on one page. Are there any size limitations of paragraphs? http://www.nabble.com/file/p19276995/LargeTextPDF.java LargeTextPDF.java Could someone have a look at the code and tell me what I am doing wrong? -- View this message in context: http://www.nabble.com/Large-text-paragraph-not-kept-on-one-page-tp19276995p19276995.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Annotation does not print
I'm using Adobe Reader 9 and the only print dialog option i have is a Comments and Forms dropdown list. I've tried each of those options and my popup annotation never appears on the printed output. I've posted my actual PDF if someone would see if they can see the problem. http://home.fuse.net/mikebrungs/output.pdf Paulo Soares-3 wrote: > > Works for me. Check that you have the option to print the annotations in > the print dialog. > > Paulo > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of BorisTheCat >> Sent: Tuesday, September 02, 2008 4:16 PM >> To: itext-questions@lists.sourceforge.net >> Subject: [iText-questions] Annotation does not print >> >> >> Even though i am using PdfAnnotation.FLAGS_PRINT, the >> annotation does not >> appear on the printout even though it does appear in the PDF. >> >> Here's the code snippet: >>PdfAnnotation popup = PdfAnnotation.createText(writer, >> getRectangle(), >> null, >> >> text.getText(), false, >> "TextNote"); >> popup.setFlags(PdfAnnotation.FLAGS_PRINT); >> writer.addAnnotation(popup); > > > 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 email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- View this message in context: http://www.nabble.com/Annotation-does-not-print-tp19272148p19275606.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Wrong columns width
...so how could I print a table in html? Paulo Soares-3 wrote: > > Table is not supported and neither is HtmlWriter. > > Paulo > > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of cassiosteel >> Sent: Tuesday, September 02, 2008 4:32 PM >> To: itext-questions@lists.sourceforge.net >> Subject: [iText-questions] Wrong columns width >> >> >> I create a table and I set the widths of the columns in this way: >> [code] >> Table tabella = new Table(4); >> tabella.setWidth(100); >> tabella.setBorderColor(Color.BLACK); >> tabella.setWidth(100); >> int larghezze[]={10,10,10,70}; >> tabella.setWidths( larghezze); >> >> tabella.getDefaultCell().setHorizontalAlignment(tabella.ALIGN_CENTER); >> tabella.addCell(new Phrase("DOCENTE",h2)); >> tabella.addCell(new Phrase("CORSO",h2)); >> tabella.addCell(new Phrase("ANNO",h2)); >> tabella.addCell(new Phrase("SEMESTRE",h2)); >> [/code] >> and then I put it on the document in order to save it using >> the HtmlWriter; >> but then when I open the saved file the columns have another >> dimensions...how could I fix this? > > > 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 email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- View this message in context: http://www.nabble.com/Wrong-columns-width-tp19272419p19274858.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Help with Paragraph.setIndentationLeft() and ColumnText object
column.addElement(paragraph); Paulo - Original Message - From: "dayvidpow" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 02, 2008 6:41 PM Subject: [iText-questions] Help with Paragraph.setIndentationLeft() and ColumnText object I am trying to set the indentation of a paragraph by calling the setIndentationLeft() on a paragraph then adding the paragraph to the ColumnText object. However, when i do that I am not getting any indentation in the resulting PDF. Is this supported by the ColumnText object? See my code sample below: paragraph.setIndentationLeft(20f); column.add(paragraph); column.go(); - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Help with Paragraph.setIndentationLeft() and ColumnText object
I am trying to set the indentation of a paragraph by calling the setIndentationLeft() on a paragraph then adding the paragraph to the ColumnText object. However, when i do that I am not getting any indentation in the resulting PDF. Is this supported by the ColumnText object? See my code sample below: paragraph.setIndentationLeft(20f); column.add(paragraph); column.go(); -- View this message in context: http://www.nabble.com/Help-with-Paragraph.setIndentationLeft%28%29-and-ColumnText-object-tp19274926p19274926.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Wrong columns width
Table is not supported and neither is HtmlWriter. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of cassiosteel > Sent: Tuesday, September 02, 2008 4:32 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Wrong columns width > > > I create a table and I set the widths of the columns in this way: > [code] > Table tabella = new Table(4); > tabella.setWidth(100); > tabella.setBorderColor(Color.BLACK); > tabella.setWidth(100); > int larghezze[]={10,10,10,70}; > tabella.setWidths( larghezze); > > tabella.getDefaultCell().setHorizontalAlignment(tabella.ALIGN_CENTER); > tabella.addCell(new Phrase("DOCENTE",h2)); > tabella.addCell(new Phrase("CORSO",h2)); > tabella.addCell(new Phrase("ANNO",h2)); > tabella.addCell(new Phrase("SEMESTRE",h2)); > [/code] > and then I put it on the document in order to save it using > the HtmlWriter; > but then when I open the saved file the columns have another > dimensions...how could I fix this? 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 email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Escaping the apostrophe
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Brian Cyr > Sent: Tuesday, September 02, 2008 3:22 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Escaping the apostrophe > > This is my first time using iTextSharp and so far, I love it. > I have two > issues though. > > Here is what I am doing: I have a PDF created with Acrobat 8 > Pro with form fields on it and I am filling it in > programmatically. I am using nothing more than the sample > code that comes with iText. I am creating a reader and a > stamper then using the AcroFields.SetField method to fill in > values. So far, so good; however, one of the fields is a > name and when I go to fill in "Sam O'Donald" the apostrophe > disappears. How to I maintain the character? Is there an > escape sequence? > Check that your apostrophe is not a fancy character that is not included in the field's encoding. You may also use a substitution font to make sure that the char shows up. > I was orignially just using a reader and substituting values > because my goal was to simply print from there. After doing > a bit or searching on the net, it does not appear that it is > possible to just print, that I have to create a temporary PDF > and then have the acrobat reader actually send it to the > printer. Is that correct? > Yes. Paulo 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 email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Annotation does not print
Works for me. Check that you have the option to print the annotations in the print dialog. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of BorisTheCat > Sent: Tuesday, September 02, 2008 4:16 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Annotation does not print > > > Even though i am using PdfAnnotation.FLAGS_PRINT, the > annotation does not > appear on the printout even though it does appear in the PDF. > > Here's the code snippet: >PdfAnnotation popup = PdfAnnotation.createText(writer, > getRectangle(), > null, > > text.getText(), false, > "TextNote"); > popup.setFlags(PdfAnnotation.FLAGS_PRINT); > writer.addAnnotation(popup); 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 email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Wrong columns width
I create a table and I set the widths of the columns in this way: [code] Table tabella = new Table(4); tabella.setWidth(100); tabella.setBorderColor(Color.BLACK); tabella.setWidth(100); int larghezze[]={10,10,10,70}; tabella.setWidths( larghezze); tabella.getDefaultCell().setHorizontalAlignment(tabella.ALIGN_CENTER); tabella.addCell(new Phrase("DOCENTE",h2)); tabella.addCell(new Phrase("CORSO",h2)); tabella.addCell(new Phrase("ANNO",h2)); tabella.addCell(new Phrase("SEMESTRE",h2)); [/code] and then I put it on the document in order to save it using the HtmlWriter; but then when I open the saved file the columns have another dimensions...how could I fix this? -- View this message in context: http://www.nabble.com/Wrong-columns-width-tp19272419p19272419.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Annotation does not print
Even though i am using PdfAnnotation.FLAGS_PRINT, the annotation does not appear on the printout even though it does appear in the PDF. Here's the code snippet: PdfAnnotation popup = PdfAnnotation.createText(writer, getRectangle(), null, text.getText(), false, "TextNote"); popup.setFlags(PdfAnnotation.FLAGS_PRINT); writer.addAnnotation(popup); -- View this message in context: http://www.nabble.com/Annotation-does-not-print-tp19272148p19272148.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] spatial referenced pdf, gis
I'm new to the business but i'll try my best.. =) -- View this message in context: http://www.nabble.com/spatial-referenced-pdf%2C-gis-tp1925p19271561.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Escaping the apostrophe
This is my first time using iTextSharp and so far, I love it. I have two issues though. Here is what I am doing: I have a PDF created with Acrobat 8 Pro with form fields on it and I am filling it in programmatically. I am using nothing more than the sample code that comes with iText. I am creating a reader and a stamper then using the AcroFields.SetField method to fill in values. So far, so good; however, one of the fields is a name and when I go to fill in "Sam O'Donald" the apostrophe disappears. How to I maintain the character? Is there an escape sequence? I was orignially just using a reader and substituting values because my goal was to simply print from there. After doing a bit or searching on the net, it does not appear that it is possible to just print, that I have to create a temporary PDF and then have the acrobat reader actually send it to the printer. Is that correct? ** Notice ** This message and accompanying documents are covered by the electronic Communications Privacy Act, 18 U.S.C. §§ 2510-2521, and may contain confidential information intended for the specified individual(s) only. If you are not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, copying, or the taking of any action based on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by E-mail, and delete the original message. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] RTF (or JEdirtorPane) to PDF conversion
I have no time line at the moment for completing this. As functionality is needed I will implement it for current projects. Howard Shank - Original Message From: Álvaro Morejón Cortés <[EMAIL PROTECTED]> To: itext-questions@lists.sourceforge.net Sent: Friday, August 29, 2008 8:39:13 AM Subject: [iText-questions] RTF (or JEdirtorPane) to PDF conversion Hi, (Sorry for my bad English) I really need to convert documents in RTF to PDF, I have read in the mailing list that conversion by the RtfParser class is under development and will be stable soon. Can you tell me when will this happens? Do you know any other way to make the conversion? I have tried to load RTFin a JEditorPane and export to PDF with the Graphics interface but I don't know how to split the graphic into pages. Thanks! - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] RTF and document import
You are correct. At this point it is not possible to import into an element.. However, this functionality is under development for a client and will be released when working. Howard Shank - Original Message From: Michaël Morello <[EMAIL PROTECTED]> To: itext-questions@lists.sourceforge.net Sent: Monday, September 1, 2008 6:09:39 AM Subject: [iText-questions] RTF and document import Hi, I'm currently working on RTF generation using the iText sources from the svn trunk. In order to manage different headers and footers on pages i use chapters but i also need to import external RTF in the final document. Unfortunately it seems that it is impossible to import an external document in existing elements like chapters. I have tried the importRtfDocumentIntoElement of the Rtfparser class without success (no error but nothing is imported). May be i'm wrong but it seems that the importRtfDocumentIntoElement function is not complete ? If some work need to be done can you tell me if i can help you ? Best regards, -- Michael Morello [EMAIL PROTECTED] - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest..org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How to deep copy a PdfPTable?
new PdfPTable(PdfPTable) Paulo - Original Message - From: "murrah" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 02, 2008 7:22 AM Subject: [iText-questions] How to deep copy a PdfPTable? Hi, Is it possible to make a deep copy of a PdfPTable? ie a separate instance, not a reference. If so, how is it done? I am pretty new to Java and I cant see how it is done. Clone() doesnt seem to work. Thanks, Murray - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Decimal Places
iText doesn't round anything, it only works with strings. Convert the number to a string and then look at the string. Paulo - Original Message - From: "Mike Duffy" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 02, 2008 1:31 AM Subject: Re: [iText-questions] Decimal Places I am adding a String to a Chunk and then adding that Chunk to a phrase. The string is a decimal format of a latitude value. From debugging the code I am certain the String contains the value, "31.20754326". Even though it's in a String, iText rounds this value to "31.208" I Googled on this for about an hour and found no solution. I also found no references to this in the book, "iText in Action" (a great book in most other regards). I think there must be some basic formating variable that I am missing. Thx. Mike - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] null Values When Creating Chunks
Null is null and empty is empty, different things, Paulo - Original Message - From: "Mike Duffy" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 02, 2008 6:06 AM Subject: [iText-questions] null Values When Creating Chunks It seems that the constructor for the Chunk class will throw an null pointer exception if the String value is null. In JSTL null input values are treated as empty Strings; it would be helpful if iText had this behavior. Thx. Mike - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php