[iText-questions] How to replace some char not in specified True Type file with SPACE or other special chars rather than truncated ?
Hi Sir, I use iText to convert some Big5 data flat file to PDF file. I got a problem which was some Big5 chinese char not in specified TTF and the PDF result truncated that Big5 char not in TTF. If the orginal string is AABBCC (AA, CC in TTF and BB not in TTF), the result is AACC, BB was truncated. I want to get AASPBB (SP is SPCAE or other special char). How do I get the result ? Any help appreciated. Thanks a lot. Best Regards, Vengoal Chang --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Creating a Header and a Footer in a tagmap
Kristian Du wrote: Hi Bruno, Thanks for the quick reply. Please stay on the mailing-list. I would like to implement a header and a footer and I did read your previous answers. The problem is that I have no clue on how to go about - using PageEvents - subclassing the handler and catch the specific tags it's all in chapter 12 of the tutorial http://www.lowagie.com/iText/tutorial/ch12.html http://www.lowagie.com/iText/examples/Chap1201.java If your Header and Footer are outside the XML: use PageEvents See class MyPageEvents extends PdfPageEventHelper in the java-sample mentioned above If your Header and Footer are inside the XML: extend the Handler. See class MyHandler extends SAXmyHandler in the same java example. Start with that example. Split it into a few separate classes and experiment. Would you happen to have some sample code on how to do the above? Thanks once again. Have a good day. -- Kristian On Wed, 2003-06-25 alle 16:35, Bruno wrote: Quoting Kristian Du [EMAIL PROTECTED]: I have read in one of the previous postings that I should now create a tagmap file to define what the HEADER and the FOOTER tags are, but I have no idea on how to do this. Where have you read this? I don't use headers and footers that are in the XML. I add them using PageEvents. If you want a Header or Footer tag in XML you should subclass the handler and catch the specific tags... Bruno --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] JavaScript not working
Hi guys, I am trying to add some javascript to my pdf page. Like this( I am trying to print the pdf and then close the doc). Document document = new Document(psize, 0, 0, 0, 0); PdfWriter writer = PdfWriter.getInstance(document, new FileStream(completed.pdf, FileMode.Create)); PdfAction printAct = PdfAction.javaScript(this.print(false);\r,writer); PdfAction closeAct = PdfAction.javaScript(this.closeDoc(true);\r,writer); writer.addJavaScript(printAct); writer.setAdditionalAction(PdfName.DP,closeAct); When i open my docuemnt with Adobe Acrobat 5.0 it works fine. However the javascript will not execute in the Acrobat Reader 6.0. Does anyone know why? -- SARGHI Mircea Ionut Senior Developer IN WWW Ltd London 283 Archway Road Highgate London N6 5AA [EMAIL PROTECTED] T: +44 020 8347 0202 F: +44 020 8374 7478 Feel free to take a look at our brand new website ! http://www.inwww.ltd.uk Our previuos flash based website was awarded the Golden Web Award 2003-2004. Enjoy the experience at http://www.inwww.ltd.uk/v02 This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake please let me know by reply and then delete it from your system; you should not copy the message or disclose its contents to anyone. --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Html tags in xml tagmap
Hi, im trying to create equivalent html tags in my xml tagmap I seem to have problems when it comes to spacing inside a cell. And also when you place a table within a table, it messes up. Anyone enlighten me on this one? :) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.493 / Virus Database: 292 - Release Date: 6/25/2003 --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] JavaScript not working
The reader only supports a small part of the full javascript. In the documentation you have the javascript that the Reader supports. Best Regards, Paulo Soares -Original Message- From: SARGHI Mircea Ionut [SMTP:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 10:13 To: [EMAIL PROTECTED] Subject: [iText-questions] JavaScript not working Hi guys, I am trying to add some javascript to my pdf page. Like this( I am trying to print the pdf and then close the doc). Document document = new Document(psize, 0, 0, 0, 0); PdfWriter writer = PdfWriter.getInstance(document, new FileStream(completed.pdf, FileMode.Create)); PdfAction printAct = PdfAction.javaScript(this.print(false);\r,writer); PdfAction closeAct = PdfAction.javaScript(this.closeDoc(true);\r,writer); writer.addJavaScript(printAct); writer.setAdditionalAction(PdfName.DP,closeAct); When i open my docuemnt with Adobe Acrobat 5.0 it works fine. However the javascript will not execute in the Acrobat Reader 6.0. Does anyone know why? -- SARGHI Mircea Ionut Senior Developer IN WWW Ltd London 283 Archway Road Highgate London N6 5AA [EMAIL PROTECTED] T: +44 020 8347 0202 F: +44 020 8374 7478 Feel free to take a look at our brand new website ! http://www.inwww.ltd.uk Our previuos flash based website was awarded the Golden Web Award 2003-2004. Enjoy the experience at http://www.inwww.ltd.uk/v02 == == This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake please let me know by reply and then delete it from your system; you should not copy the message or disclose its contents to anyone. == == --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Image in the headerFooter of the pdf
hi guys. I suppose this question has been answered a thousand times, but i can't find the working solution. I need to have an image in the HeaderFooter of my document and have it repeated on every page. I've tried the HeaderFooter class and the Table. Especially, in the Table class, if i add an image in the cell and set table.endHeaders(), the image is void (i think). Well, i see that the cell is the right height as the image is, but there is anything in the cell. So, can anyone have a solution to have an image in the header of my preciuos pdf file? thank for any help. Roberto --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] How to replace some char not in specified True Type file with SPACE or other special chars rather than truncated ?
You can mix several fonts in the same line but it's your work to choose what font and what character translation you need. The Big5 extensions, such as the HK ones, are a problem as they don't exist in UCS-16. Windows solves the problem by having special fonts with those extra characters mapped in the E000 are. This requires a mapping from the Big5 extensions to the E000 range. If you are using the built-in CJK fonts there's no problem using other techniques. Best Regards, Paulo Soares -Original Message- From: Vengoal Chang [SMTP:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 8:33 To: [EMAIL PROTECTED] Subject: [iText-questions] How to replace some char not in specified True Type file with SPACE or other special chars rather than truncated ? Hi Sir, I use iText to convert some Big5 data flat file to PDF file. I got a problem which was some Big5 chinese char not in specified TTF and the PDF result truncated that Big5 char not in TTF. If the orginal string is AABBCC (AA, CC in TTF and BB not in TTF), the result is AACC, BB was truncated. I want to get AASPBB (SP is SPCAE or other special char). How do I get the result ? Any help appreciated. Thanks a lot. Best Regards, Vengoal Chang --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Image in the headerFooter of the pdf
Quoting Roberto Cipollini [EMAIL PROTECTED]: So, can anyone have a solution to have an image in the header of my preciuos pdf file? Use PageEvents. There is an example in the tutorial. It doesn't have Images, but it's similar. br, Bruno --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] New release itext-paulo-122
Changes in itext-paulo-122 (2003-06-26) - the subset prefix is generated randomly. Acrobat has problems in inserting pages with fonts with the same prefix. All this at: http://www.geocities.com/itextpdf or http://itext.execuchoice.net Best Regards, Paulo Soares --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Split: Loss Information
You can try to use PdfCopy and modify the Concat example. Best Regards, Paulo Soares -Original Message- From: yun wang [SMTP:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 20:37 To: [EMAIL PROTECTED] Subject: [iText-questions] Split: Loss Information Is there some solution for the problem of losing information during Splitting? I lost annotations and also the form can not be fiiled like the original. Thanks, yun com.lowagie.tools.split_pdf This class can be used from the commandline to split an existing PDF file into two new files. Remark: some information from the original file (for instance annotations) will get lost in the process! arguments: srcfile destfile1 destfile2 pagenumber _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] JavaScript not working
I do not apply any security setting to my pdf files and 5.0 is the Adobe Acrobat Full, not the Reader(the Reader is 6.0). -Original Message- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 3:45 PM To: SARGHI Mircea Ionut; [EMAIL PROTECTED] Subject: Re: [iText-questions] JavaScript not working At 12:12 PM +0300 6/26/03, SARGHI Mircea Ionut wrote: Document document = new Document(psize, 0, 0, 0, 0); PdfWriter writer = PdfWriter.getInstance(document, new FileStream(completed.pdf, FileMode.Create)); PdfAction printAct = PdfAction.javaScript(this.print(false);\r,writer); PdfAction closeAct = PdfAction.javaScript(this.closeDoc(true);\r,writer); writer.addJavaScript(printAct); writer.setAdditionalAction(PdfName.DP,closeAct); Do you apply security to the PDF at all? If so, what settings? When i open my docuemnt with Adobe Acrobat 5.0 it works fine. However the javascript will not execute in the Acrobat Reader 6.0. Are you sure it's 5.0 and not 5.1, Reader that it works in? Leonard -- --- Leonard Rosentholmailto:[EMAIL PROTECTED] Chief Technical Officer http://www.pdfsages.com PDF Sages, Inc. 215-629-3700 (voice) 215-629-0789 (fax) --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Image coming from jFreeChart
Hi everyone, I'm using jFreeChart to generate some charts. And then incorporate them in my PDF files. It works fine, (thanks to the coders of iText). I only have a small problem with fonts. Actually, when I put my chart into the PDF, the fonts are not the same. Question is: is it a problem with iText or with jFreeChart. How to verify what jFreeChart gives to iText? Below, a part of the code I use to integrate charts into PDF. PdfContentByte content = writer.getDirectContent(); JFreeChart chart = createChart(chartData); content.saveState(); Graphics2D graphic = content.createGraphics(500, 400); chart.draw(graphic, new Rectangle(0, 0, 500, 400)); graphic.dispose(); content.restoreState(); Thank you in advance for any advice. Hubert _ MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] 'same font subset name' problem
Paulo, I need to fix this problem myself because I only work with iText 0.96 ('validated' against our compnay standards). Could you please explain what exact I need to do with the source code? I am worried about the uniqueness of the subset name. Accordingat PDF spec, the pseudoUniqueTag for subset name consists of exactly six uppercase alphabetic characters. If I generate a large number of files, chances areI end up with the same subset name even the name is somewhat random. Our company will generate a lot of files and publish them in a documentum which uses Acrobat Distiller to assembly large documents (this reminds me it's about donation time now). Is it possible to completely prevent this subset collision from happening? Acrobat is really dumb on this issue. It should be able to merge the subsets regardless of the subset name. Paulo Soares [EMAIL PROTECTED] wrote: It's an iText bug that should have generated the subset prefix in a randomway. Of course that it wouldn't hurt if Acrobat was not that brain dead whenmerging fonts. I'll have a new version fixing this tomorrow.Best Regards,Paulo Soares- Original Message -From: "Jianhua Jin" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Wednesday, June 25, 2003 18:52Subject: [iText-questions] 'same font subset name' problem I was combining two iText-pdf files into one in Adobe Acrobat Writer (through menubar Document-Insert Pages), I got the error message 'These documents contain subset fonts that have the same name and connot be merged'. If I do need to embed the font with the file, what options I have to prevent this problem? Thanks. _ Do you Yahoo!? SBC Yahoo! DSL om/sbc/ - Now only $29.95 per month! Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: [iText-questions] Image in the headerFooter of the pdf
I've implementes the PageEvents in my servlet and i use the OnStartPage method. It works fine and see my image on every page in a table added to the documentbut it works only for the first and only page. From the second page to the end of the pdf file it seems that the OnStartPage is ignored! any idea? this is my code: ** public void onStartPage(PdfWriter writer, Document document) { try{ com.lowagie.text.Image image_header = com.lowagie.text.Image.getInstance(getServletContext().getRealPath( /productsheet/img/pdf_header.jpg )); Table datatable = new Table(1); datatable.setPadding(1); datatable.setSpacing(0); datatable.setWidth(100); Cell cell = new Cell(image_header); cell.setBorderWidth(0); cell.setBorder(com.lowagie.text.Rectangle.NO_BORDER); datatable.addCell(cell); document.add(datatable); } catch(Exception e){ //some exception } } part of my servlet service where i call the PdfWriter, the Document and the Page Event * ByteArrayOutputStream ba = new ByteArrayOutputStream(); PdfWriter writer = PdfWriter.getInstance(document, ba); document.addTitle(Scheda prodotto); document.addSubject(product_name); document.addHeader(Expires, 0); document.open(); onStartPage(writer, document); writeProductSheet(document); //method that write some content in the pdf document.close(); response.setContentLength(ba.size()); ServletOutputStream out = response.getOutputStream(); ba.writeTo(out); out.flush(); *** - Original Message - From: Bruno [EMAIL PROTECTED] To: Roberto Cipollini [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 12:06 PM Subject: Re: [iText-questions] Image in the headerFooter of the pdf Quoting Roberto Cipollini [EMAIL PROTECTED]: So, can anyone have a solution to have an image in the header of my preciuos pdf file? Use PageEvents. There is an example in the tutorial. It doesn't have Images, but it's similar. br, Bruno --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] PDF overlapping text in IE
[EMAIL PROTECTED] wrote: I am sorry if I confused you, yes it is simple to open an HTML page with image in it. Question I had was how to post a request to a servlet when we click on the link ?? Do you mean you don't know how to pass formfield to your webserver? I have an example that sends the content of the fields to a simple PHP script: http://www.lowagie.com/iText/examples/Chap13_form.pdf http://www.lowagie.com/iText/examples/Chap13_form.java For instance, if you click the target board, the PHP script says at what coordinate you hit the target. I know it works for me, but I don't know if it works for all combinations of browsers/readers. Bruno --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Image in the headerFooter of the pdf
Quoting Roberto Cipollini [EMAIL PROTECTED]: I've implementes the PageEvents in my servlet and i use the OnStartPage method. It works fine and see my image on every page in a table added to the documentbut it works only for the first and only page. From the second page to the end of the pdf file it seems that the OnStartPage is ignored! You have made two mistakes, a minor and a major one. The minor one, is that it's always better to use onEndPage for Headers and Footers. The major one, is that you use document.add in a page event instead of adding something to a PdfContentByte or adding objects at absolute positions. You should use a PdfPTable instead of a Table and you should add it at an absolute position (in your code you don't tell where the table should be added). Furthermore I would declare the PdfPTable and certainly the Image as a membervariable of you PageEvents-class and call it in the onEndPage method. The way you wrote it, isn't very performant. I hope these few remarks will help you on your way. br, Bruno --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] PDF overlapping text in IE
Quoting [EMAIL PROTECTED]: Thanks Bruno. This is exactly what I was looking for but can we submit this form with a hyper link instead of submit button. The submit button is only a special representation of a hyperlink, so yes, it's possible. I forward this to the mailinglist in the hope somebody has an example. (Please hit 'Reply all' instead of 'Reply' in the future.) br, Bruno --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] 'same font subset name' problem
-Original Message- From: Jianhua Jin [SMTP:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 14:03 To: Paulo Soares; [EMAIL PROTECTED] Subject: Re: [iText-questions] 'same font subset name' problem Paulo, I need to fix this problem myself because I only work with iText 0.96 ('validated' against our compnay standards). Could you please explain what exact I need to do with the source code? In BaseFont replace with this: public static String createSubsetPrefix() { String s = ; for (int k = 0; k 6; ++k) s += (char)(Math.random() * 26 + 'A'); return s + +; } I am worried about the uniqueness of the subset name. According at PDF spec, the pseudoUniqueTag for subset name consists of exactly six uppercase alphabetic characters. If I generate a large number of files, chances are I end up with the same subset name even the name is somewhat random. Our company will generate a lot of files and publish them in a documentum which uses Acrobat Distiller to assembly large documents (this reminds me it's about donation time now). Is it possible to completely prevent this subset collision from happening? No but you have 1 in 308915776 chances of collision. Acrobat is really dumb on this issue. It should be able to merge the subsets regardless of the subset name. I'm sure there are tools that take care of it. I'm doing a new PdfCopy for splitting and concatenating documents and I'll certainly include a renaming mechanism. Best Regards, Paulo Soares Paulo Soares [EMAIL PROTECTED] wrote: It's an iText bug that should have generated the subset prefix in a random way. Of course that it wouldn't hurt if Acrobat was not that brain dead when merging fonts. I'll have a new version fixing this tomorrow. Best Regards, Paulo Soares - Original Message - From: Jianhua Jin To: Sent: Wednesday, June 25, 2003 18:52 Subject: [iText-questions] 'same font subset name' problem I was combining two iText-pdf files into one in Adobe Acrobat Writer (through menubar Document-Insert Pages), I got the error message 'These documents contain subset fonts that have the same name and connot be merged'. If I do need to embed the font with the file, what options I have to prevent this problem? Thanks. _ Do you Yahoo!? SBC Yahoo! DSL om/sbc/ - Now only $29.95 per month! _ Do you Yahoo!? SBC Yahoo! DSL http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com /sbc/ - Now only $29.95 per month! --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Tables
Title: Message Is it possible to create a Pdf Table without borders? I tried: Table table = new Table(2); table.setBorder(0); I was hoping this would produce a table with no borders.
RE: [iText-questions] Image in the headerFooter of the pdf
I can add that you don't call onStartPage directly. The event is registered with writer.setPageEvent(my_event_class). Best Regards, Paulo Soares -Original Message- From: Bruno [SMTP:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 14:46 To: Roberto Cipollini Cc: [EMAIL PROTECTED] Subject: Re: [iText-questions] Image in the headerFooter of the pdf Quoting Roberto Cipollini [EMAIL PROTECTED]: I've implementes the PageEvents in my servlet and i use the OnStartPage method. It works fine and see my image on every page in a table added to the documentbut it works only for the first and only page. From the second page to the end of the pdf file it seems that the OnStartPage is ignored! You have made two mistakes, a minor and a major one. The minor one, is that it's always better to use onEndPage for Headers and Footers. The major one, is that you use document.add in a page event instead of adding something to a PdfContentByte or adding objects at absolute positions. You should use a PdfPTable instead of a Table and you should add it at an absolute position (in your code you don't tell where the table should be added). Furthermore I would declare the PdfPTable and certainly the Image as a membervariable of you PageEvents-class and call it in the onEndPage method. The way you wrote it, isn't very performant. I hope these few remarks will help you on your way. br, Bruno --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Tables
That only takes out the border from the table. You must also take out the border from each cell. Best Regards, Paulo Soares -Original Message- From: Sam Maina [SMTP:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 15:05 To: [EMAIL PROTECTED] Subject: [iText-questions] Tables Is it possible to create a Pdf Table without borders? I tried: Table table = new Table(2); table.setBorder(0); I was hoping this would produce a table with no borders. --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Creating Header/Footer
Hi: I´m using PageEvents to create Header and footer but I have a problem: when a table doesn´t fit in one page and has to continue on the following page,after inserting the header, it appears unarranged (see the PDF attached). Can someone please help me Thank you Nesbel EjemploPDF.pdf Description: Adobe PDF document
RE: [iText-questions] Image in the headerFooter of the pdf
Quoting Paulo Soares [EMAIL PROTECTED]: I can add that you don't call onStartPage directly. The event is registered with writer.setPageEvent(my_event_class). I didn't read the code to the end, I should have. Calling onStartPage directly was the biggest mistake. I think I have finished releasing 1.00. Belnet pulled the plug on me while I was tranferring the files, so if someone could check if the release is OK, I would be grateful... br, Bruno --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] Image in the headerFooter of the pdf
Hey...i've my header on all pages now!! thank you!!! There is onother problem now: the table is wider than the page. this is the code: //** PdfPTable table = new PdfPTable(1); float width = 100; table.setTotalWidth(width); table.getDefaultCell().setBorder(com.lowagie.text.Rectangle.NO_BORDER); PdfPCell cell = new PdfPCell(image_header); table.addCell(cell); table.setHeaderRows(1); for (int i = 1; i 300; i++) { table.addCell(myUserId); } document.add(table); //** It seems the SetTotalWidth doesnt work :((( roby --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
Re: [iText-questions] PdfPTables
Am Donnerstag, 26. Juni 2003 17:39 schrieb Sam Maina: Is there a way I could set two PdfTables side by side. I am trying to have a table with two cells each containing a table. Try this By Michael --- // ... PdfWriter.getInstance(document, out); document.open(); PdfPTable table1 = new PdfPTable(2); PdfPTable table2 = new PdfPTable(3); PdfPCell cell = new PdfPCell(new Paragraph(Text)); table2.addCell(cell); table2.addCell(cell); table2.addCell(cell); table1.addCell(table2); table1.addCell(table2); document.add(table1); // ... --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] PdfPTables
You can nest tables. Best Regards, Paulo Soares -Original Message- From: Sam Maina [SMTP:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 16:40 To: [EMAIL PROTECTED] Subject: [iText-questions] PdfPTables Is there a way I could set two PdfTables side by side. I am trying to have a table with two cells each containing a table. --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Creating Header/Footer
Use PdfPTable instead of Table and make sure you place the table in the header in an absolute position. Best Regards, Paulo Soares -Original Message- From: Nesbel Fra [SMTP:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 15:51 To: iText mailing list Subject: [iText-questions] Creating Header/Footer Hi: I´m using PageEvents to create Header and footer but I have a problem: when a table doesn´t fit in one page and has to continue on the following page,after inserting the header, it appears unarranged (see the PDF attached). Can someone please help me Thank you Nesbel File: EjemploPDF.pdf --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Split: Loss Information
Paul, I try to copy 1 page from old.pdf, then I add new content over ths page. Now, I can copy page without loss any information. But, I can not add new content inside this page. Here is my code: import java.io.*; import com.lowagie.text.*; import com.lowagie.text.pdf.*; public class test2 extends java.lang.Object { public static void main(String args[]) { try { PdfReader reader = new PdfReader(old.pdf); int n = reader.getNumberOfPages(); System.out.println(There are + n + pages in the original file.); Document document = new Document(reader.getPageSizeWithRotation(1)); //PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(new.pdf)); PdfCopy writer = new PdfCopy(document, new FileOutputStream(new.pdf) ); document.open(); PdfContentByte cb = writer.getDirectContent(); PdfImportedPage page; int i = 0; while (i 1 ) { i++; document.setPageSize(reader.getPageSizeWithRotation(i)); document.newPage(); page = writer.getImportedPage(reader, i); //cb.addTemplate(page, 1f, 0, 0, 1f, 0, 0); writer.addPage(page); cb.setLineWidth(10f); cb.moveTo(0, 0); cb.lineTo(800, 800); cb.stroke(); } document.close(); } catch(Exception e) { e.printStackTrace(); } } } From: Paulo Soares [EMAIL PROTECTED] To: 'yun wang' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [iText-questions] Split: Loss Information Date: Thu, 26 Jun 2003 12:17:18 +0100 You can try to use PdfCopy and modify the Concat example. Best Regards, Paulo Soares -Original Message- From: yun wang [SMTP:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 20:37 To: [EMAIL PROTECTED] Subject: [iText-questions] Split: Loss Information Is there some solution for the problem of losing information during Splitting? I lost annotations and also the form can not be fiiled like the original. Thanks, yun com.lowagie.tools.split_pdf This class can be used from the commandline to split an existing PDF file into two new files. Remark: some information from the original file (for instance annotations) will get lost in the process! arguments: srcfile destfile1 destfile2 pagenumber _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] Split: Loss Information
Paulo, I try to use PDFCopy instead of PDFWriter, it don't work. Thanks for your help, yun Here is my code: import java.io.*; import com.lowagie.text.*; import com.lowagie.text.pdf.*; public class test2 extends java.lang.Object { public static void main(String args[]) { try { PdfReader reader = new PdfReader(old.pdf); int n = reader.getNumberOfPages(); System.out.println(There are + n + pages in the original file.); Document document = new Document(reader.getPageSizeWithRotation(1)); //PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(new.pdf)); PdfCopy writer = new PdfCopy(document, new FileOutputStream(new.pdf) ); document.open(); PdfContentByte cb = writer.getDirectContent(); PdfImportedPage page; int i = 0; while (i 1 ) { i++; document.setPageSize(reader.getPageSizeWithRotation(i)); document.newPage(); page = writer.getImportedPage(reader, i); cb.addTemplate(page, 1f, 0, 0, 1f, 0, 0); cb.setLineWidth(10f); cb.moveTo(0, 0); cb.lineTo(800, 800); cb.stroke(); } document.close(); } catch(Exception e) { e.printStackTrace(); } } } From: Paulo Soares [EMAIL PROTECTED] To: 'yun wang' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [iText-questions] Split: Loss Information Date: Thu, 26 Jun 2003 12:17:18 +0100 You can try to use PdfCopy and modify the Concat example. Best Regards, Paulo Soares -Original Message- From: yun wang [SMTP:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 20:37 To: [EMAIL PROTECTED] Subject: [iText-questions] Split: Loss Information Is there some solution for the problem of losing information during Splitting? I lost annotations and also the form can not be fiiled like the original. Thanks, yun com.lowagie.tools.split_pdf This class can be used from the commandline to split an existing PDF file into two new files. Remark: some information from the original file (for instance annotations) will get lost in the process! arguments: srcfile destfile1 destfile2 pagenumber _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] hr in tagmap xml
Hi, if I place a long text in a table cell, the distance between the 1st lien and 2nd line is too big. How can we lessen this? And im trying to simulate an HR tag in xml. Which class should I use? Rectangle? Or graphic? Anyone got the hr working? :) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.493 / Virus Database: 292 - Release Date: 6/25/2003 --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] re: leading inside cells
Quoting Somik Raha [EMAIL PROTECTED]: Hi, I'm finding that leading (within Phrases or Paragraphs) is not honored inside a cell, but works fine outside. Is this a known bug ? Cell has its own setLeading. It overrules all other leadings. Bruno This seems too restrictive since a given cell can only have a single value for 'leading'. For example, on an invoice one might want to have the name of the company in a large font, followed by several address lines (paragraphs) in a smaller font. Thus, the line spacing (leading) between the first two paragraphs needs to be different than the leading between subsequent paragraphs. Simply adding the paragraphs in the above example to the document works (i.e. line spacing is okay). However, when more layout control is needed for the invoice and this code is changed to instead add paragraphs to a table cell (so that the top of the invoice can be layed out into rows and columns) the cell leading for all paragraphs is suddenly set to the leading based on the large font of the first paragraph. One can override the cell leading, but it affects all paragraphs in the cell. As a work-around you can add a sub table (consisting of 1 column and 2 rows), separting the large font paragraph from the smaller font paragraphs into two separate cells. This seems needless painful, though. Maybe I'm missing an important reason why the cell leading behaves in this way? Is there maybe a simple way to wrap the paragraphs into some type of chunk before it is placed in the table cell? Please help. Thanks Fred P.S. iText is GREAT! Keep up the good work! --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions