RE: Need help calling FOP correctly
Which class in FOP renders a GIF image to a PostScript file? In the fop.render.ps package I see PSImageHandlerGraphics2D, PSImageHandlerRawCCITTFax, PSImageHandlerRawJPEG, PSImageHandlerRawPNG, and PSImageHandlerRenderedImage. Is it one of these or another one? I also see the ImageEncoderCCITTFax, ImageEncoderJPEG, and ImageEncoderPNG classes, is one of these used for GIF images? Thank you, Ray CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and privileged information protected by law. If you received this e-mail in error, any review, use, dissemination, distribution, or copying of the e-mail is strictly prohibited. Please notify the sender immediately by return e-mail and delete all copies from your system.
Re: Need help calling FOP correctly
Well, i'm happy to solve this yourself :) Sometimes i tell the problem to a duck on my table, it will be solved by itself. :) Bye 2016-09-01 22:50 keltezéssel, Clark, Raymond C írta: Thank you. I was able to fix my problem by calling: psDocumentHandler.setupFontResources(); And then naming the font correctly later as: IFState ifState = IFState.create(); ifState.setFontFamily("Helvetica"); ifState.setFontStyle(Font.STYLE_NORMAL); ifState.setFontWeight(Font.WEIGHT_NORMAL); ifState.setFontSize(10); ifState.setTextColor(Color.BLACK); ifPainter.setState(ifState); Ray From: Szeak (Register Man) [mailto:szea...@gmail.com] Sent: Tuesday, August 30, 2016 1:41 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help calling FOP correctly Hi, We need more info about how do you using FOP. What is in FOP config? Can you show us your used config, and small piece from your code which loads or sets the config? 2016-08-29 22:51 keltezéssel, Clark, Raymond C írta: Hi all, At work we have a Java framework that I need to hook in with FOP. So I need our framework to call the appropriate FOP classes.methods to produce a PostScript file. I have it producing a PostScript file but I am having trouble with fonts. What do I need to call to get a font, Helvetica or Times New Roman, etc, loaded into PSDocumentHandler correctly so that when I call PSPainter.drawText the text appears in the PostScript file? Right now I am getting the Font not available exception. Thank you, Ray CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and privileged information protected by law. If you received this e-mail in error, any review, use, dissemination, distribution, or copying of the e-mail is strictly prohibited. Please notify the sender immediately by return e-mail and delete all copies from your system. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Need help calling FOP correctly
Thank you. I was able to fix my problem by calling: psDocumentHandler.setupFontResources(); And then naming the font correctly later as: IFState ifState = IFState.create(); ifState.setFontFamily("Helvetica"); ifState.setFontStyle(Font.STYLE_NORMAL); ifState.setFontWeight(Font.WEIGHT_NORMAL); ifState.setFontSize(10); ifState.setTextColor(Color.BLACK); ifPainter.setState(ifState); Ray From: Szeak (Register Man) [mailto:szea...@gmail.com] Sent: Tuesday, August 30, 2016 1:41 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help calling FOP correctly Hi, We need more info about how do you using FOP. What is in FOP config? Can you show us your used config, and small piece from your code which loads or sets the config? 2016-08-29 22:51 keltezéssel, Clark, Raymond C írta: Hi all, At work we have a Java framework that I need to hook in with FOP. So I need our framework to call the appropriate FOP classes.methods to produce a PostScript file. I have it producing a PostScript file but I am having trouble with fonts. What do I need to call to get a font, Helvetica or Times New Roman, etc, loaded into PSDocumentHandler correctly so that when I call PSPainter.drawText the text appears in the PostScript file? Right now I am getting the Font not available exception. Thank you, Ray CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and privileged information protected by law. If you received this e-mail in error, any review, use, dissemination, distribution, or copying of the e-mail is strictly prohibited. Please notify the sender immediately by return e-mail and delete all copies from your system. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org<mailto:fop-users-unsubscr...@xmlgraphics.apache.org> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org<mailto:fop-users-h...@xmlgraphics.apache.org>
RE: Need help calling FOP correctly
Thank you for the reply. What I would really like to do is to bypass the XML input that FOP normally uses and call the FOP Java methods from our framework directly in order to produce a PostScript file. Checking examples online I didn’t have a configuration file. I’m thinking now that I need one to define the fonts. At this point I am just trying to get 1 line of text to come out in the PS file. Here is my code. OutputStream output = new FileOutputStream("C:/snapshotviews/sts-workspace-3.7/billing-document-system/bds-service/src/test/resources/Products/Paper/xmlgraphicsTest.ps"); PSGenerator psGenerator = new PSGenerator(output); // Setup FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI()); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); IFContext context = new IFContext(foUserAgent); PSDocumentHandler psDocumentHandler = new PSDocumentHandler(context); // Stuff the Fonts in the class FontInfo fontInfo = new FontInfo(); fontInfo.addFontProperties("header", "Helvetica", "normal", 0); psDocumentHandler.setFontResources(fontInfo); psDocumentHandler.setFontInfo(fontInfo); psDocumentHandler.setGenerator(psGenerator); // Create the top of the PostScript file psDocumentHandler.endDocumentHeader(); // Loop through the pages PSPainter ifPainter = psDocumentHandler.startPageContent(); // Set up the font for the text IFState ifState = IFState.create(); ifState.setFontFamily("Helvetica"); ifState.setFontStyle("normal"); ifState.setFontWeight(0); ifState.setFontSize(10); ifState.setTextColor(Color.BLACK); ifPainter.setState(ifState); // Write the text to the PostScript file ifPainter.drawText(100, 500, 2, 5, null, "PDF Text"); // Wrap up psGenerator.flush(); output.flush(); output.close(); Thank you, Ray From: Szeak (Register Man) [mailto:szea...@gmail.com] Sent: Tuesday, August 30, 2016 1:41 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help calling FOP correctly Hi, We need more info about how do you using FOP. What is in FOP config? Can you show us your used config, and small piece from your code which loads or sets the config? 2016-08-29 22:51 keltezéssel, Clark, Raymond C írta: Hi all, At work we have a Java framework that I need to hook in with FOP. So I need our framework to call the appropriate FOP classes.methods to produce a PostScript file. I have it producing a PostScript file but I am having trouble with fonts. What do I need to call to get a font, Helvetica or Times New Roman, etc, loaded into PSDocumentHandler correctly so that when I call PSPainter.drawText the text appears in the PostScript file? Right now I am getting the Font not available exception. Thank you, Ray CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and privileged information protected by law. If you received this e-mail in error, any review, use, dissemination, distribution, or copying of the e-mail is strictly prohibited. Please notify the sender immediately by return e-mail and delete all copies from your system. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org<mailto:fop-users-unsubscr...@xmlgraphics.apache.org> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org<mailto:fop-users-h...@xmlgraphics.apache.org>
Need help calling FOP correctly
Hi all, At work we have a Java framework that I need to hook in with FOP. So I need our framework to call the appropriate FOP classes.methods to produce a PostScript file. I have it producing a PostScript file but I am having trouble with fonts. What do I need to call to get a font, Helvetica or Times New Roman, etc, loaded into PSDocumentHandler correctly so that when I call PSPainter.drawText the text appears in the PostScript file? Right now I am getting the Font not available exception. Thank you, Ray CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and privileged information protected by law. If you received this e-mail in error, any review, use, dissemination, distribution, or copying of the e-mail is strictly prohibited. Please notify the sender immediately by return e-mail and delete all copies from your system.
Re: Need help to get Arabic working with FOP
Hello, I think that it's not so simple, but as Eduard pointed out you need: a) a correct font b) fop-1.1 c) fo generation d) fop configuration I am also frustrated, I have not been able to generate a PDF in Arabic. So, these are my questions/experiences: a) I'm using Arial Unicode MS [1]. It's a good choice? b) I downloaded the last version from [2] c) I tried xsltproc, that converts any gliph into character codes (ej. 3.8 (#x628;#x627;#x644;#x639;#x631;#x628;#x64A;#x629;)), or saxon that leaves the gliphs intact (3.8 (بالعربية)) d) I've edited fop.xconf to register the font In any case, not only fop refuses to generate a pdf, complaining about missing glyphs and hyphenation, but aborts with many org.apache.fop.fo.ValidationException. So, anyone know's or can point to a document to learn about these questions a) What font is recommended, or have been used with success? b) What is the best way to generate the FO? c) What configuration do you use to register the font? d) There are any examples? Best regards, Bernardo [1] http://www.microsoft.com/typography/fonts/family.aspx?fid=24 [2] http://xmlgraphics.apache.org/fop/1.1/ -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 4:53 AM, Eduard Tibet eduard.ti...@i-free.comwrote: Brian, It's simple. I'll try to explain. 1. Check if fonts, available on your system, support Arabic glyphs. 2. Write down (i.e. in any text editor) the names of these fonts. 3. Open your fo file and check the names of the fonts you are using. Please, note, that the font families in your fo file should have the same names as your font files in your system. 4. Try to use the exact fonts with Arabic glyphs instead of autodetect. Try to use the following: http://xmlgraphics.apache.org/fop/1.1/fonts.html#advanced (but hold the step 2 in your mind). Finally, you need to get: 1. The names of the fonts file in your system, that contains Arabic glyphs. 2. The fo file with font families that exists in your system and contains Arabic glyphs. 3. The configuration file that makes a dependency between the font files in your system and font names fo file. -- Best regards, Eduard Tibet -Original Message- From: Brian Hansen [mailto:greencopperm...@gmail.com] Sent: Thursday, November 08, 2012 11:06 AM To: fop-users@xmlgraphics.apache.org Subject: Need help to get Arabic working with FOP Hi I'm pulling my hair out in frustration! I have been trying for so long to get Arabic fonts to display correct when using Docbook (converting XML to FO using Xsltproc and then to PDF using FOP). I'm sorry, but I just don't understand the documentation for FOP. It's not clear enough for me. I'm running FOP 1.0 on Linux. I need to know exacty, step by step, what I need to do to get Arabic text rendered properly. Instead # is shown. I have created this file foprc.xconf: fop renderers renderer mime=application/pdf fonts auto-detect/ /fonts /renderer /renderers /fop When I run FOP I use this command: $ fop -c foprc.xconf -fo filename.fo -pdf filename.pdf I get this message: SNIP Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. Glyph ? (0x627, afii57415) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Helvetica-Bold. Glyph ? (0x625, afii57413) not available in font Helvetica-Bold. Glyph ? (0x633, afii57427) not available in font Helvetica-Bold. Glyph ? (0x645, afii57445) not available in font Helvetica-Bold. Glyph ? (0x64a, afii57450) not available in font Helvetica-Bold. Glyph ? (0x629, afii57417) not available in font Helvetica-Bold. Glyph ? (0x646, afii57446) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Times-Roman. Glyph ? (0x627, afii57415) not available in font Times-Roman. Glyph ? (0x625, afii57413) not available in font Times-Roman. Glyph ? (0x647, afii57470) not available in font Times-Roman. Glyph ? (0x62a, afii57418) not available in font Times-Roman. Glyph ? (0x642, afii57442) not available in font Times-Roman. Glyph ? (0x648, afii57448) not available in font Times-Roman. Glyph ? (0x649, afii57449) not available in font Times-Roman. Glyph ? (0x62e, afii57422) not available in font Times-Bold. Glyph ? (0x627, afii57415) not available in font Times-Bold. Glyph ? (0x641, afii57441) not available in font Times-Bold. Glyph ? (0x625, afii57413) not available in font Times-Bold. Glyph ? (0x650, afii57456) not available in font Times-Bold. Glyph ? (0x646, afii57446) not available in font Times-Bold. Glyph ? (0x651, afii57457) not available in font Times-Bold. Glyph ? (0x64e, afii57454) not available in font Times-Bold. Line 1 of a paragraph overflows the available area by 33725
Re: Need help to get Arabic working with FOP
Hi Bernardo, By the looks of the exception you've got an error in the FO you're creating, which probably has nothing to do with Arabic support. If you're wondering which fonts to use, I'd suggest you read the Apache FOP website, it should give you all the information you need [1]. As for your erroneous FO, I'd suggest the following; use an XSLT transformer to create the FO, then use that as the input to FOP and you should get some information from the error as to which FO construct is erroring. If you're still having issues, post the FO to this forum (though under a new thread, it's won't be relevant to the original thread). Hope that helps Mehdi [1] http://xmlgraphics.apache.org/fop/trunk/complexscripts.html#fonts_arabic On 8 November 2012 11:39, Bernardo Gonzalez Kriegel bgkrie...@gmail.comwrote: Hello, I think that it's not so simple, but as Eduard pointed out you need: a) a correct font b) fop-1.1 c) fo generation d) fop configuration I am also frustrated, I have not been able to generate a PDF in Arabic. So, these are my questions/experiences: a) I'm using Arial Unicode MS [1]. It's a good choice? b) I downloaded the last version from [2] c) I tried xsltproc, that converts any gliph into character codes (ej. 3.8 (#x628;#x627;#x644;#x639;#x631;#x628;#x64A;#x629;)), or saxon that leaves the gliphs intact (3.8 (بالعربية)) d) I've edited fop.xconf to register the font In any case, not only fop refuses to generate a pdf, complaining about missing glyphs and hyphenation, but aborts with many org.apache.fop.fo.ValidationException. So, anyone know's or can point to a document to learn about these questions a) What font is recommended, or have been used with success? b) What is the best way to generate the FO? c) What configuration do you use to register the font? d) There are any examples? Best regards, Bernardo [1] http://www.microsoft.com/typography/fonts/family.aspx?fid=24 [2] http://xmlgraphics.apache.org/fop/1.1/ -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 4:53 AM, Eduard Tibet eduard.ti...@i-free.comwrote: Brian, It's simple. I'll try to explain. 1. Check if fonts, available on your system, support Arabic glyphs. 2. Write down (i.e. in any text editor) the names of these fonts. 3. Open your fo file and check the names of the fonts you are using. Please, note, that the font families in your fo file should have the same names as your font files in your system. 4. Try to use the exact fonts with Arabic glyphs instead of autodetect. Try to use the following: http://xmlgraphics.apache.org/fop/1.1/fonts.html#advanced (but hold the step 2 in your mind). Finally, you need to get: 1. The names of the fonts file in your system, that contains Arabic glyphs. 2. The fo file with font families that exists in your system and contains Arabic glyphs. 3. The configuration file that makes a dependency between the font files in your system and font names fo file. -- Best regards, Eduard Tibet -Original Message- From: Brian Hansen [mailto:greencopperm...@gmail.com] Sent: Thursday, November 08, 2012 11:06 AM To: fop-users@xmlgraphics.apache.org Subject: Need help to get Arabic working with FOP Hi I'm pulling my hair out in frustration! I have been trying for so long to get Arabic fonts to display correct when using Docbook (converting XML to FO using Xsltproc and then to PDF using FOP). I'm sorry, but I just don't understand the documentation for FOP. It's not clear enough for me. I'm running FOP 1.0 on Linux. I need to know exacty, step by step, what I need to do to get Arabic text rendered properly. Instead # is shown. I have created this file foprc.xconf: fop renderers renderer mime=application/pdf fonts auto-detect/ /fonts /renderer /renderers /fop When I run FOP I use this command: $ fop -c foprc.xconf -fo filename.fo -pdf filename.pdf I get this message: SNIP Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. Glyph ? (0x627, afii57415) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Helvetica-Bold. Glyph ? (0x625, afii57413) not available in font Helvetica-Bold. Glyph ? (0x633, afii57427) not available in font Helvetica-Bold. Glyph ? (0x645, afii57445) not available in font Helvetica-Bold. Glyph ? (0x64a, afii57450) not available in font Helvetica-Bold. Glyph ? (0x629, afii57417) not available in font Helvetica-Bold. Glyph ? (0x646, afii57446) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Times-Roman. Glyph ? (0x627, afii57415) not available in font Times-Roman. Glyph ? (0x625, afii57413) not available in font Times-Roman. Glyph ? (0x647
Re: Need help to get Arabic working with FOP
an example is attached. in fact it was provided in this list by someone else by I am including also a fop.xconf file. On Thu, Nov 8, 2012 at 11:39 AM, Bernardo Gonzalez Kriegel bgkrie...@gmail.com wrote: Hello, I think that it's not so simple, but as Eduard pointed out you need: a) a correct font b) fop-1.1 c) fo generation d) fop configuration I am also frustrated, I have not been able to generate a PDF in Arabic. So, these are my questions/experiences: a) I'm using Arial Unicode MS [1]. It's a good choice? b) I downloaded the last version from [2] c) I tried xsltproc, that converts any gliph into character codes (ej. 3.8 (#x628;#x627;#x644;#x639;#x631;#x628;#x64A;#x629;)), or saxon that leaves the gliphs intact (3.8 (بالعربية)) d) I've edited fop.xconf to register the font In any case, not only fop refuses to generate a pdf, complaining about missing glyphs and hyphenation, but aborts with many org.apache.fop.fo.ValidationException. So, anyone know's or can point to a document to learn about these questions a) What font is recommended, or have been used with success? b) What is the best way to generate the FO? c) What configuration do you use to register the font? d) There are any examples? Best regards, Bernardo [1] http://www.microsoft.com/typography/fonts/family.aspx?fid=24 [2] http://xmlgraphics.apache.org/fop/1.1/ -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 4:53 AM, Eduard Tibet eduard.ti...@i-free.com wrote: Brian, It's simple. I'll try to explain. 1. Check if fonts, available on your system, support Arabic glyphs. 2. Write down (i.e. in any text editor) the names of these fonts. 3. Open your fo file and check the names of the fonts you are using. Please, note, that the font families in your fo file should have the same names as your font files in your system. 4. Try to use the exact fonts with Arabic glyphs instead of autodetect. Try to use the following: http://xmlgraphics.apache.org/fop/1.1/fonts.html#advanced (but hold the step 2 in your mind). Finally, you need to get: 1. The names of the fonts file in your system, that contains Arabic glyphs. 2. The fo file with font families that exists in your system and contains Arabic glyphs. 3. The configuration file that makes a dependency between the font files in your system and font names fo file. -- Best regards, Eduard Tibet -Original Message- From: Brian Hansen [mailto:greencopperm...@gmail.com] Sent: Thursday, November 08, 2012 11:06 AM To: fop-users@xmlgraphics.apache.org Subject: Need help to get Arabic working with FOP Hi I'm pulling my hair out in frustration! I have been trying for so long to get Arabic fonts to display correct when using Docbook (converting XML to FO using Xsltproc and then to PDF using FOP). I'm sorry, but I just don't understand the documentation for FOP. It's not clear enough for me. I'm running FOP 1.0 on Linux. I need to know exacty, step by step, what I need to do to get Arabic text rendered properly. Instead # is shown. I have created this file foprc.xconf: fop renderers renderer mime=application/pdf fonts auto-detect/ /fonts /renderer /renderers /fop When I run FOP I use this command: $ fop -c foprc.xconf -fo filename.fo -pdf filename.pdf I get this message: SNIP Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. Glyph ? (0x627, afii57415) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Helvetica-Bold. Glyph ? (0x625, afii57413) not available in font Helvetica-Bold. Glyph ? (0x633, afii57427) not available in font Helvetica-Bold. Glyph ? (0x645, afii57445) not available in font Helvetica-Bold. Glyph ? (0x64a, afii57450) not available in font Helvetica-Bold. Glyph ? (0x629, afii57417) not available in font Helvetica-Bold. Glyph ? (0x646, afii57446) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Times-Roman. Glyph ? (0x627, afii57415) not available in font Times-Roman. Glyph ? (0x625, afii57413) not available in font Times-Roman. Glyph ? (0x647, afii57470) not available in font Times-Roman. Glyph ? (0x62a, afii57418) not available in font Times-Roman. Glyph ? (0x642, afii57442) not available in font Times-Roman. Glyph ? (0x648, afii57448) not available in font Times-Roman. Glyph ? (0x649, afii57449) not available in font Times-Roman. Glyph ? (0x62e, afii57422) not available in font Times-Bold. Glyph ? (0x627, afii57415) not available in font Times-Bold. Glyph ? (0x641, afii57441) not available in font Times-Bold. Glyph ? (0x625, afii57413) not available in font Times-Bold. Glyph ? (0x650, afii57456) not available in font Times-Bold. Glyph
Re: Need help to get Arabic working with FOP
Luis, I could re-generate the example, so I think my problem is in the fo generation side. Many thanks, Bernardo -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 9:26 AM, Luis Bernardo lmpmberna...@gmail.comwrote: an example is attached. in fact it was provided in this list by someone else by I am including also a fop.xconf file. On Thu, Nov 8, 2012 at 11:39 AM, Bernardo Gonzalez Kriegel bgkrie...@gmail.com wrote: Hello, I think that it's not so simple, but as Eduard pointed out you need: a) a correct font b) fop-1.1 c) fo generation d) fop configuration I am also frustrated, I have not been able to generate a PDF in Arabic. So, these are my questions/experiences: a) I'm using Arial Unicode MS [1]. It's a good choice? b) I downloaded the last version from [2] c) I tried xsltproc, that converts any gliph into character codes (ej. 3.8 (#x628;#x627;#x644;#x639;#x631;#x628;#x64A;#x629;)), or saxon that leaves the gliphs intact (3.8 (بالعربية)) d) I've edited fop.xconf to register the font In any case, not only fop refuses to generate a pdf, complaining about missing glyphs and hyphenation, but aborts with many org.apache.fop.fo.ValidationException. So, anyone know's or can point to a document to learn about these questions a) What font is recommended, or have been used with success? b) What is the best way to generate the FO? c) What configuration do you use to register the font? d) There are any examples? Best regards, Bernardo [1] http://www.microsoft.com/typography/fonts/family.aspx?fid=24 [2] http://xmlgraphics.apache.org/fop/1.1/ -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 4:53 AM, Eduard Tibet eduard.ti...@i-free.com wrote: Brian, It's simple. I'll try to explain. 1. Check if fonts, available on your system, support Arabic glyphs. 2. Write down (i.e. in any text editor) the names of these fonts. 3. Open your fo file and check the names of the fonts you are using. Please, note, that the font families in your fo file should have the same names as your font files in your system. 4. Try to use the exact fonts with Arabic glyphs instead of autodetect. Try to use the following: http://xmlgraphics.apache.org/fop/1.1/fonts.html#advanced (but hold the step 2 in your mind). Finally, you need to get: 1. The names of the fonts file in your system, that contains Arabic glyphs. 2. The fo file with font families that exists in your system and contains Arabic glyphs. 3. The configuration file that makes a dependency between the font files in your system and font names fo file. -- Best regards, Eduard Tibet -Original Message- From: Brian Hansen [mailto:greencopperm...@gmail.com] Sent: Thursday, November 08, 2012 11:06 AM To: fop-users@xmlgraphics.apache.org Subject: Need help to get Arabic working with FOP Hi I'm pulling my hair out in frustration! I have been trying for so long to get Arabic fonts to display correct when using Docbook (converting XML to FO using Xsltproc and then to PDF using FOP). I'm sorry, but I just don't understand the documentation for FOP. It's not clear enough for me. I'm running FOP 1.0 on Linux. I need to know exacty, step by step, what I need to do to get Arabic text rendered properly. Instead # is shown. I have created this file foprc.xconf: fop renderers renderer mime=application/pdf fonts auto-detect/ /fonts /renderer /renderers /fop When I run FOP I use this command: $ fop -c foprc.xconf -fo filename.fo -pdf filename.pdf I get this message: SNIP Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. Glyph ? (0x627, afii57415) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Helvetica-Bold. Glyph ? (0x625, afii57413) not available in font Helvetica-Bold. Glyph ? (0x633, afii57427) not available in font Helvetica-Bold. Glyph ? (0x645, afii57445) not available in font Helvetica-Bold. Glyph ? (0x64a, afii57450) not available in font Helvetica-Bold. Glyph ? (0x629, afii57417) not available in font Helvetica-Bold. Glyph ? (0x646, afii57446) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Times-Roman. Glyph ? (0x627, afii57415) not available in font Times-Roman. Glyph ? (0x625, afii57413) not available in font Times-Roman. Glyph ? (0x647, afii57470) not available in font Times-Roman. Glyph ? (0x62a, afii57418) not available in font Times-Roman. Glyph ? (0x642, afii57442) not available in font Times-Roman. Glyph ? (0x648, afii57448) not available in font Times-Roman
Re: Need help to get Arabic working with FOP
Hi Mehdi, You are right, I used the example and configuration sent by Luis Bernardo, and fop works well. As for the fonts, his (Luis) example used Arial, I also tested ArialUnicodeMS and works. Traditional arabic (BTW, the links on the page are wrong) produces this error: org.apache.fop.apps.FOPException: The font trado.ttf is not embeddable due to a licensing restriction. Thank you, Bernardo -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 9:12 AM, Mehdi Houshmand med1...@gmail.com wrote: Hi Bernardo, By the looks of the exception you've got an error in the FO you're creating, which probably has nothing to do with Arabic support. If you're wondering which fonts to use, I'd suggest you read the Apache FOP website, it should give you all the information you need [1]. As for your erroneous FO, I'd suggest the following; use an XSLT transformer to create the FO, then use that as the input to FOP and you should get some information from the error as to which FO construct is erroring. If you're still having issues, post the FO to this forum (though under a new thread, it's won't be relevant to the original thread). Hope that helps Mehdi [1] http://xmlgraphics.apache.org/fop/trunk/complexscripts.html#fonts_arabic On 8 November 2012 11:39, Bernardo Gonzalez Kriegel bgkrie...@gmail.comwrote: Hello, I think that it's not so simple, but as Eduard pointed out you need: a) a correct font b) fop-1.1 c) fo generation d) fop configuration I am also frustrated, I have not been able to generate a PDF in Arabic. So, these are my questions/experiences: a) I'm using Arial Unicode MS [1]. It's a good choice? b) I downloaded the last version from [2] c) I tried xsltproc, that converts any gliph into character codes (ej. 3.8 (#x628;#x627;#x644;#x639;#x631;#x628;#x64A;#x629;)), or saxon that leaves the gliphs intact (3.8 (بالعربية)) d) I've edited fop.xconf to register the font In any case, not only fop refuses to generate a pdf, complaining about missing glyphs and hyphenation, but aborts with many org.apache.fop.fo.ValidationException. So, anyone know's or can point to a document to learn about these questions a) What font is recommended, or have been used with success? b) What is the best way to generate the FO? c) What configuration do you use to register the font? d) There are any examples? Best regards, Bernardo [1] http://www.microsoft.com/typography/fonts/family.aspx?fid=24 [2] http://xmlgraphics.apache.org/fop/1.1/ -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 4:53 AM, Eduard Tibet eduard.ti...@i-free.comwrote: Brian, It's simple. I'll try to explain. 1. Check if fonts, available on your system, support Arabic glyphs. 2. Write down (i.e. in any text editor) the names of these fonts. 3. Open your fo file and check the names of the fonts you are using. Please, note, that the font families in your fo file should have the same names as your font files in your system. 4. Try to use the exact fonts with Arabic glyphs instead of autodetect. Try to use the following: http://xmlgraphics.apache.org/fop/1.1/fonts.html#advanced (but hold the step 2 in your mind). Finally, you need to get: 1. The names of the fonts file in your system, that contains Arabic glyphs. 2. The fo file with font families that exists in your system and contains Arabic glyphs. 3. The configuration file that makes a dependency between the font files in your system and font names fo file. -- Best regards, Eduard Tibet -Original Message- From: Brian Hansen [mailto:greencopperm...@gmail.com] Sent: Thursday, November 08, 2012 11:06 AM To: fop-users@xmlgraphics.apache.org Subject: Need help to get Arabic working with FOP Hi I'm pulling my hair out in frustration! I have been trying for so long to get Arabic fonts to display correct when using Docbook (converting XML to FO using Xsltproc and then to PDF using FOP). I'm sorry, but I just don't understand the documentation for FOP. It's not clear enough for me. I'm running FOP 1.0 on Linux. I need to know exacty, step by step, what I need to do to get Arabic text rendered properly. Instead # is shown. I have created this file foprc.xconf: fop renderers renderer mime=application/pdf fonts auto-detect/ /fonts /renderer /renderers /fop When I run FOP I use this command: $ fop -c foprc.xconf -fo filename.fo -pdf filename.pdf I get this message: SNIP Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. Glyph ? (0x627, afii57415) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Helvetica-Bold. Glyph ? (0x625, afii57413) not available in font Helvetica
Re: Need help to get Arabic working with FOP
Ahh yeah, that doesn't mean it doesn't work though. You can reference fonts [1], but you'll need them installed if you want to view them. Alternatively you could either 1) buy the license or 2) uhm *cough* change the bit flag which tells Fop the font is not embeddable [2] *cough*... Woahh that was an informative cough! Obviously any changes you make to the font are ill advised in a commercial setting, but may help you test the font before purchasing it. Mehdi [1] http://xmlgraphics.apache.org/fop/1.1/fonts.html *cough* [2] http://www.microsoft.com/typography/otspec/os2.htm#fst *cough* On 8 November 2012 13:30, Bernardo Gonzalez Kriegel bgkrie...@gmail.comwrote: Hi Mehdi, You are right, I used the example and configuration sent by Luis Bernardo, and fop works well. As for the fonts, his (Luis) example used Arial, I also tested ArialUnicodeMS and works. Traditional arabic (BTW, the links on the page are wrong) produces this error: org.apache.fop.apps.FOPException: The font trado.ttf is not embeddable due to a licensing restriction. Thank you, Bernardo -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 9:12 AM, Mehdi Houshmand med1...@gmail.com wrote: Hi Bernardo, By the looks of the exception you've got an error in the FO you're creating, which probably has nothing to do with Arabic support. If you're wondering which fonts to use, I'd suggest you read the Apache FOP website, it should give you all the information you need [1]. As for your erroneous FO, I'd suggest the following; use an XSLT transformer to create the FO, then use that as the input to FOP and you should get some information from the error as to which FO construct is erroring. If you're still having issues, post the FO to this forum (though under a new thread, it's won't be relevant to the original thread). Hope that helps Mehdi [1] http://xmlgraphics.apache.org/fop/trunk/complexscripts.html#fonts_arabic On 8 November 2012 11:39, Bernardo Gonzalez Kriegel bgkrie...@gmail.comwrote: Hello, I think that it's not so simple, but as Eduard pointed out you need: a) a correct font b) fop-1.1 c) fo generation d) fop configuration I am also frustrated, I have not been able to generate a PDF in Arabic. So, these are my questions/experiences: a) I'm using Arial Unicode MS [1]. It's a good choice? b) I downloaded the last version from [2] c) I tried xsltproc, that converts any gliph into character codes (ej. 3.8 (#x628;#x627;#x644;#x639;#x631;#x628;#x64A;#x629;)), or saxon that leaves the gliphs intact (3.8 (بالعربية)) d) I've edited fop.xconf to register the font In any case, not only fop refuses to generate a pdf, complaining about missing glyphs and hyphenation, but aborts with many org.apache.fop.fo.ValidationException. So, anyone know's or can point to a document to learn about these questions a) What font is recommended, or have been used with success? b) What is the best way to generate the FO? c) What configuration do you use to register the font? d) There are any examples? Best regards, Bernardo [1] http://www.microsoft.com/typography/fonts/family.aspx?fid=24 [2] http://xmlgraphics.apache.org/fop/1.1/ -- Bernardo Gonzalez Kriegel bgkrie...@gmail.com On Thu, Nov 8, 2012 at 4:53 AM, Eduard Tibet eduard.ti...@i-free.comwrote: Brian, It's simple. I'll try to explain. 1. Check if fonts, available on your system, support Arabic glyphs. 2. Write down (i.e. in any text editor) the names of these fonts. 3. Open your fo file and check the names of the fonts you are using. Please, note, that the font families in your fo file should have the same names as your font files in your system. 4. Try to use the exact fonts with Arabic glyphs instead of autodetect. Try to use the following: http://xmlgraphics.apache.org/fop/1.1/fonts.html#advanced (but hold the step 2 in your mind). Finally, you need to get: 1. The names of the fonts file in your system, that contains Arabic glyphs. 2. The fo file with font families that exists in your system and contains Arabic glyphs. 3. The configuration file that makes a dependency between the font files in your system and font names fo file. -- Best regards, Eduard Tibet -Original Message- From: Brian Hansen [mailto:greencopperm...@gmail.com] Sent: Thursday, November 08, 2012 11:06 AM To: fop-users@xmlgraphics.apache.org Subject: Need help to get Arabic working with FOP Hi I'm pulling my hair out in frustration! I have been trying for so long to get Arabic fonts to display correct when using Docbook (converting XML to FO using Xsltproc and then to PDF using FOP). I'm sorry, but I just don't understand the documentation for FOP. It's not clear enough for me. I'm running FOP 1.0 on Linux. I need to know exacty, step by step, what I need to do to get Arabic text rendered properly. Instead # is shown. I have created this file foprc.xconf: fop
Re: Need help to get Arabic working with FOP
Thank you all for your replies. I haven't been succesfull in getting the result right. I downloaded the attached files and tried those, and arabic was displayed using Arial, I also tried different other fonts such as ScheherazadeRegOT, but in all cases the letters are not connected correctly, each letter is displayed standing alone. Also vocal signs are lost even with ScheherazadeRegOT. Anyway, I found this application: https://code.google.com/p/wkhtmltopdf/ It uses webkit to convert from HTML to PDF and the result is great with regard to fonts. No FO file is needed. Links within the PDF file doesn't work, but I think I can live with that. I think I'm gonna give up on FOP for now and use webkit HTML to PDF instead. Best regards. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Need help to get Arabic working with FOP
don't give up so easily; send me your input FO file (or a sample) and I'll check what you are doing wrong... just to make sure, you are using fop 1.1 yes? note that others are regularly using fop 1.1 successfully for arabic, so it is probably a usage or config problem on your end On Thu, Nov 8, 2012 at 4:23 PM, Brian Hansen greencopperm...@gmail.comwrote: Thank you all for your replies. I haven't been succesfull in getting the result right. I downloaded the attached files and tried those, and arabic was displayed using Arial, I also tried different other fonts such as ScheherazadeRegOT, but in all cases the letters are not connected correctly, each letter is displayed standing alone. Also vocal signs are lost even with ScheherazadeRegOT. Anyway, I found this application: https://code.google.com/p/wkhtmltopdf/ It uses webkit to convert from HTML to PDF and the result is great with regard to fonts. No FO file is needed. Links within the PDF file doesn't work, but I think I can live with that. I think I'm gonna give up on FOP for now and use webkit HTML to PDF instead. Best regards. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Need help to get Arabic working with FOP
I have been using FOP 1.0, but never mind, I have just fallin in love with wkhtmltopdf - the static version produces links inside the PDF file and the result is so much better than FOP. Thanks, but I wont be using FOP any longer I think the result from wkhtmltopdf is much better, even with the problems with Arabic fonts. 2012/11/9, Glenn Adams gl...@skynav.com: don't give up so easily; send me your input FO file (or a sample) and I'll check what you are doing wrong... just to make sure, you are using fop 1.1 yes? note that others are regularly using fop 1.1 successfully for arabic, so it is probably a usage or config problem on your end On Thu, Nov 8, 2012 at 4:23 PM, Brian Hansen greencopperm...@gmail.comwrote: Thank you all for your replies. I haven't been succesfull in getting the result right. I downloaded the attached files and tried those, and arabic was displayed using Arial, I also tried different other fonts such as ScheherazadeRegOT, but in all cases the letters are not connected correctly, each letter is displayed standing alone. Also vocal signs are lost even with ScheherazadeRegOT. Anyway, I found this application: https://code.google.com/p/wkhtmltopdf/ It uses webkit to convert from HTML to PDF and the result is great with regard to fonts. No FO file is needed. Links within the PDF file doesn't work, but I think I can live with that. I think I'm gonna give up on FOP for now and use webkit HTML to PDF instead. Best regards. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Need help to get Arabic working with FOP
On Thu, Nov 8, 2012 at 5:11 PM, Brian Hansen greencopperm...@gmail.comwrote: I have been using FOP 1.0, but never mind, I have just fallin in love with wkhtmltopdf - the static version produces links inside the PDF file and the result is so much better than FOP. Thanks, but I wont be using FOP any longer I think the result from wkhtmltopdf is much better, even with the problems with Arabic fonts. It can't be better since FOP 1.0 never supported Arabic. You are comparing apples and oranges. If you wish to try FOP with Arabic, use a version that supports it. Otherwise, you are wasting our time. Whatever.
Need help to get Arabic working with FOP
Hi I'm pulling my hair out in frustration! I have been trying for so long to get Arabic fonts to display correct when using Docbook (converting XML to FO using Xsltproc and then to PDF using FOP). I'm sorry, but I just don't understand the documentation for FOP. It's not clear enough for me. I'm running FOP 1.0 on Linux. I need to know exacty, step by step, what I need to do to get Arabic text rendered properly. Instead # is shown. I have created this file foprc.xconf: fop renderers renderer mime=application/pdf fonts auto-detect/ /fonts /renderer /renderers /fop When I run FOP I use this command: $ fop -c foprc.xconf -fo filename.fo -pdf filename.pdf I get this message: SNIP Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. Glyph ? (0x627, afii57415) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Helvetica-Bold. Glyph ? (0x625, afii57413) not available in font Helvetica-Bold. Glyph ? (0x633, afii57427) not available in font Helvetica-Bold. Glyph ? (0x645, afii57445) not available in font Helvetica-Bold. Glyph ? (0x64a, afii57450) not available in font Helvetica-Bold. Glyph ? (0x629, afii57417) not available in font Helvetica-Bold. Glyph ? (0x646, afii57446) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Times-Roman. Glyph ? (0x627, afii57415) not available in font Times-Roman. Glyph ? (0x625, afii57413) not available in font Times-Roman. Glyph ? (0x647, afii57470) not available in font Times-Roman. Glyph ? (0x62a, afii57418) not available in font Times-Roman. Glyph ? (0x642, afii57442) not available in font Times-Roman. Glyph ? (0x648, afii57448) not available in font Times-Roman. Glyph ? (0x649, afii57449) not available in font Times-Roman. Glyph ? (0x62e, afii57422) not available in font Times-Bold. Glyph ? (0x627, afii57415) not available in font Times-Bold. Glyph ? (0x641, afii57441) not available in font Times-Bold. Glyph ? (0x625, afii57413) not available in font Times-Bold. Glyph ? (0x650, afii57456) not available in font Times-Bold. Glyph ? (0x646, afii57446) not available in font Times-Bold. Glyph ? (0x651, afii57457) not available in font Times-Bold. Glyph ? (0x64e, afii57454) not available in font Times-Bold. Line 1 of a paragraph overflows the available area by 33725 millipoints. (See position 38:32883) Line 1 of a paragraph overflows the available area by 33725 millipoints. (See position 38:33245) Line 1 of a paragraph overflows the available area by 33725 millipoints. (See position 38:33624) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:40585) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:41202) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:41645) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:42132) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:42782) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:43361) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:44233) /SNIP What exactly do I need to do? - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: Need help to get Arabic working with FOP
Brian, It's simple. I'll try to explain. 1. Check if fonts, available on your system, support Arabic glyphs. 2. Write down (i.e. in any text editor) the names of these fonts. 3. Open your fo file and check the names of the fonts you are using. Please, note, that the font families in your fo file should have the same names as your font files in your system. 4. Try to use the exact fonts with Arabic glyphs instead of autodetect. Try to use the following: http://xmlgraphics.apache.org/fop/1.1/fonts.html#advanced (but hold the step 2 in your mind). Finally, you need to get: 1. The names of the fonts file in your system, that contains Arabic glyphs. 2. The fo file with font families that exists in your system and contains Arabic glyphs. 3. The configuration file that makes a dependency between the font files in your system and font names fo file. -- Best regards, Eduard Tibet -Original Message- From: Brian Hansen [mailto:greencopperm...@gmail.com] Sent: Thursday, November 08, 2012 11:06 AM To: fop-users@xmlgraphics.apache.org Subject: Need help to get Arabic working with FOP Hi I'm pulling my hair out in frustration! I have been trying for so long to get Arabic fonts to display correct when using Docbook (converting XML to FO using Xsltproc and then to PDF using FOP). I'm sorry, but I just don't understand the documentation for FOP. It's not clear enough for me. I'm running FOP 1.0 on Linux. I need to know exacty, step by step, what I need to do to get Arabic text rendered properly. Instead # is shown. I have created this file foprc.xconf: fop renderers renderer mime=application/pdf fonts auto-detect/ /fonts /renderer /renderers /fop When I run FOP I use this command: $ fop -c foprc.xconf -fo filename.fo -pdf filename.pdf I get this message: SNIP Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. Glyph ? (0x627, afii57415) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Helvetica-Bold. Glyph ? (0x625, afii57413) not available in font Helvetica-Bold. Glyph ? (0x633, afii57427) not available in font Helvetica-Bold. Glyph ? (0x645, afii57445) not available in font Helvetica-Bold. Glyph ? (0x64a, afii57450) not available in font Helvetica-Bold. Glyph ? (0x629, afii57417) not available in font Helvetica-Bold. Glyph ? (0x646, afii57446) not available in font Helvetica-Bold. Glyph ? (0x644, afii57444) not available in font Times-Roman. Glyph ? (0x627, afii57415) not available in font Times-Roman. Glyph ? (0x625, afii57413) not available in font Times-Roman. Glyph ? (0x647, afii57470) not available in font Times-Roman. Glyph ? (0x62a, afii57418) not available in font Times-Roman. Glyph ? (0x642, afii57442) not available in font Times-Roman. Glyph ? (0x648, afii57448) not available in font Times-Roman. Glyph ? (0x649, afii57449) not available in font Times-Roman. Glyph ? (0x62e, afii57422) not available in font Times-Bold. Glyph ? (0x627, afii57415) not available in font Times-Bold. Glyph ? (0x641, afii57441) not available in font Times-Bold. Glyph ? (0x625, afii57413) not available in font Times-Bold. Glyph ? (0x650, afii57456) not available in font Times-Bold. Glyph ? (0x646, afii57446) not available in font Times-Bold. Glyph ? (0x651, afii57457) not available in font Times-Bold. Glyph ? (0x64e, afii57454) not available in font Times-Bold. Line 1 of a paragraph overflows the available area by 33725 millipoints. (See position 38:32883) Line 1 of a paragraph overflows the available area by 33725 millipoints. (See position 38:33245) Line 1 of a paragraph overflows the available area by 33725 millipoints. (See position 38:33624) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:40585) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:41202) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:41645) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:42132) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:42782) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:43361) Line 1 of a paragraph overflows the available area by 2500 millipoints. (See position 42:44233) /SNIP What exactly do I need to do? - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
need help regarding implementation of fop-1.1rc1-src
Hi, I have downloaded the src code for *fop-1.1rc1-src.* I want to use this FOP library to make a TTF Font renderring engine for Android Mobile Operating System. I have downloaded the code and compiled the code, Now, I am able to parse my TTF file with this FOP Code using TTFReader Class. I have parsed all the tables of the my TTF file like GLPH, HEAD, CMAP, HHEA, HMTX, LOCA, GDEF, GPOS and GSUB etc. My TTF file is for the Urdu Nastaliq Font It contains glyphs for characters as well as Ligatures i.e urdu Words. As, Android is not able to render the *Urdu Nastaliq Font* prpperly, It just draw those characters properly, which has unicode mapping in CMAP Table. For the words in the sentence, It just broke the Characters of the words,which look very odd. (But As we know Nastaliq font always changes the shape for the word depending on the Characters) Thats why we want to create a Font Rendering engine for android for My Font (TTF File). Now, My question is that , How can i use the Parsed table data to convert the Input Urdu Text to the Formatted font of My TTF File? I just want to know that how to implement the parsed data, so that my input string gives the proper output? I have googled out this thing, but didn't get any help. How can i use Your Classes to get the Output in Proper format? Do i need Urdu Script For this purpose? Do i need to draw the shape for each incoming character with the Parsed data? Please Help me asap. * * -- *Thanks Regards, Sonia Rojhwal *
Re: need help regarding implementation of fop-1.1rc1-src
If I understand you correctly, it sounds like you are trying to use part of the source code from FOP for a purpose of your own that is not covered by an existing FOP function. In that case, you are pretty much on your own. As you may know, FOP 1.1rc1 does support Arabic script, of which the Nastaliq is one such form. However, I have not yet tested against an OT Nastaliq font that uses GSUB/GPOS etc for shape selection and positioning. The fonts that have been tested are documented in [1]. [1] http://xmlgraphics.apache.org/fop/1.1rc1/complexscripts.html#fonts_arabic If you have specific suggests regarding fonts that you would like see tested, or if you discover bugs in the current code, then please let us know. G. On Mon, Jul 23, 2012 at 5:12 AM, Sonia Rojhwal rojhwal.so...@tftus.comwrote: Hi, I have downloaded the src code for *fop-1.1rc1-src.* I want to use this FOP library to make a TTF Font renderring engine for Android Mobile Operating System. I have downloaded the code and compiled the code, Now, I am able to parse my TTF file with this FOP Code using TTFReader Class. I have parsed all the tables of the my TTF file like GLPH, HEAD, CMAP, HHEA, HMTX, LOCA, GDEF, GPOS and GSUB etc. My TTF file is for the Urdu Nastaliq Font It contains glyphs for characters as well as Ligatures i.e urdu Words. As, Android is not able to render the *Urdu Nastaliq Font* prpperly, It just draw those characters properly, which has unicode mapping in CMAP Table. For the words in the sentence, It just broke the Characters of the words,which look very odd. (But As we know Nastaliq font always changes the shape for the word depending on the Characters) Thats why we want to create a Font Rendering engine for android for My Font (TTF File). Now, My question is that , How can i use the Parsed table data to convert the Input Urdu Text to the Formatted font of My TTF File? I just want to know that how to implement the parsed data, so that my input string gives the proper output? I have googled out this thing, but didn't get any help. How can i use Your Classes to get the Output in Proper format? Do i need Urdu Script For this purpose? Do i need to draw the shape for each incoming character with the Parsed data? Please Help me asap. * * -- *Thanks Regards, Sonia Rojhwal *
Re: Urgent: Need help for IKVM dlls
On 07 Jan 2011, at 18:44, Kashipathi, Mamatha wrote: Hi We are using these “ IKVM.GNU.Classpath.dll” ‘IKVM.Runtime.dll” dll’s in our project along with ApacheFop.Net (v1.0.3705) poi-2.5.1-dev-20040708 Sorry, wrong list. This is the user list for Apache XML FOP, which is Java software. The .NET version of FOP is not maintained by Apache. IIRC, it is a Sourceforge project, so you might want to have a look around there. As for Apache POI, this is also originally a Java library, for which the home site is http://poi.apache.org. No idea who maintains the .NET port of that library... Regards Andreas - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Urgent: Need help for IKVM dlls
Hi We are using these IKVM.GNU.Classpath.dll 'IKVM.Runtime.dll dll's in our project along with ApacheFop.Net (v1.0.3705) poi-2.5.1-dev-20040708 IKVM.GNU.Classpath.dll Runtime version: v1.1.4322 Version: 0.9.0.0 IKVM.Runtime.dll Runtime version: v1.1.4322 Version: 0.8.0.0 ApacheFop.Net.dll (v1.0.3705) Runtime version: v1.0.3705 Version: 1.0.963.3928 poi-2.5.1-dev-20040708.dll(v1.0.3705) Runtime version: v1.1.4322 Version: 0.0.0.0 I am assuming that runtime version reefer to .net framework version. We are upgrading our servers to windows 2008 r2 server from windows 2003. .Net frame work 1.1 dll's are not supported in Windows 2008 r2 server. Please let know, is there a latest version of these dlls are available to support .net 3.5 frame. Looking for your valuable suggestion/help regarding the same Note: I have latest version of iKVM dlls, is there a way to generate ApacheFot.Net Poi dlls? Thanks Mamatha Kashipathi Bank of Montreal - TDEI Private Client Group Canada *Work: (416) 359-8158 *Email: mamatha.kashipa...@bmo.commailto:mamatha.kashipa...@bmo.com
AW: Different color in FOP need help
Hi Muthu, If you want a colored background, the attribute is background-color. For a colored foreground, the attribute is color. Red color, for example: color=rgb(255, 0, 0) Mit freundlichen Grüßen Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.dehttp://www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.dehttp://www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.dehttp://www.willmy.de Willmy Consult Content GmbH: www.willmycc.dehttp://www.willmycc.de Von: Muthu KR [mailto:muthia...@gmail.com] Gesendet: Montag, 9. August 2010 07:29 An: fop-users@xmlgraphics.apache.org Betreff: Different color in FOP need help Hi All, I am working on FOP. I am trying to convert the xml file to pdf using FOP and I have achieved it. But I have One doubt in it. I think you people can help me out. I need to put different colors for true and false. But i dont know how to do it. I have attached my stylesheet with this mail. ?xml version=1.0 encoding=UTF-8 ? xsl:stylesheet version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=xml version=1.0 indent=yes/ xsl:template match=CompleteReport fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master page-height=297mm page-width=210mm margin=5mm 25mm 5mm 25mm master-name=PageMaster fo:region-body margin=20mm 0mm 20mm 0mm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=PageMaster fo:flow flow-name=xsl-region-body fo:block xsl:apply-templates select=Roles|RoleServices/ xsl:apply-templates select=name/ /fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=Roles|RoleServices fo:block text-align=left xsl:attribute name=space-before1.3em/xsl:attribute fo:inline font-weight=bold padding=1.5em text-align=left xsl:value-of select=local-name()/ /fo:inline /fo:block fo:list-block font-size=8pt xsl:attribute name=space-before1.3em/xsl:attribute fo:list-item fo:list-item-label fo:block text-align=left xsl:value-of select=@name/ /fo:block /fo:list-item-label fo:list-item-body start-indent=body-start( ) fo:block text-align=right xsl:apply-templates select=*|text()/ /fo:block /fo:list-item-body /fo:list-item /fo:list-block /xsl:template xsl:template match=Roles/Roles|RoleServices/RoleServices fo:list-block font-size=8pt xsl:attribute name=space-before1.3em/xsl:attribute fo:list-item fo:list-item-label fo:block text-align=left xsl:value-of select=@name/ /fo:block /fo:list-item-label fo:list-item-body start-indent=body-start( ) fo:block text-align=right xsl:apply-templates select=*|text()/ ---In this place the text will be displayed Here I need to show True means in one color False means another color. /fo:block /fo:list-item-body /fo:list-item /fo:list-block /xsl:template /xsl:stylesheet Can any one help me out?? Regards Muthu
RE: Need help in writing pdf with more than 1000 pages using fop..
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Anu updates? - -Original Message- From: Venkatesan, Balaji Sent: Thursday, September 11, 2008 11:45 AM To: 'fop-users@xmlgraphics.apache.org' Subject: RE: Need help in writing pdf with more than 1000 pages using fop.. Thanks. But the pdf document we create is NOT of the same style everytime, we are creating documents of different look and feel (but all are pdf) depending on the document name for a participant. Actually, I missed out our data style. It should be: Participant1DocumentA Client1 Plan11 Participant2DocumentB Client1 Plan11 Participant3DocumentC Client2 Plan21 Participant4DocumentA Client2 Plan21 . and so on. Eventhough Participant1 and 4 are using the same document name, since they are under different client, their document definition may be entirely or slightly different. I don't think we can have one common StyleSheet to print pdf for all types of documents and that is why I am directly creating XSL-FO. Thanks - -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 11:34 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help in writing pdf with more than 1000 pages using fop.. Please take a look at the embedding examples: http://xmlgraphics.apache.org/fop/0.95/embedding.html#examples They give you hints on how to implement the process in the most efficient way. It's bad practice to generate XSL-FO directly in code. It's messy and hard to maintain. If you just send the participant data to a SAX stream (define your own basic XML format with just the participant data, no layout), you can separate out the layout logic into an XSLT stylesheet that will take your XML format and turn it into XSL-FO. That keeps your Java code clean and allows you to more quickly change layout stuff if you need to. It also has the added benefit that you can do something else with the XML data. For example, another XSLT stylesheet could turn your participant data into HTML. The generation of the participant data is practically equivalent to the ExampleObj2XML on the page indicated above. If you stay on the SAX level, you can avoid building up the full participant document in memory. FOP will rather process the content as it comes in as individual calls to the SAX ContentHandler. If you can put each participant in a separate page-sequence you'll allow FOP to run at very little memory usage. You can basically generate an unlimited number of pages that way. Each participant is automatically flushed to the PDF file that way. I hope that helps. On 11.09.2008 17:13:32 Venkatesan, Balaji wrote: Hi, I have just started using FOP. I have a requirement to write a pdf file with more than 1000 pages.How can I do that? I am directly creating a XSL-FO string to create a pdf document and concatenating that into a big string, I know it wrong, Is there any other way?. Basically, we generate documents for multiple participants at the same time and write all their data into a single pdf file. Here is an example: The data comes in this order :participant1, participant2, participant3, participant4, participant5 . Participant1000 As soon as I am done with the first participant, I have to write his data into a pdf file and process the second participant and write his data to the same pdf file and so on. How do I do this more effectively??? Advanced thanks for your help. -B Jeremias Maerki - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGP Universal 2.8.3 Charset: us-ascii wsBVAwUBSMp2VVIHx0ARICbPAQg4cAgAl8pGviG/TPVBNe21/VOdSxxyh8APKaXd a/A8RwXyIl1eeRVKlJ4muTNLOulx7SkpDifSuCfD3WivG6IZalsG+kTJms/aTUKF l9HHGGjrILom59CGG7I1GQzbIAmtiamNuFmSF7VlHVMVao/k4UkMG7jPcnB42H7e QsXxcxo/CWo4eHH5eEdjwoE6GxZ3mp2a4Yo694wzUy9wBLIjW7633hWer2Jc/RQW g1KFyQk2MDO2GJhzmqz+O9kwW8O5q9ko6KFtrd0JNbRrxw/779xTgt0lu544xqRX kpZjIR/eQ/VKqbYhQawkYiy9pZ9pcCu5diwZTIyvMk0vLQLk7+BDVA== =7DkY -END PGP SIGNATURE- - NOTICE: The information contained in this electronic mail message is confidential and intended only for certain recipients. If you are not an intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication and any attachments is strictly prohibited. If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing it. - To unsubscribe, e-mail: [EMAIL PROTECTED
Re: Need help in writing pdf with more than 1000 pages using fop..
Hi, what about having an intermediate XML format for your contents that is common to all of your clients, and having different XSL style sheets for producing the actual XSL-FO? You might be able to factor out common stuff into an included XSL. I might have not fully understood your requirements, though. Venkatesan, Balaji wrote: Anu updates? -Original Message- From: Venkatesan, Balaji Sent: Thursday, September 11, 2008 11:45 AM To: 'fop-users@xmlgraphics.apache.org' Subject: RE: Need help in writing pdf with more than 1000 pages using fop.. Thanks. But the pdf document we create is NOT of the same style everytime, we are creating documents of different look and feel (but all are pdf) depending on the document name for a participant. Actually, I missed out our data style. It should be: Participant1 DocumentAClient1Plan11 Participant2 DocumentBClient1Plan11 Participant3 DocumentCClient2Plan21 Participant4 DocumentAClient2Plan21 . and so on. Eventhough Participant1 and 4 are using the same document name, since they are under different client, their document definition may be entirely or slightly different. I don't think we can have one common StyleSheet to print pdf for all types of documents and that is why I am directly creating XSL-FO. Thanks -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 11:34 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help in writing pdf with more than 1000 pages using fop.. Please take a look at the embedding examples: http://xmlgraphics.apache.org/fop/0.95/embedding.html#examples They give you hints on how to implement the process in the most efficient way. It's bad practice to generate XSL-FO directly in code. It's messy and hard to maintain. If you just send the participant data to a SAX stream (define your own basic XML format with just the participant data, no layout), you can separate out the layout logic into an XSLT stylesheet that will take your XML format and turn it into XSL-FO. That keeps your Java code clean and allows you to more quickly change layout stuff if you need to. It also has the added benefit that you can do something else with the XML data. For example, another XSLT stylesheet could turn your participant data into HTML. The generation of the participant data is practically equivalent to the ExampleObj2XML on the page indicated above. If you stay on the SAX level, you can avoid building up the full participant document in memory. FOP will rather process the content as it comes in as individual calls to the SAX ContentHandler. If you can put each participant in a separate page-sequence you'll allow FOP to run at very little memory usage. You can basically generate an unlimited number of pages that way. Each participant is automatically flushed to the PDF file that way. I hope that helps. On 11.09.2008 17:13:32 Venkatesan, Balaji wrote: Hi, I have just started using FOP. I have a requirement to write a pdf file with more than 1000 pages.How can I do that? I am directly creating a XSL-FO string to create a pdf document and concatenating that into a big string, I know it wrong, Is there any other way?. Basically, we generate documents for multiple participants at the same time and write all their data into a single pdf file. Here is an example: The data comes in this order :participant1, participant2, participant3, participant4, participant5 . Participant1000 As soon as I am done with the first participant, I have to write his data into a pdf file and process the second participant and write his data to the same pdf file and so on. How do I do this more effectively??? Advanced thanks for your help. -B Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - NOTICE: The information contained in this electronic mail message is confidential and intended only for certain recipients. If you are not an intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication and any attachments is strictly prohibited. If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- artnology GmbH - Milastraße 4 - 10437 Berlin
RE: Need help in writing pdf with more than 1000 pages using fop..
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Thanks, but we will not know anything about the look of the documents, it can be in any style. We are tryng to generate Statements(with bar chart, pie chart, texts and images), Check documents regular documents(with text and images) and so, it is very difficult for us to create a pre-defined common XSL for all these types of documents. Assume that I have a pre-defined XSL and am creating a XML documents at runtime, how do you flush out the contents to the pdf documents without keeeping them in memory and append all the remaining participants data to the same pdf?. We may use Inetsoft or iText or any other 3rd party software to generate the pdf if we are not able to use fop. Thanks - -Original Message- From: Joerg von Frantzius [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2008 10:16 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help in writing pdf with more than 1000 pages using fop.. Hi, what about having an intermediate XML format for your contents that is common to all of your clients, and having different XSL style sheets for producing the actual XSL-FO? You might be able to factor out common stuff into an included XSL. I might have not fully understood your requirements, though. Venkatesan, Balaji wrote: Anu updates? -Original Message- From: Venkatesan, Balaji Sent: Thursday, September 11, 2008 11:45 AM To: 'fop-users@xmlgraphics.apache.org' Subject: RE: Need help in writing pdf with more than 1000 pages using fop.. Thanks. But the pdf document we create is NOT of the same style everytime, we are creating documents of different look and feel (but all are pdf) depending on the document name for a participant. Actually, I missed out our data style. It should be: Participant1 DocumentAClient1Plan11 Participant2 DocumentBClient1Plan11 Participant3 DocumentCClient2Plan21 Participant4 DocumentAClient2Plan21 . and so on. Eventhough Participant1 and 4 are using the same document name, since they are under different client, their document definition may be entirely or slightly different. I don't think we can have one common StyleSheet to print pdf for all types of documents and that is why I am directly creating XSL-FO. Thanks -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 11:34 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help in writing pdf with more than 1000 pages using fop.. Please take a look at the embedding examples: http://xmlgraphics.apache.org/fop/0.95/embedding.html#examples They give you hints on how to implement the process in the most efficient way. It's bad practice to generate XSL-FO directly in code. It's messy and hard to maintain. If you just send the participant data to a SAX stream (define your own basic XML format with just the participant data, no layout), you can separate out the layout logic into an XSLT stylesheet that will take your XML format and turn it into XSL-FO. That keeps your Java code clean and allows you to more quickly change layout stuff if you need to. It also has the added benefit that you can do something else with the XML data. For example, another XSLT stylesheet could turn your participant data into HTML. The generation of the participant data is practically equivalent to the ExampleObj2XML on the page indicated above. If you stay on the SAX level, you can avoid building up the full participant document in memory. FOP will rather process the content as it comes in as individual calls to the SAX ContentHandler. If you can put each participant in a separate page-sequence you'll allow FOP to run at very little memory usage. You can basically generate an unlimited number of pages that way. Each participant is automatically flushed to the PDF file that way. I hope that helps. On 11.09.2008 17:13:32 Venkatesan, Balaji wrote: Hi, I have just started using FOP. I have a requirement to write a pdf file with more than 1000 pages.How can I do that? I am directly creating a XSL-FO string to create a pdf document and concatenating that into a big string, I know it wrong, Is there any other way?. Basically, we generate documents for multiple participants at the same time and write all their data into a single pdf file. Here is an example: The data comes in this order :participant1, participant2, participant3, participant4, participant5 . Participant1000 As soon as I am done with the first participant, I have to write his data into a pdf file and process the second participant and write his data to the same pdf file and so on. How do I do this more effectively??? Advanced thanks for your help. -B Jeremias Maerki
Re: Need help in writing pdf with more than 1000 pages using fop..
What I meant was to create a common XML format for the contents (i.e. defined by an XSD), independent of how contents are supposed to be styled. You'd have different XSL style sheets then that operate on that same XML format to produce the different styles of layout in FO XML. Venkatesan, Balaji wrote: Thanks, but we will not know anything about the look of the documents, it can be in any style. We are tryng to generate Statements(with bar chart, pie chart, texts and images), Check documents regular documents(with text and images) and so, it is very difficult for us to create a pre-defined common XSL for all these types of documents. Assume that I have a pre-defined XSL and am creating a XML documents at runtime, how do you flush out the contents to the pdf documents without keeeping them in memory and append all the remaining participants data to the same pdf?. We may use Inetsoft or iText or any other 3rd party software to generate the pdf if we are not able to use fop. Thanks -Original Message- From: Joerg von Frantzius [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2008 10:16 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help in writing pdf with more than 1000 pages using fop.. Hi, what about having an intermediate XML format for your contents that is common to all of your clients, and having different XSL style sheets for producing the actual XSL-FO? You might be able to factor out common stuff into an included XSL. I might have not fully understood your requirements, though. Venkatesan, Balaji wrote: Anu updates? -Original Message- From: Venkatesan, Balaji Sent: Thursday, September 11, 2008 11:45 AM To: 'fop-users@xmlgraphics.apache.org' Subject: RE: Need help in writing pdf with more than 1000 pages using fop.. Thanks. But the pdf document we create is NOT of the same style everytime, we are creating documents of different look and feel (but all are pdf) depending on the document name for a participant. Actually, I missed out our data style. It should be: Participant1 DocumentAClient1Plan11 Participant2 DocumentBClient1Plan11 Participant3 DocumentCClient2Plan21 Participant4 DocumentAClient2Plan21 . and so on. Eventhough Participant1 and 4 are using the same document name, since they are under different client, their document definition may be entirely or slightly different. I don't think we can have one common StyleSheet to print pdf for all types of documents and that is why I am directly creating XSL-FO. Thanks -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 11:34 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help in writing pdf with more than 1000 pages using fop.. Please take a look at the embedding examples: http://xmlgraphics.apache.org/fop/0.95/embedding.html#examples They give you hints on how to implement the process in the most efficient way. It's bad practice to generate XSL-FO directly in code. It's messy and hard to maintain. If you just send the participant data to a SAX stream (define your own basic XML format with just the participant data, no layout), you can separate out the layout logic into an XSLT stylesheet that will take your XML format and turn it into XSL-FO. That keeps your Java code clean and allows you to more quickly change layout stuff if you need to. It also has the added benefit that you can do something else with the XML data. For example, another XSLT stylesheet could turn your participant data into HTML. The generation of the participant data is practically equivalent to the ExampleObj2XML on the page indicated above. If you stay on the SAX level, you can avoid building up the full participant document in memory. FOP will rather process the content as it comes in as individual calls to the SAX ContentHandler. If you can put each participant in a separate page-sequence you'll allow FOP to run at very little memory usage. You can basically generate an unlimited number of pages that way. Each participant is automatically flushed to the PDF file that way. I hope that helps. On 11.09.2008 17:13:32 Venkatesan, Balaji wrote: Hi, I have just started using FOP. I have a requirement to write a pdf file with more than 1000 pages.How can I do that? I am directly creating a XSL-FO string to create a pdf document and concatenating that into a big string, I know it wrong, Is there any other way?. Basically, we generate documents for multiple participants at the same time and write all their data into a single pdf file. Here is an example: The data comes in this order :participant1, participant2, participant3, participant4, participant5 . Participant1000 As soon as I am done with the first participant, I have
Need help in writing pdf with more than 1000 pages using fop..
Hi, I have just started using FOP. I have a requirement to write a pdf file with more than 1000 pages.How can I do that? I am directly creating a XSL-FO string to create a pdf document and concatenating that into a big string, I know it wrong, Is there any other way?. Basically, we generate documents for multiple participants at the same time and write all their data into a single pdf file. Here is an example: The data comes in this order :participant1, participant2, participant3, participant4, participant5 . Participant1000 As soon as I am done with the first participant, I have to write his data into a pdf file and process the second participant and write his data to the same pdf file and so on. How do I do this more effectively??? Advanced thanks for your help. -B PGP.sig Description: PGP signature - NOTICE: The information contained in this electronic mail message is confidential and intended only for certain recipients. If you are not an intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication and any attachments is strictly prohibited. If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help in writing pdf with more than 1000 pages using fop..
Please take a look at the embedding examples: http://xmlgraphics.apache.org/fop/0.95/embedding.html#examples They give you hints on how to implement the process in the most efficient way. It's bad practice to generate XSL-FO directly in code. It's messy and hard to maintain. If you just send the participant data to a SAX stream (define your own basic XML format with just the participant data, no layout), you can separate out the layout logic into an XSLT stylesheet that will take your XML format and turn it into XSL-FO. That keeps your Java code clean and allows you to more quickly change layout stuff if you need to. It also has the added benefit that you can do something else with the XML data. For example, another XSLT stylesheet could turn your participant data into HTML. The generation of the participant data is practically equivalent to the ExampleObj2XML on the page indicated above. If you stay on the SAX level, you can avoid building up the full participant document in memory. FOP will rather process the content as it comes in as individual calls to the SAX ContentHandler. If you can put each participant in a separate page-sequence you'll allow FOP to run at very little memory usage. You can basically generate an unlimited number of pages that way. Each participant is automatically flushed to the PDF file that way. I hope that helps. On 11.09.2008 17:13:32 Venkatesan, Balaji wrote: Hi, I have just started using FOP. I have a requirement to write a pdf file with more than 1000 pages.How can I do that? I am directly creating a XSL-FO string to create a pdf document and concatenating that into a big string, I know it wrong, Is there any other way?. Basically, we generate documents for multiple participants at the same time and write all their data into a single pdf file. Here is an example: The data comes in this order :participant1, participant2, participant3, participant4, participant5 . Participant1000 As soon as I am done with the first participant, I have to write his data into a pdf file and process the second participant and write his data to the same pdf file and so on. How do I do this more effectively??? Advanced thanks for your help. -B Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help in writing pdf with more than 1000 pages using fop..
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Thanks. But the pdf document we create is NOT of the same style everytime, we are creating documents of different look and feel (but all are pdf) depending on the document name for a participant. Actually, I missed out our data style. It should be: Participant1DocumentA Client1 Plan11 Participant2DocumentB Client1 Plan11 Participant3DocumentC Client2 Plan21 Participant4DocumentA Client2 Plan21 . and so on. Eventhough Participant1 and 4 are using the same document name, since they are under different client, their document definition may be entirely/slightly different. I don't think we can have one common StyleSheet to print pdf for all types of documents and that is why I am directly creating XSL-FO. Thanks balaji === Balaji Venkatesan *617-376-9257 [EMAIL PROTECTED] ING. Your future. Made easier.SM === - -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 11:34 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help in writing pdf with more than 1000 pages using fop.. Please take a look at the embedding examples: http://xmlgraphics.apache.org/fop/0.95/embedding.html#examples They give you hints on how to implement the process in the most efficient way. It's bad practice to generate XSL-FO directly in code. It's messy and hard to maintain. If you just send the participant data to a SAX stream (define your own basic XML format with just the participant data, no layout), you can separate out the layout logic into an XSLT stylesheet that will take your XML format and turn it into XSL-FO. That keeps your Java code clean and allows you to more quickly change layout stuff if you need to. It also has the added benefit that you can do something else with the XML data. For example, another XSLT stylesheet could turn your participant data into HTML. The generation of the participant data is practically equivalent to the ExampleObj2XML on the page indicated above. If you stay on the SAX level, you can avoid building up the full participant document in memory. FOP will rather process the content as it comes in as individual calls to the SAX ContentHandler. If you can put each participant in a separate page-sequence you'll allow FOP to run at very little memory usage. You can basically generate an unlimited number of pages that way. Each participant is automatically flushed to the PDF file that way. I hope that helps. On 11.09.2008 17:13:32 Venkatesan, Balaji wrote: Hi, I have just started using FOP. I have a requirement to write a pdf file with more than 1000 pages.How can I do that? I am directly creating a XSL-FO string to create a pdf document and concatenating that into a big string, I know it wrong, Is there any other way?. Basically, we generate documents for multiple participants at the same time and write all their data into a single pdf file. Here is an example: The data comes in this order :participant1, participant2, participant3, participant4, participant5 . Participant1000 As soon as I am done with the first participant, I have to write his data into a pdf file and process the second participant and write his data to the same pdf file and so on. How do I do this more effectively??? Advanced thanks for your help. -B Jeremias Maerki - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGP Universal 2.8.3 Charset: us-ascii wsBVAwUBSMk9AVIHx0ARICbPAQjwRQf/cEEvNSQip5nDGEIc2H0oUZA1Qg+ZT/wm 110OwDJIY3zpi8b4BK3V/4HSC8+wFxiPPaXEnVevpOUM65hR6826fpRRuHGP7j0f CQVdWH4yfwTrLkMabu4jtQCOybLHhEUo+uU5kYg4OZWbDKuw4t14gamo7FrJ1jft gdUaDGmIKauf68XXnSW/GtUNcZaxHsT35Cq09+aVxBosbdoeCuDmk0HSvyqdUfEE ljx+gPCzxt6Sxdg3izsj4baQCDH3iR7m9PXrzgP5QFwY1myZO+9XPKij+I/0UQKT 9T/HLtphntXmTQ/Qi5TQRm2/H+XC24h3k5s0Om//ZfmwcNMkut4M7g== =BvnA -END PGP SIGNATURE- - NOTICE: The information contained in this electronic mail message is confidential and intended only for certain recipients. If you are not an intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication and any attachments is strictly prohibited. If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help in writing pdf with more than 1000 pages using fop..
Actually, for me, that's even another reason for using XSLT. But in the end, you have to live with your solution. On 11.09.2008 17:45:05 Venkatesan, Balaji wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Thanks. But the pdf document we create is NOT of the same style everytime, we are creating documents of different look and feel (but all are pdf) depending on the document name for a participant. Actually, I missed out our data style. It should be: Participant1 DocumentA Client1 Plan11 Participant2 DocumentB Client1 Plan11 Participant3 DocumentC Client2 Plan21 Participant4 DocumentA Client2 Plan21 . and so on. Eventhough Participant1 and 4 are using the same document name, since they are under different client, their document definition may be entirely/slightly different. I don't think we can have one common StyleSheet to print pdf for all types of documents and that is why I am directly creating XSL-FO. Thanks balaji === Balaji Venkatesan *617-376-9257 [EMAIL PROTECTED] ING. Your future. Made easier.SM === - -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 11:34 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Need help in writing pdf with more than 1000 pages using fop.. Please take a look at the embedding examples: http://xmlgraphics.apache.org/fop/0.95/embedding.html#examples They give you hints on how to implement the process in the most efficient way. It's bad practice to generate XSL-FO directly in code. It's messy and hard to maintain. If you just send the participant data to a SAX stream (define your own basic XML format with just the participant data, no layout), you can separate out the layout logic into an XSLT stylesheet that will take your XML format and turn it into XSL-FO. That keeps your Java code clean and allows you to more quickly change layout stuff if you need to. It also has the added benefit that you can do something else with the XML data. For example, another XSLT stylesheet could turn your participant data into HTML. The generation of the participant data is practically equivalent to the ExampleObj2XML on the page indicated above. If you stay on the SAX level, you can avoid building up the full participant document in memory. FOP will rather process the content as it comes in as individual calls to the SAX ContentHandler. If you can put each participant in a separate page-sequence you'll allow FOP to run at very little memory usage. You can basically generate an unlimited number of pages that way. Each participant is automatically flushed to the PDF file that way. I hope that helps. On 11.09.2008 17:13:32 Venkatesan, Balaji wrote: Hi, I have just started using FOP. I have a requirement to write a pdf file with more than 1000 pages.How can I do that? I am directly creating a XSL-FO string to create a pdf document and concatenating that into a big string, I know it wrong, Is there any other way?. Basically, we generate documents for multiple participants at the same time and write all their data into a single pdf file. Here is an example: The data comes in this order :participant1, participant2, participant3, participant4, participant5 . Participant1000 As soon as I am done with the first participant, I have to write his data into a pdf file and process the second participant and write his data to the same pdf file and so on. How do I do this more effectively??? Advanced thanks for your help. -B Jeremias Maerki - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGP Universal 2.8.3 Charset: us-ascii wsBVAwUBSMk9AVIHx0ARICbPAQjwRQf/cEEvNSQip5nDGEIc2H0oUZA1Qg+ZT/wm 110OwDJIY3zpi8b4BK3V/4HSC8+wFxiPPaXEnVevpOUM65hR6826fpRRuHGP7j0f CQVdWH4yfwTrLkMabu4jtQCOybLHhEUo+uU5kYg4OZWbDKuw4t14gamo7FrJ1jft gdUaDGmIKauf68XXnSW/GtUNcZaxHsT35Cq09+aVxBosbdoeCuDmk0HSvyqdUfEE ljx+gPCzxt6Sxdg3izsj4baQCDH3iR7m9PXrzgP5QFwY1myZO+9XPKij+I/0UQKT 9T/HLtphntXmTQ/Qi5TQRm2/H+XC24h3k5s0Om//ZfmwcNMkut4M7g== =BvnA -END PGP SIGNATURE- - NOTICE: The information contained in this electronic mail message is confidential and intended only for certain recipients. If you are not an intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication and any attachments is strictly prohibited. If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing
Re: Need help preventing corrupt PDF-Files ( jpeg images without dpi info) for Acrobat Reader 7+
I don't know of any remaining problem with JPEG support in FOP. Could you post an example JPEG so one of us can reproduce the problem? On 24.07.2007 20:41:55 Stefan Fassel wrote: Hello First of all, I want to apologize for all sorts of errors made while submitting this request for help, since this is my first time submitting to a mailing list. First the core problem maybe someone did experience the similar problems: I am generating PDF Files containing JPEG images using FOP. Those PDF-Files previously readable with Acrobat Reader 6 are causing an Error since Acrobat Reader 7. Since we dont have influence on the Acrobat Reader Versions our customers use and Adobe has not fixed the Problem in the new Acrobat Reader 8.1 I am pretty desperate to find a solution or workaround for this Problem. The Error displayed by Acrobat Reader is something like: Not enough data for an image (Nicht genügend Daten für ein Bild) After the error has surfaced the Reader stopps to render the Document correctly. At first only certain images are not displayed while moving around the document afterwards the rendered content disappears. Those certain JPEG images derived from our database do not have DPI information stored in them. Since supplying those malfunctioning images with DPI information and generating the PDF anew made the Document readable I strongly believe that this is the cause for my problem. Sadly fixing the images is not an option for me, since the amount of images is huge and the risk of migration is too great for my company. I have found out that when using JPEG images and removing DPI information manually, the generated PDF will not necessarily cause the error in Acrobat Reader. (maybe there is some other factor involved) While searching for a workaround I have tried the following: *I have tested this issue with FOP Versions 0.93, 0.92 and 0.20.5 resulting in the same error as in the Struts (cx) integrated solution we use for our customers. *I have tried to reduce the xsl:fo code to a bare minimum and reducing the amount of images in the document which did not help either. Normally there are up to 10 images on each page with 2 pages per document. Here is the corresponding code: ?xml version=1.0 encoding=ISO-8859-1 ? fo:root xmlns:fox=http://xml.apache.org/fop/extensions; xmlns:xi=http://www.w3.org/2001/Xinclude; xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:page-sequence-master master-name=pagemaster1 fo:repeatable-page-master-reference master-name=first maximum-repeats=no-limit master-reference=first / /fo:page-sequence-master fo:simple-page-master margin-right=1.0cm margin-left=1.0cm margin-bottom=0.5cm margin-top=0.5cm page-width=29.7cm page-height=21cm master-name=first fo:region-body margin-top=1.0cm margin-bottom=1.0cm / fo:region-before extent=1.0cm / fo:region-after extent=1.0cm / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=first initial-page-number=1 force-page-count=no-force fo:flow flow-name=xsl-region-body fo:block fo:external-graphic scaling=uniform content-width=3.75cm content-height=5cm width=3.75cm height=5cm src=url('images/testimage.jpg') / /fo:block /fo:flow /fo:page-sequence /fo:root *I have tried to make contact with Adobe about this matter, but at the moment it seems I am on my own thats why Im looking for help here *Ive searched the Acrobat Reader options for settings that could work around this problem, but I have only found a way to stop display large images. This replaces images on the document with a gray rectangle. The error is not displayed using this setting, but our customers say that this is not acceptable for them. Any help would be welcome to find a workaround for this problem. I would favour a way to handle this in xsl:fo, but I still have not found a solution in the documentation available. If this is an issue of the PDF-rendering module of FOP it would be good to know, but it would limit our options considerably. (maybe force us to use different libraries) Yours Stefan Fassel (Germany) Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Need help preventing corrupt PDF-Files ( jpeg images w ithout dpi info) for Acrobat Reader 7+
Hello First of all, I want to apologize for all sorts of errors made while submitting this request for help, since this is my first time submitting to a mailing list. First the core problem maybe someone did experience the similar problems: I am generating PDF Files containing JPEG images using FOP. Those PDF-Files previously readable with Acrobat Reader 6 are causing an Error since Acrobat Reader 7. Since we dont have influence on the Acrobat Reader Versions our customers use and Adobe has not fixed the Problem in the new Acrobat Reader 8.1 I am pretty desperate to find a solution or workaround for this Problem. The Error displayed by Acrobat Reader is something like: Not enough data for an image (Nicht genügend Daten für ein Bild) After the error has surfaced the Reader stopps to render the Document correctly. At first only certain images are not displayed while moving around the document afterwards the rendered content disappears. Those certain JPEG images derived from our database do not have DPI information stored in them. Since supplying those malfunctioning images with DPI information and generating the PDF anew made the Document readable I strongly believe that this is the cause for my problem. Sadly fixing the images is not an option for me, since the amount of images is huge and the risk of migration is too great for my company. I have found out that when using JPEG images and removing DPI information manually, the generated PDF will not necessarily cause the error in Acrobat Reader. (maybe there is some other factor involved) While searching for a workaround I have tried the following: *I have tested this issue with FOP Versions 0.93, 0.92 and 0.20.5 resulting in the same error as in the Struts (cx) integrated solution we use for our customers. *I have tried to reduce the xsl:fo code to a bare minimum and reducing the amount of images in the document which did not help either. Normally there are up to 10 images on each page with 2 pages per document. Here is the corresponding code: ?xml version=1.0 encoding=ISO-8859-1 ? fo:root xmlns:fox=http://xml.apache.org/fop/extensions; xmlns:xi=http://www.w3.org/2001/Xinclude; xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:page-sequence-master master-name=pagemaster1 fo:repeatable-page-master-reference master-name=first maximum-repeats=no-limit master-reference=first / /fo:page-sequence-master fo:simple-page-master margin-right=1.0cm margin-left=1.0cm margin-bottom=0.5cm margin-top=0.5cm page-width=29.7cm page-height=21cm master-name=first fo:region-body margin-top=1.0cm margin-bottom=1.0cm / fo:region-before extent=1.0cm / fo:region-after extent=1.0cm / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=first initial-page-number=1 force-page-count=no-force fo:flow flow-name=xsl-region-body fo:block fo:external-graphic scaling=uniform content-width=3.75cm content-height=5cm width=3.75cm height=5cm src=url('images/testimage.jpg') / /fo:block /fo:flow /fo:page-sequence /fo:root *I have tried to make contact with Adobe about this matter, but at the moment it seems I am on my own thats why Im looking for help here *Ive searched the Acrobat Reader options for settings that could work around this problem, but I have only found a way to stop display large images. This replaces images on the document with a gray rectangle. The error is not displayed using this setting, but our customers say that this is not acceptable for them. Any help would be welcome to find a workaround for this problem. I would favour a way to handle this in xsl:fo, but I still have not found a solution in the documentation available. If this is an issue of the PDF-rendering module of FOP it would be good to know, but it would limit our options considerably. (maybe force us to use different libraries) Yours Stefan Fassel (Germany) ___ Jetzt neu! Schuetzen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Perfomance Issue need Help on generating PDF from XSL FO
I changed the code as mentioned FopFactory fopFactory = FopFactory.newInstance(); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); OutputStream out = new BufferedOutputStream(new FileOutputStream(new File((\bro.pdf; try { Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out); TransformerFactory factory = new org.apache.xalan.processor.TransformerFactoryImpl(); Transformer transformer = factory.newTransformer(new StreamSource(new File(\Brodart.xsl))); transformer.setParameter(versionParam, 2.0); Source src = new DOMSource(doc); Result res = new SAXResult(fop.getDefaultHandler()); transformer.transform(src, res); Even then it is taking long time. Please HELP Manoj Jeremias Maerki-2 wrote: Manuel already gave you some tips in http://issues.apache.org/bugzilla/show_bug.cgi?id=42590 The example files you attached don't even take 2 seconds from the command-line and that's including VM startup and class-loading. So the problem is probably somewhere else (maybe the machine is swapping like mad or the app server has not enough memory available and is constantly in garbage collection). I also don't see anything wrong with your code except that you set a system property within an application server which is bad practice. Instead of: System.setProperty(javax.xml.transform.TransformerFactory,org.apache.xalan.processor.TransformerFactoryImpl); TransformerFactory factory = TransformerFactory.newInstance(); I'd write: TransformerFactory factory = new org.apache.xalan.processor.TransformerFactoryImpl(); ...if you want to control which XSLT implementation you want to use. Setting the system property affects the whole application server! On 06.06.2007 16:36:46 manojkmi wrote: Hi, I created a code snippet to convert XML+XSL FO to PDF using FOP. I am using OC4j as Application Server. Here is the code: FopFactory fopFactory = FopFactory.newInstance(); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); OutputStream out = new BufferedOutputStream(new FileOutputStream(new file(/brodart.pdf))); Try { System.setProperty(javax.xml.transform.TransformerFactory,org.apache.xalan.processor.TransformerFactoryImpl); Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out); TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(new StreamSource(new File(/Brodart.xsl))); transformer.setParameter(versionParam, 2.0); Source src = new StreamSource(new File(/brodart.xml)); Result res = new SAXResult(fop.getDefaultHandler()); transformer.transform(src, res); } At the highlighted step seems to be taking a lot of time to execute (around 15 min). Can any one please help on this issue? Here I attached the XML and XSL file we are using. Thanks Manoj http://www.nabble.com/file/p10989960/XML_XSL.zip XML_XSL.zip -- View this message in context: http://www.nabble.com/Perfomance-Issue-need-Help-on-generating-PDF-from-XSL-FO-tf3878334.html#a10989960 Sent from the FOP - Users mailing list archive at Nabble.com. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Perfomance-Issue-need-Help-on-generating-PDF-from-XSL-FO-tf3878334.html#a11586692 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Perfomance Issue need Help on generating PDF from XSL FO
manojkmi wrote: I changed the code as mentioned FopFactory fopFactory = FopFactory.newInstance(); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); OutputStream out = new BufferedOutputStream(new FileOutputStream(new File((\bro.pdf; try { Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out); TransformerFactory factory = new org.apache.xalan.processor.TransformerFactoryImpl(); Transformer transformer = factory.newTransformer(new StreamSource(new File(\Brodart.xsl))); transformer.setParameter(versionParam, 2.0); Source src = new DOMSource(doc); Result res = new SAXResult(fop.getDefaultHandler()); transformer.transform(src, res); Even then it is taking long time. Please HELP Try to isolate the problem in a systematic way. First, check whether the process is thrashing. If not, serialize the DOM you generate into a file an run the FOP command line in the server environment to check whether there are general problems. Serialize the result of the transformation and in a second step use this FO file instead of generating the DOM and running the transformation. If all else fails, get a profiler and check which objects fill the memory and which methods take the most time. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Perfomance Issue need Help on generating PDF from XSL FO
Manuel already gave you some tips in http://issues.apache.org/bugzilla/show_bug.cgi?id=42590 The example files you attached don't even take 2 seconds from the command-line and that's including VM startup and class-loading. So the problem is probably somewhere else (maybe the machine is swapping like mad or the app server has not enough memory available and is constantly in garbage collection). I also don't see anything wrong with your code except that you set a system property within an application server which is bad practice. Instead of: System.setProperty(javax.xml.transform.TransformerFactory,org.apache.xalan.processor.TransformerFactoryImpl); TransformerFactory factory = TransformerFactory.newInstance(); I'd write: TransformerFactory factory = new org.apache.xalan.processor.TransformerFactoryImpl(); ...if you want to control which XSLT implementation you want to use. Setting the system property affects the whole application server! On 06.06.2007 16:36:46 manojkmi wrote: Hi, I created a code snippet to convert XML+XSL FO to PDF using FOP. I am using OC4j as Application Server. Here is the code: FopFactory fopFactory = FopFactory.newInstance(); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); OutputStream out = new BufferedOutputStream(new FileOutputStream(new file(/brodart.pdf))); Try { System.setProperty(javax.xml.transform.TransformerFactory,org.apache.xalan.processor.TransformerFactoryImpl); Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out); TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(new StreamSource(new File(/Brodart.xsl))); transformer.setParameter(versionParam, 2.0); Source src = new StreamSource(new File(/brodart.xml)); Result res = new SAXResult(fop.getDefaultHandler()); transformer.transform(src, res); } At the highlighted step seems to be taking a lot of time to execute (around 15 min). Can any one please help on this issue? Here I attached the XML and XSL file we are using. Thanks Manoj http://www.nabble.com/file/p10989960/XML_XSL.zip XML_XSL.zip -- View this message in context: http://www.nabble.com/Perfomance-Issue-need-Help-on-generating-PDF-from-XSL-FO-tf3878334.html#a10989960 Sent from the FOP - Users mailing list archive at Nabble.com. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Perfomance Issue need Help on generating PDF from XSL FO
Hi, I created a code snippet to convert XML+XSL FO to PDF using FOP. I am using OC4j as Application Server. Here is the code: FopFactory fopFactory = FopFactory.newInstance(); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); OutputStream out = new BufferedOutputStream(new FileOutputStream(new file(/brodart.pdf))); Try { System.setProperty(javax.xml.transform.TransformerFactory,org.apache.xalan.processor.TransformerFactoryImpl); Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out); TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(new StreamSource(new File(/Brodart.xsl))); transformer.setParameter(versionParam, 2.0); Source src = new StreamSource(new File(/brodart.xml)); Result res = new SAXResult(fop.getDefaultHandler()); transformer.transform(src, res); } At the highlighted step seems to be taking a lot of time to execute (around 15 min). Can any one please help on this issue? Here I attached the XML and XSL file we are using. Thanks Manoj http://www.nabble.com/file/p10989960/XML_XSL.zip XML_XSL.zip -- View this message in context: http://www.nabble.com/Perfomance-Issue-need-Help-on-generating-PDF-from-XSL-FO-tf3878334.html#a10989960 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flow area content is propagating into page footer--- Need Help!!
Hi, Harshini Madurapperuma a écrit : Hi; here with i have submitted the xsl and fo. There are a lot of validation errors with FOP 0.93, which makes me think you're using the ancient 0.20.5 version. Body overlapping the page footer is a known problem with this version. As it is no longer supported I strongly suggest you to try out the 0.93 one. The problem is very likely to disappear with it. HTH, Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Flow area content is propagating into page footer--- Need Help!!
Hi, Can you submit the xsl/fo aswell, its hard to say what is wrong without having a look on it first. -Ursprungligt meddelande- Från: Harshini Madurapperuma [mailto:[EMAIL PROTECTED] Skickat: den 7 maj 2007 12:03 Till: fop-users@xmlgraphics.apache.org Ämne: Flow area content is propagating into page footer--- Need Help!! Hi All; When rendering the PDF; some of the data in the page flow area is propagating into page footer. I think there is a small problem in the page height calculation; Which fop class do i have to look at inorder to resolve this problem? P.S :In the attached pdf, in the first page horizontal line in the bottom has moved to the footer area. Regards Harshini.
Add Background Image to AWT preview? Need Help !!
Hi all; Is there a way to add a background image to AWT preview? Thanx Harshini
Re: Add Background Image to AWT preview? Need Help !!
Harshini Madurapperuma wrote: Is there a way to add a background image to AWT preview? I don't know anything about FOP's AWT features, but if you can get the rendered preview as a bitmap, you can generate a composite with a very simple image processing algorithm called a multiply. (If you have Photoshop, you can try this out before you start coding: it's one of the layer blend modes.) It works like this: For each pixel, get its luminance as a value from 0 to 1 (darkest to brightest) and multiply the two together. Then, modify the background's luminance with the new value. Where the FOP output is white (the paper), nothing will happen to the background because 1 times x is x. Where there is text, the background will be obliterated, since 0 times x is 0. If FOP generates any grays (such as for antialiasing) they will simply darken the background proportionately to the brightness of the gray. This will work best if the document has no color, only shades of gray. There is no such restriction on the background. If AWT doesn't have a way to get a luminosity for a pixel, look up RGB to HSB conversion on the web. Don't use an RGB to HSL algorithm: HSL is a more complex color space than HSB, with no benefit here. The luminosity (brightness) in HSB goes from 0 to 1, just as we want here, but in HSL it goes from -1 to +1. The HSL - RGB conversions are also harder to calculate correctly than HSB - RGB. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Stream Closed Exception !! Need Help
Hi All; In fop Driver class there is a method called public synchronized void render(XMLReader parser, InputSource source) throws FOPException { } Is there a way to convert that InputSource source back into a character array within that render class? I tried to do it by this way but it throws a Stream Closed Exception. -- if (source.getCharacterStream() != null) { BufferedReader reader = new BufferedReader(source.getCharacterStream()); CharArrayWriter writer=new CharArrayWriter(); int i=-1; while ((i=reader.read())!=-1) { writer.write(i); } reader.close(); writer.close(); } EXCEPTION--- java.io.IOException: Stream closed at java.io.CharArrayReader.ensureOpen(CharArrayReader.java:65) at java.io.CharArrayReader.read(CharArrayReader.java:95) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.read(BufferedReader.java:157) at org.apache.fop.apps.Driver.render(Driver.java:557) - I'm using java as the language. Pls ur help will be greatly appreciated Thanx Harshini. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help on PDF generation using XSL-FO
I have just tried this with my own project here - just disabling the print. It appears that the print disabling is tied to the security. Is there a way to NOT put in password and it disable the print? Right now if you disable the print, it generates a random password and lock the file. I even tried ' -noprint -u ' which I thought would be a null password. FOP 0.93 puked with this (a zero length string). Any ideas? Dean Nelson -Original Message- From: Jeff Vannest [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 7:16 AM To: fop-users@xmlgraphics.apache.org Subject: RE: Need help on PDF generation using XSL-FO we have another requirement of disabling the PRINT, SAVE and EDIT options in the PDF. It looks like we can't disable the PRINT option using XSL-FO. Disabling print and edit are handled by PDF security. Why can't you disable print? I have not tried, but it looks like the PDF security enhancement to FOP has a -noprint flag. See PDF Encryption: http://xmlgraphics.apache.org/fop/0.93/pdfencryption.html Save is not handled by PDF security and will need to be managed using some other method. To my knowledge no *ware modification to the PDF will disable the user's ability to save. In a previous project I implemented a controlled database solution reporting by popping a PDF to the screen for the user then used an OLE connection to the application to remove all Adobe toolbars and menus. This removed almost every option other than viewing. See Acrobat SDK: http://www.adobe.com/devnet/acrobat/ Jeff From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 4:53 AM To: fop-users@xmlgraphics.apache.org Subject: Need help on PDF generation using XSL-FO Hi All, We have a project requirement to generate a PDF document out of XML in multiple languages. We have been successful in generating the PDF in multiple languages. On top of this, we have another requirement of disabling the PRINT, SAVE and EDIT options in the PDF. It looks like we can't disable the PRINT option using XSL-FO. We are still exploring on disabling SAVE and EDIT using XSL-FO. If any body has got idea on disabling these options using any other freeware, please provide the info/URL to get the information. Thanks Regards Sowjanya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help on PDF generation using XSL-FO
On Feb 9, 2007, at 19:02, Nelson, Dean wrote: I have just tried this with my own project here - just disabling the print. It appears that the print disabling is tied to the security. Is there a way to NOT put in password and it disable the print? Right now if you disable the print, it generates a random password and lock the file. I even tried ' -noprint -u ' which I thought would be a null password. FOP 0.93 puked with this (a zero length string). Any ideas? That's because the PDF encryption algorithm at least needs an owner password. A user password can be safely omitted. Setting the owner password does not lock the file for viewing. Try: -noprint -o $owner_pass$ See also: http://xmlgraphics.apache.org/fop/0.93/ pdfencryption.html#Usage+%28command+line%29 HTH! Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help on PDF generation using XSL-FO
Hi All, We have a project requirement to generate a PDF document out of XML in multiple languages. We have been successful in generating the PDF in multiple languages. On top of this, we have another requirement of disabling the PRINT, SAVE and EDIT options in the PDF. It looks like we can't disable the PRINT option using XSL-FO. We are still exploring on disabling SAVE and EDIT using XSL-FO. If any body has got idea on disabling these options using any other freeware, please provide the info/URL to get the information. Thanks Regards Sowjanya The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Need help on PDF generation using XSL-FO
Try to use iText. It can edit a pdf and changes it's properties. http://www.lowagie.com/iText/ hope it helps. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 10:53 AM To: fop-users@xmlgraphics.apache.org Subject: Need help on PDF generation using XSL-FO Hi All, We have a project requirement to generate a PDF document out of XML in multiple languages. We have been successful in generating the PDF in multiple languages. On top of this, we have another requirement of disabling the PRINT, SAVE and EDIT options in the PDF. It looks like we can't disable the PRINT option using XSL-FO. We are still exploring on disabling SAVE and EDIT using XSL-FO. If any body has got idea on disabling these options using any other freeware, please provide the info/URL to get the information. Thanks Regards Sowjanya The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Need help on PDF generation using XSL-FO
we have another requirement of disabling the PRINT, SAVE and EDIT options in the PDF. It looks like we can't disable the PRINT option using XSL-FO. Disabling print and edit are handled by PDF security. Why can't you disable print? I have not tried, but it looks like the PDF security enhancement to FOP has a -noprint flag. See PDF Encryption: http://xmlgraphics.apache.org/fop/0.93/pdfencryption.html Save is not handled by PDF security and will need to be managed using some other method. To my knowledge no *ware modification to the PDF will disable the user's ability to save. In a previous project I implemented a controlled database solution reporting by popping a PDF to the screen for the user then used an OLE connection to the application to remove all Adobe toolbars and menus. This removed almost every option other than viewing. See Acrobat SDK: http://www.adobe.com/devnet/acrobat/ Jeff From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 4:53 AM To: fop-users@xmlgraphics.apache.org Subject: Need help on PDF generation using XSL-FO Hi All, We have a project requirement to generate a PDF document out of XML in multiple languages. We have been successful in generating the PDF in multiple languages. On top of this, we have another requirement of disabling the PRINT, SAVE and EDIT options in the PDF. It looks like we can't disable the PRINT option using XSL-FO. We are still exploring on disabling SAVE and EDIT using XSL-FO. If any body has got idea on disabling these options using any other freeware, please provide the info/URL to get the information. Thanks Regards Sowjanya - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help
It's easiest if you write a servlet that constructs the PDF using FOP and sends it back to the user. Look here for ideas: http://xmlgraphics.apache.org/fop/stable/servlets.html On 08.01.2007 11:56:24 Prashant Saraf wrote: Hello friends. I am new to Fop. I am creating application using struts where I m forwarding pdf to user according to username can I use *FOP* for send pdf to user, if yes how? Thanks and Regards Prashant Saraf Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need Help
Hello friends. I am new to Fop. I am creating application using struts where I m forwarding pdf to user according to username can I use *FOP* for send pdf to user, if yes how? Thanks and Regards Prashant Saraf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with compiling fop beta for java 1.3 - images not working
r.renderBlocks(AbstractRenderer.java:525) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.render.AbstractRender r.renderFlow(AbstractRenderer.java:430) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.render.AbstractRender r.renderMainReference(AbstractRenderer.java:409) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.render.AbstractRender r.renderBodyRegion(AbstractRenderer.java:343) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.render.AbstractRender r.renderRegionViewport(AbstractRenderer.java:288) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.render.AbstractRender r.renderPageAreas(AbstractRenderer.java:261) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.render.AbstractRender r.renderPage(AbstractRenderer.java:235) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.render.pdf.PDFRendere .renderPage(PDFRenderer.java:648) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.area.RenderPagesModel addPage(RenderPagesModel.java:119) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.layoutmgr.PageSequenc LayoutManager.finishPage(PageSequenceLayoutManager.java:703) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.layoutmgr.PageSequenc LayoutManager.activateLayout(PageSequenceLayoutManager.java:154) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.area.AreaTreeHandler. ndPageSequence(AreaTreeHandler.java:320) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.fo.pagination.PageSeq ence.endOfNode(PageSequence.java:147) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.fo.FOTreeBuilder$Main OHandler.endElement(FOTreeBuilder.java:357) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.fop.fo.FOTreeBuilder.endE ement(FOTreeBuilder.java:193) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xml.serializer.ToXMLSAXHa dler.endElement(ToXMLSAXHandler.java:261) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xalan.templates.ElemLiter lResult.execute(ElemLiteralResult.java:1399) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xalan.transformer.Transfo merImpl.executeChildTemplates(TransformerImpl.java:2411) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xalan.templates.ElemLiter lResult.execute(ElemLiteralResult.java:1374) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xalan.templates.ElemApply emplates.transformSelectedNodes(ElemApplyTemplates.java:393) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xalan.templates.ElemApply emplates.execute(ElemApplyTemplates.java:176) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xalan.transformer.Transfo merImpl.executeChildTemplates(TransformerImpl.java:2411) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xalan.transformer.Transfo merImpl.applyTemplateToNode(TransformerImpl.java:2281) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xalan.transformer.Transfo merImpl.transformNode(TransformerImpl.java:1367) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xalan.transformer.Transfo merImpl.transform(TransformerImpl.java:709) 12/15/2006 10:26:40 AM HTTP JVM: at org.apache.xalan.transformer.Transfo merImpl.transform(TransformerImpl.java:1284) 12/15/2006 10:26:41 AM HTTP JVM: at org.apache.xalan.transformer.Transfo merImpl.transform(TransformerImpl.java:1262) 12/15/2006 10:26:41 AM HTTP JVM: at JavaAgent.convertXML2PDF(JavaAgent.j va:213) 12/15/2006 10:26:41 AM HTTP JVM: at JavaAgent.NotesMain(JavaAgent.java:1 3) 12/15/2006 10:26:41 AM HTTP JVM: at lotus.domino.AgentBase.runNotes(Unkn wn Source) 12/15/2006 10:26:41 AM HTTP JVM: at lotus.domino.NotesThread.run(NotesTh ead.java:215) Now I wonder if this means that I did not really compile for java 1.3 (altrough I did set the source target in the build.property file) Are there any other additional switches that are used when binaries are compiled for distribution? I would need to compile fop as I need to catch exception if image is not retrieved or when the image could not be included in the pdf. ErrorListener that I added is not doing that for me (is doing quite well in some other cases although). I would appreciate any help ... Jelka [EMAIL PROTECTED] 14.12.2006 14:36 Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject Need help with compiling fop beta for java 1.3 - images not working I'm working on a problem I've posted earlier this week and I would need to rebuild fop since I've changed the source. I have problems building fop beta 0.92 for java 1.3 I have jdk1.5.0_06 and Apache Ant version 1.6.5 compiled on June 2 2005. I changed the build.properties file (uncommented the two lines that seemed to be correct) javac.source = 1.3 javac.target = 1.3 I added jimi-1.0.jar in lib folder This is what ant prints: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006
Re: Need help with compiling fop beta for java 1.3 - images not working
You need to set the JAVA_HOME environment variable to you actually compile with JDK 1.3.1. You currently compile with a 1.5 class library and compiler as you can see in the first echos from the build. Be sure to do an ant clear before you build after switching. On 14.12.2006 14:36:40 jelka.kosir wrote: I'm working on a problem I've posted earlier this week and I would need to rebuild fop since I've changed the source. I have problems building fop beta 0.92 for java 1.3 I have jdk1.5.0_06 and Apache Ant version 1.6.5 compiled on June 2 2005. I changed the build.properties file (uncommented the two lines that seemed to be correct) javac.source = 1.3 javac.target = 1.3 I added jimi-1.0.jar in lib folder This is what ant prints: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] VM: 1.5.0_06-b05, Sun Microsystems Inc. [echo] JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06 [echo] Jimi Support PRESENT [echo] JAI Support NOT Present [echo] JCE Support PRESENT [echo] JUnit Support NOT Present - Committers are required to have JUnit wo rking [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sou rceforge.net init-filters-jdk14: [echo] Use GraphicsConfiguration adapter for JDK 1.4. init-filters-jdk13: init: It seems like my build.properties setting for building java 1.3 does not get recognized and GraficsConfiguration adapter used if for JDK 1.4 instead of 1.3 Build is sucessful but when I use it in my embedded environment on Domino, no images can be rendered, this error is displayed: java.lang.NoClassDefFoundError: javax/imageio/ImageIO A while ago I had simular problems when building trunk for java 1.3 but the addition of jimi did the trick. Any suggestions ? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with compiling fop beta for java 1.3 - images not working
When I change my JAVA_HOME to jdk 1.3 this is what I get: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] VM: 1.3.1_19-b03, Sun Microsystems Inc. [echo] JAVA_HOME: C:\Java\jdk1.3.1_19 [echo] Jimi Support PRESENT [echo] JAI Support NOT Present [echo] JCE Support NOT Present [echo] JUnit Support NOT Present - Committers are required to have JUnit wo rking [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sou rceforge.net init-filters-jdk14: init-filters-jdk13: [echo] Use GraphicsConfiguration adapter for JDK 1.3 or earlier. init: codegen: [echo] Generating the java files from xml resources [mkdir] Created dir: C:\Fop beta\build\gensrc [mkdir] Created dir: C:\Fop beta\build\gensrc\org\apache\fop\fonts\base14 [style] Processing C:\Fop beta\src\codegen\encodings.xml to C:\Fop beta\buil d\gensrc\org\apache\fop\fonts\CodePointMapping.java [style] Loading stylesheet C:\Fop beta\src\codegen\code-point-mapping.xsl BUILD FAILED javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xa lan.processor.TransformerFactoryImpl not found Jeremias Maerki [EMAIL PROTECTED] wrote on 15.12.2006 13:50:41: You need to set the JAVA_HOME environment variable to you actually compile with JDK 1.3.1. You currently compile with a 1.5 class library and compiler as you can see in the first echos from the build. Be sure to do an ant clear before you build after switching.
Re: Need help with compiling fop beta for java 1.3 - images not working
Copy xalan*.jar, xerces*.jar, serializer*.jar and xml-apis*.jar from FOP's lib directory into %ANT_HOME%/lib. That should do the trick. On 15.12.2006 16:02:16 jelka.kosir wrote: When I change my JAVA_HOME to jdk 1.3 this is what I get: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] VM: 1.3.1_19-b03, Sun Microsystems Inc. [echo] JAVA_HOME: C:\Java\jdk1.3.1_19 [echo] Jimi Support PRESENT [echo] JAI Support NOT Present [echo] JCE Support NOT Present [echo] JUnit Support NOT Present - Committers are required to have JUnit wo rking [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sou rceforge.net init-filters-jdk14: init-filters-jdk13: [echo] Use GraphicsConfiguration adapter for JDK 1.3 or earlier. init: codegen: [echo] Generating the java files from xml resources [mkdir] Created dir: C:\Fop beta\build\gensrc [mkdir] Created dir: C:\Fop beta\build\gensrc\org\apache\fop\fonts\base14 [style] Processing C:\Fop beta\src\codegen\encodings.xml to C:\Fop beta\buil d\gensrc\org\apache\fop\fonts\CodePointMapping.java [style] Loading stylesheet C:\Fop beta\src\codegen\code-point-mapping.xsl BUILD FAILED javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xa lan.processor.TransformerFactoryImpl not found Jeremias Maerki [EMAIL PROTECTED] wrote on 15.12.2006 13:50:41: You need to set the JAVA_HOME environment variable to you actually compile with JDK 1.3.1. You currently compile with a 1.5 class library and compiler as you can see in the first echos from the build. Be sure to do an ant clear before you build after switching. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with compiling fop beta for java 1.3 - images not working
Yes I see, It did the trick ... : ) It was strange because I had the fop lib in my classpath ... And building with ant and java 1.5 did not have this problems finding the fop lib jars ... Thank you for help, I hope I can now get to the main issues I have ... Jelka Jeremias Maerki [EMAIL PROTECTED] wrote on 15.12.2006 16:16:05: Copy xalan*.jar, xerces*.jar, serializer*.jar and xml-apis*.jar from FOP's lib directory into %ANT_HOME%/lib. That should do the trick. On 15.12.2006 16:02:16 jelka.kosir wrote: When I change my JAVA_HOME to jdk 1.3 this is what I get: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] VM: 1.3.1_19-b03, Sun Microsystems Inc. [echo] JAVA_HOME: C:\Java\jdk1.3.1_19 [echo] Jimi Support PRESENT [echo] JAI Support NOT Present [echo] JCE Support NOT Present [echo] JUnit Support NOT Present - Committers are required to have JUnit wo rking [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sou rceforge.net init-filters-jdk14: init-filters-jdk13: [echo] Use GraphicsConfiguration adapter for JDK 1.3 or earlier. init: codegen: [echo] Generating the java files from xml resources [mkdir] Created dir: C:\Fop beta\build\gensrc [mkdir] Created dir: C:\Fop beta\build\gensrc\org\apache\fop\fonts\base14 [style] Processing C:\Fop beta\src\codegen\encodings.xml to C:\Fop beta\buil d\gensrc\org\apache\fop\fonts\CodePointMapping.java [style] Loading stylesheet C:\Fop beta\src\codegen\code-point-mapping.xsl BUILD FAILED javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xa lan.processor.TransformerFactoryImpl not found Jeremias Maerki [EMAIL PROTECTED] wrote on 15.12.2006 13:50:41: You need to set the JAVA_HOME environment variable to you actually compile with JDK 1.3.1. You currently compile with a 1.5 class library and compiler as you can see in the first echos from the build. Be sure to do an ant clear before you build after switching. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with compiling fop beta for java 1.3 - images not working
On 15.12.2006 16:21:55 jelka.kosir wrote: Yes I see, It did the trick ... : ) It was strange because I had the fop lib in my classpath ... But Ant probably didn't have those libraries in the classpath and they are needed to generate some Java classes. And building with ant and java 1.5 did not have this problems finding the fop lib jars ... ...because since JDK 1.4 JAXP is part of the JDK/JRE. Thank you for help, I hope I can now get to the main issues I have ... Good luck! snip/ Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help with compiling fop beta for java 1.3 - images not working
I'm working on a problem I've posted earlier this week and I would need to rebuild fop since I've changed the source. I have problems building fop beta 0.92 for java 1.3 I have jdk1.5.0_06 and Apache Ant version 1.6.5 compiled on June 2 2005. I changed the build.properties file (uncommented the two lines that seemed to be correct) javac.source = 1.3 javac.target = 1.3 I added jimi-1.0.jar in lib folder This is what ant prints: init-avail: [echo] --- Apache FOP 0.92beta [1999-2006] [echo] See build.properties and build-local.properties for additional build settings [echo] Apache Ant version 1.6.5 compiled on June 2 2005 [echo] VM: 1.5.0_06-b05, Sun Microsystems Inc. [echo] JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06 [echo] Jimi Support PRESENT [echo] JAI Support NOT Present [echo] JCE Support PRESENT [echo] JUnit Support NOT Present - Committers are required to have JUnit wo rking [echo] XMLUnit Support NOT Present - you can get it from http://xmlunit.sou rceforge.net init-filters-jdk14: [echo] Use GraphicsConfiguration adapter for JDK 1.4. init-filters-jdk13: init: It seems like my build.properties setting for building java 1.3 does not get recognized and GraficsConfiguration adapter used if for JDK 1.4 instead of 1.3 Build is sucessful but when I use it in my embedded environment on Domino, no images can be rendered, this error is displayed: java.lang.NoClassDefFoundError: javax/imageio/ImageIO A while ago I had simular problems when building trunk for java 1.3 but the addition of jimi did the trick. Any suggestions ?
RE: need help with templating issues...
Sorry for that!, thanks for the solutions and I will keep that in mind next time. Cheers, R. -Oorspronkelijk bericht- Van: Andreas L Delmelle [mailto:[EMAIL PROTECTED] Verzonden: donderdag 9 november 2006 21:42 Aan: fop-users@xmlgraphics.apache.org Onderwerp: Re: need help with templating issues... On Nov 9, 2006, at 16:13, Ricardo Soe-Agnie wrote: Hi, I want to transform the following XML to PDF: I see you're a first-time poster, but to us all it seems like the zillionth time: Such questions actually do not belong on this list. Mulberry's XSLT list is much, much better suited. This list is meant for problems/ questions wrt using Apache FOP to transform FO into PDF. The XSL transform is a separate step, which has very little to do with FOP itself... Please try to keep that in mind for the future. Thanks! On that note, you'll also notice, if you browse the archives, that many of us can't resist to offer you an answer anyway, so here we go. For the nodes for which there is no explicit matching template defined, the default template is invoked, which ultimately comes down to: xsl:template match=* xsl:apply-templates / /xsl:template and thus for their text-node children: xsl:template match=text() | @* xsl:value-of select=. / /xsl:template Two possible solutions: - either define an empty template for the nodes you don't want to see processed, like so xsl:template match=SendDate | TotalAmount | Debtor / - or apply-templates to only those nodes you do want to see appear in the result, so replace this one here ... fo:page-sequence master-reference=simpleA4 fo:flow flow-name=xsl-region-body fo:block xsl:apply-templates/ with xsl:apply-templates select=Reference | Creditor / HTH! Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
need help with templating issues...
Hi, I want to transform the following XML to PDF: ?xml version=1.0 encoding=UTF-8? Bill Reference90594.01.53.73/Reference SendDate18-08-2003/SendDate TotalAmount59.21/TotalAmount Debtor Namede heer A.Debiteur/Name Address1Straat 22/Address1 Address2 AA Woonplaats/Address2 /Debtor Creditor NameTandards/Name AccountNumber33.44.73.045/AccountNumber !-- because of p.o.box shitz no specific adress splitting -- Address1Straat 22/Address1 Address2 AA Woonplaats2/Address2 /Creditor /Bill With the following XSLT: ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.1 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; exclude-result-prefixes=fo xsl:output method=xml version=1.0 omit-xml-declaration=no indent=yes/ xsl:param name=versionParam select='1.0'/ !-- MATCH ROOT ELEMENT OF XML FILE-- xsl:template match=Bill fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- Determine global page format -- fo:layout-master-set fo:simple-page-master master-name=simpleA4 page-height=297mm page-width=210mm margin-top=0.5cm margin-bottom=0.5mm margin-left=0.5mm margin-right=0.5mm fo:region-body/ /fo:simple-page-master /fo:layout-master-set !-- USE GLOBAL PAGE FORMAT IN BLOCK-- fo:page-sequence master-reference=simpleA4 fo:flow flow-name=xsl-region-body fo:block xsl:apply-templates/ /fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=Reference fo:block-container position=absolute left=4cm top=4cm right=10cm bottom=10cm border-style=solid border-width=1pt fo:block color=red xsl:value-of select=./ /fo:block /fo:block-container /xsl:template xsl:template match=Creditor fo:block-container position=absolute left=4cm top=10cm right=10cm bottom=16cm border-style=solid border-width=1pt fo:block color=blue xsl:value-of select=Name/ /fo:block /fo:block-container /xsl:template When I execute this example I get the following results in my pdf: 18-08-2003 59.21 de heer A.Debiteur Straat 22 AA Woonplaats2 -- |90594.01.53.73| -- -- |Tandards | -- But I only want to show the selected values in the pdf and not a trace of the other non-matched elements in sequence. What can I do to refine my xsl so that it works the right way? Thanks, Ricardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need help with templating issues...
On Nov 9, 2006, at 16:13, Ricardo Soe-Agnie wrote: Hi, I want to transform the following XML to PDF: I see you're a first-time poster, but to us all it seems like the zillionth time: Such questions actually do not belong on this list. Mulberry's XSLT list is much, much better suited. This list is meant for problems/ questions wrt using Apache FOP to transform FO into PDF. The XSL transform is a separate step, which has very little to do with FOP itself... Please try to keep that in mind for the future. Thanks! On that note, you'll also notice, if you browse the archives, that many of us can't resist to offer you an answer anyway, so here we go. For the nodes for which there is no explicit matching template defined, the default template is invoked, which ultimately comes down to: xsl:template match=* xsl:apply-templates / /xsl:template and thus for their text-node children: xsl:template match=text() | @* xsl:value-of select=. / /xsl:template Two possible solutions: - either define an empty template for the nodes you don't want to see processed, like so xsl:template match=SendDate | TotalAmount | Debtor / - or apply-templates to only those nodes you do want to see appear in the result, so replace this one here ... fo:page-sequence master-reference=simpleA4 fo:flow flow-name=xsl-region-body fo:block xsl:apply-templates/ with xsl:apply-templates select=Reference | Creditor / HTH! Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I need help with an XSL-FO solution
Clifton Craig wrote: Johannes, Thanx for the feedback. I realize my question speaks more towards the development practices regarding XSL-FO but I was hoping to run across some experts in the field that might shed some light on my situation. I'll try another list and see if I have better luck. Indentation can be done by the Xalan processor it's just that the way I'm using it seems to not work. I know there are options you can use in your stylesheet but they don't seem to be working with the way I'm doing my transform. Are there any Xalan experts out setting indentation options in the stylesheet itself, i.e. output indent=yes/ only seems to work when running from the command line. If you are serializing the output within a program then you need to set indentation on the serializer properties. I don't have a clue about any of your other questions. Sorry, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I need help with an XSL-FO solution
Clifton Craig wrote: My other major question is are there any FO validators available in the FO package? See http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/foschema/fop.xsd?revision=198361 for a schema which can be used for validation. Because of restrictions of what can be expressed by an XSD, some constraints can't be expressed. The schema also tries to validate FO property values in a somewhat simplistic way, resulting in the rejection of valid FO documents. It seems to omit FO 1.1 elements as well as FOP extensions as well as possible content for fo:instream-foreign-object. What do others use (if anything) to validate their FO? FOP will validate the input quite thoroughly unless validation is relaxed. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I need help with an XSL-FO solution
Hello all, I've started a project involving rather complicated FOP generation. I have the details on what exactly I'm trying to do on my weblog here: http://codeforfun.wordpress.com/2006/06/12/new-xml-grammar/ In short, I'm writing a stylesheet that transforms a custom XML grammar into XSL-FO stylesheets. These generated XSL-FO stylesheets (XSLT templates that generate raw FO using input XML) will be used to process an input XML and generate PDFs. My current problem regards unit testing pieces of my solution. I currently need a way to validate first the XSL-FO that I generate and secondly validate the FO that the generated XSL-FO creates. I'm doing a lot of manual work right now to acheive this. What I do is load a sample of my custom XML grammar (I call it SSML) into a TrAX transform with my SSMLStylesheet. (That's what generates the XSL-FO.) I diff it against a golden copy of what I believe the output XSL-FO should look like. I've also been separately testing the golden copy to make sure it actually works and generates a PDF when run against FOP. I desparately need a way to streamline the entire process. I want to enahnce the golden copy and have an automated test verify that the changes I make still generate valid FO syntax. I also want to verify the output of my SSMLStylesheet is valid XSLT before diff'ing it against my golden copy. I'm also having a little trouble with XMLUnit doing diffs. I've gotten spoiled with Idea's auto-diff on failed String assertions in junit tests, so when I see the messages generated by XMLUnit it takes a moment to decipher what's actually wrong. What I've been doing is trapping the XMLDiff AssertionFailedException and doing an assertEquals on the two XML strings so I can take advantage of Idea's diff. It's clumsy but I can pick out the error a little better this way. The other problem is the generated stylesheets are not formatted (indented and such) so even with Idea's string diff I have to squint, turn my head sideways and figure it out. What I do then is copy the generated stylesheet and paste it in a temp file and format it. That moves completely away from unit testing and is more of an eyeball test. So as you can see I am really struggling with the testing. I'll stop rambling now. Are there any XSL gurus out there that can offer some insight? --- Clifton C. Craig, Software Engineer Tell me what's up... visit: http://codeforfun.wordpress.com [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I need help with an XSL-FO solution
Hi, thats only a 10% fop-question, so maybe you can find better lists these problems. To indent your style-sheets, you can use tidy : http://tidy.sourceforge.net/ bye, Johannes Clifton Craig schrieb: Hello all, I've started a project involving rather complicated FOP generation. I have the details on what exactly I'm trying to do on my weblog here: http://codeforfun.wordpress.com/2006/06/12/new-xml-grammar/ In short, I'm writing a stylesheet that transforms a custom XML grammar into XSL-FO stylesheets. These generated XSL-FO stylesheets (XSLT templates that generate raw FO using input XML) will be used to process an input XML and generate PDFs. My current problem regards unit testing pieces of my solution. I currently need a way to validate first the XSL-FO that I generate and secondly validate the FO that the generated XSL-FO creates. I'm doing a lot of manual work right now to acheive this. What I do is load a sample of my custom XML grammar (I call it SSML) into a TrAX transform with my SSMLStylesheet. (That's what generates the XSL-FO.) I diff it against a golden copy of what I believe the output XSL-FO should look like. I've also been separately testing the golden copy to make sure it actually works and generates a PDF when run against FOP. I desparately need a way to streamline the entire process. I want to enahnce the golden copy and have an automated test verify that the changes I make still generate valid FO syntax. I also want to verify the output of my SSMLStylesheet is valid XSLT before diff'ing it against my golden copy. I'm also having a little trouble with XMLUnit doing diffs. I've gotten spoiled with Idea's auto-diff on failed String assertions in junit tests, so when I see the messages generated by XMLUnit it takes a moment to decipher what's actually wrong. What I've been doing is trapping the XMLDiff AssertionFailedException and doing an assertEquals on the two XML strings so I can take advantage of Idea's diff. It's clumsy but I can pick out the error a little better this way. The other problem is the generated stylesheets are not formatted (indented and such) so even with Idea's string diff I have to squint, turn my head sideways and figure it out. What I do then is copy the generated stylesheet and paste it in a temp file and format it. That moves completely away from unit testing and is more of an eyeball test. So as you can see I am really struggling with the testing. I'll stop rambling now. Are there any XSL gurus out there that can offer some insight? --- Clifton C. Craig, Software Engineer Tell me what's up... visit: http://codeforfun.wordpress.com [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Johannes Künsebeck Heeper Str. 52 33607 Bielefeld 0521 / 5202341 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I need help with an XSL-FO solution
Clifton Craig wrote: Are there any XSL gurus out there that can offer some insight? You'll probably want to post this on the XSL list http://www.mulberrytech.com/xsl/xsl-list although unit testing style sheet generators is somewhat far out even there. Note that your nomenclature is slightly non-standard and might hinder understanding your problem, I recommend lurking on the list for a day or two, then adjust the wording. Also check whether XMLUnit http://xmlunit.sourceforge.net/ can help you. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help with Continued Overpage...
Hi, Question: How can I put Continued overpage at the bottom of the first page of a sequence if the sequence happens to produce 2 or more pages but not supply when it only produces 1 page? Any help or insight into this would be greatful? I've tried using markers but cant get the desired result. Is is possible to supply a choice of first pages depending on the repeatable-page-master-alternatives matches? I'm using the FOP Trunk code. Regards Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with Continued Overpage...
Adam Davies wrote: Hi, Question: How can I put Continued overpage at the bottom of the first page of a sequence if the sequence happens to produce 2 or more pages but not supply when it only produces 1 page? Any help or insight into this would be greatful? I've tried using markers but cant get the desired result. Is is possible to supply a choice of first pages depending on the repeatable-page-master-alternatives matches? This is achievable using markers or fo:repeatable-page-master-alternatives. The key to getting the R-P-M-A working is to order the conditional-page-master-reference correctly. e.g. fo:simple-page-master master-name=first fo:region-body margin-bottom=2cm/ fo:region-after region-name=continued extent=2cm/ /fo:simple-page-master fo:simple-page-master master-name=rest fo:region-body margin-bottom=2cm/ fo:region-after region-name=continued extent=2cm/ /fo:simple-page-master fo:simple-page-master master-name=last fo:region-body/ /fo:simple-page-master fo:page-sequence-master fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=last page-position=last/ fo:conditional-page-master-reference master-reference=rest page-position=first/ fo:conditional-page-master-reference master-reference=rest page-position=rest/ /fo:repeatble-page-master-alternatives /fo:page-sequence-master Notice that the reference to last is first in the list. This means if you have a one page document, the last master will be selected. If you placed it last in the list of alternatives, then the first one is selected for your first page. HTH, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help on table rows display
Hi All, I need help to display a no: of table rows. whenever a data exist in XML according to that table rows were displaying properly. if not exist i need to display dynamically no: of rows in the table. like some 10 or may be some 28. it should be dependant on a variable. is it possible in XSL?if it is how...? please help me to solve my issue. Regards Raghavendra U| Associate Software Engineer | M P H A S I S Architecting Value |139/1,Hosur Road, Koramangala, Bangalore-560 095 | Mobile: +91-9845830975| www.mphasis.com
I need help on italian characters -- fonts
Hi All, I need help on fonts. I want to display Italian Characters in PDF. For that what I have to mention in encoding part of the follwong declaration. ?xml version=1.0 encoding= ? Regards Raghavendra U - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I need help on fonts
Hi All, I Need help on XML to PDF using FOP. 1) In XSL i am defining the fonts as Arial but its not taking in PDF what will be reason...? Arial font is installed in my PC. 2) i want to display two same words in different fonts in same line. is it possible? How? for ex: FOP FOP Regards Raghavendra U| Associate Software Engineer | M P H A S I S Architecting Value |139/1,Hosur Road, Koramangala, Bangalore-560 095 | Mobile: +91-9845830975| www.mphasis.com
RE: I need help on fonts
-Original Message- From: Raghavendra U [mailto:[EMAIL PROTECTED] 1) In XSL i am defining the fonts as Arial but its not taking in PDF what will be reason...? Arial font is installed in my PC. You need to: 1. generate font metric file 2. register fonts in a config file See [1] or [2] for more details (config file syntax has changed from FOP 0.20 to FOP 0.9x) 2) i want to display two same words in different fonts in same line. is it possible? How? for ex: FOP FOP Yes, Use fo:inline object with different font-family property. [1] http://xmlgraphics.apache.org/fop/0.91/fonts.html [2] http://xmlgraphics.apache.org/fop/0.20.5/fonts.html Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Still need help with document(), layout
I've attached the XSL file. You will see the following lines: !-- xsl:apply-templates select=document('ClientInfo.xml')/ xsl:apply-templates/ -- !-- Mailing information table-- The first two are the lines I added to import the data. It just brought in all the data, then stuck it at the top of the output file, along with the rest of the XML file. The third is the comment. The lines below that are where I'm having layout problems. I can't seem to get the tables to work the way I want. The first column goes off to the left of the paper. I can't seem to get the space after the mailing information right, and I'm sure I'm going to need to modify the pages so that the top margin is a little lower. How do I get the document() function working, including getting the data I want into the lines I want (currently listed as Row 2 Column 1, Row 2 Column 2, ...? How do I get the tables to stay within the print area? Thanks!! AthenaFormat.xsl Michael Gosselin Athena Diagnostics, Inc. (508) 756-2886 x3708 (800) 394-4493 x3708 AthenaFormat.xsl Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Still need help with document(), layout
You might see more willingness to help on a mailing list dedicated to XSLT, for example: http://xmlgraphics.apache.org/fop/resources.html#XSLT-at-Mulberry-Tech Anyway, an XSLT without an XML is only for those who like mental challenges. You make the life of those who help a lot easier if you provide a full example so they can easily experiment. On 29.03.2006 20:33:20 Gosselin, Michael wrote: I've attached the XSL file. You will see the following lines: !-- xsl:apply-templates select=document('ClientInfo.xml')/ xsl:apply-templates/ -- !-- Mailing information table-- The first two are the lines I added to import the data. It just brought in all the data, then stuck it at the top of the output file, along with the rest of the XML file. The third is the comment. The lines below that are where I'm having layout problems. I can't seem to get the tables to work the way I want. The first column goes off to the left of the paper. I can't seem to get the space after the mailing information right, and I'm sure I'm going to need to modify the pages so that the top margin is a little lower. How do I get the document() function working, including getting the data I want into the lines I want (currently listed as Row 2 Column 1, Row 2 Column 2, ...? How do I get the tables to stay within the print area? Thanks!! AthenaFormat.xsl Michael Gosselin Athena Diagnostics, Inc. (508) 756-2886 x3708 (800) 394-4493 x3708 Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need Help : FO file converted to pdf gets corrupted with '#'
Hi, I am trying to convert an xsl:fo (attached sample.xml) file to a pdf file using Apache FOP. The ouput gets partially corrupt displaying '#' instead of any character in the second half of the file. (output file sample.pdf attached). i'm trying to figure the reason but not really getting it. The same xsl:fo when converted to svg or awt looks ok. additional information: --- FOP version : fop-0.20.5 COMMAND LINE DUMP --xxx--- D:\tmpfop -d -fo sample.xml -pdf sample.pdf [DEBUG] Input mode: [DEBUG] FO [DEBUG] fo input file: sample.xml [DEBUG] Output mode: [DEBUG] pdf [DEBUG] output file: sample.pdf [DEBUG] OPTIONS [DEBUG] no user configuration file is used [default] [DEBUG] debug mode on [DEBUG] dump configuration [DEBUG] quiet mode on [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] base directory: file:/D:/tmp/ [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [DEBUG] Last page-sequence produced 1 pages. [INFO] Parsing of document complete, stopping renderer [DEBUG] Initial heap size: 793Kb [DEBUG] Current heap size: 1010Kb [DEBUG] Total memory used: 217Kb [DEBUG] Memory use is indicative; no GC was performed [DEBUG] These figures should not be used comparatively [DEBUG] Total time used: 266ms [DEBUG] Pages rendered: 1 [DEBUG] Avg render time: 266ms/page --xxx--- It would be grate if someone can help me out with this. Thanks and Regards, fd. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com sample.pdf Description: 2946461046-sample.pdf ?xml version=1.0 encoding=ISO-8859-1? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=A4 fo:region-body /fo:region-body /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=A4 fo:flow flow-name=xsl-region-body fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block fo:blockHello World/fo:block /fo:flow /fo:page-sequence /fo:root - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help : FO file converted to pdf gets corrupted with '#'
I'm afraid I can't reproduce it. The XML file looks fine. On 22.08.2005 13:56:53 fdbt dbt wrote: Hi, I am trying to convert an xsl:fo (attached sample.xml) file to a pdf file using Apache FOP. The ouput gets partially corrupt displaying '#' instead of any character in the second half of the file. (output file sample.pdf attached). i'm trying to figure the reason but not really getting it. The same xsl:fo when converted to svg or awt looks ok. additional information: --- FOP version : fop-0.20.5 COMMAND LINE DUMP --xxx--- D:\tmpfop -d -fo sample.xml -pdf sample.pdf [DEBUG] Input mode: [DEBUG] FO [DEBUG] fo input file: sample.xml [DEBUG] Output mode: [DEBUG] pdf [DEBUG] output file: sample.pdf [DEBUG] OPTIONS [DEBUG] no user configuration file is used [default] [DEBUG] debug mode on [DEBUG] dump configuration [DEBUG] quiet mode on [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] base directory: file:/D:/tmp/ [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [DEBUG] Last page-sequence produced 1 pages. [INFO] Parsing of document complete, stopping renderer [DEBUG] Initial heap size: 793Kb [DEBUG] Current heap size: 1010Kb [DEBUG] Total memory used: 217Kb [DEBUG] Memory use is indicative; no GC was performed [DEBUG] These figures should not be used comparatively [DEBUG] Total time used: 266ms [DEBUG] Pages rendered: 1 [DEBUG] Avg render time: 266ms/page --xxx--- It would be grate if someone can help me out with this. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need Help : FO file converted to pdf gets corrupted with '#'
I tried it with the 0.20.5RC and works fine with me. I can't reproduce it. -Message d'origine- De : Jeremias Maerki [mailto:[EMAIL PROTECTED] Envoyé : lundi 22 août 2005 14:52 À : fop-users@xmlgraphics.apache.org Objet : Re: Need Help : FO file converted to pdf gets corrupted with '#' I'm afraid I can't reproduce it. The XML file looks fine. On 22.08.2005 13:56:53 fdbt dbt wrote: Hi, I am trying to convert an xsl:fo (attached sample.xml) file to a pdf file using Apache FOP. The ouput gets partially corrupt displaying '#' instead of any character in the second half of the file. (output file sample.pdf attached). i'm trying to figure the reason but not really getting it. The same xsl:fo when converted to svg or awt looks ok. additional information: --- FOP version : fop-0.20.5 COMMAND LINE DUMP --xxx--- D:\tmpfop -d -fo sample.xml -pdf sample.pdf [DEBUG] Input mode: [DEBUG] FO [DEBUG] fo input file: sample.xml [DEBUG] Output mode: [DEBUG] pdf [DEBUG] output file: sample.pdf [DEBUG] OPTIONS [DEBUG] no user configuration file is used [default] [DEBUG] debug mode on [DEBUG] dump configuration [DEBUG] quiet mode on [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] base directory: file:/D:/tmp/ [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [DEBUG] Last page-sequence produced 1 pages. [INFO] Parsing of document complete, stopping renderer [DEBUG] Initial heap size: 793Kb [DEBUG] Current heap size: 1010Kb [DEBUG] Total memory used: 217Kb [DEBUG] Memory use is indicative; no GC was performed [DEBUG] These figures should not be used comparatively [DEBUG] Total time used: 266ms [DEBUG] Pages rendered: 1 [DEBUG] Avg render time: 266ms/page --xxx--- It would be grate if someone can help me out with this. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help : FO file converted to pdf gets corrupted with '#'
Tested with yuor attached sample.xml and fop-0.20.5 Could not reproduce. Output is fine (see attachement) Le Lundi 22 Août 2005 13:56, fdbt dbt a écrit : Hi, I am trying to convert an xsl:fo (attached sample.xml) file to a pdf file using Apache FOP. The ouput gets partially corrupt displaying '#' instead of any character in the second half of the file. (output file sample.pdf attached). i'm trying to figure the reason but not really getting it. The same xsl:fo when converted to svg or awt looks ok. additional information: --- FOP version : fop-0.20.5 COMMAND LINE DUMP --xxx--- D:\tmpfop -d -fo sample.xml -pdf sample.pdf [DEBUG] Input mode: [DEBUG] FO [DEBUG] fo input file: sample.xml [DEBUG] Output mode: [DEBUG] pdf [DEBUG] output file: sample.pdf [DEBUG] OPTIONS [DEBUG] no user configuration file is used [default] [DEBUG] debug mode on [DEBUG] dump configuration [DEBUG] quiet mode on [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] base directory: file:/D:/tmp/ [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [DEBUG] Last page-sequence produced 1 pages. [INFO] Parsing of document complete, stopping renderer [DEBUG] Initial heap size: 793Kb [DEBUG] Current heap size: 1010Kb [DEBUG] Total memory used: 217Kb [DEBUG] Memory use is indicative; no GC was performed [DEBUG] These figures should not be used comparatively [DEBUG] Total time used: 266ms [DEBUG] Pages rendered: 1 [DEBUG] Avg render time: 266ms/page --xxx--- It would be grate if someone can help me out with this. Thanks and Regards, fd. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? sample.pdf Description: Adobe PDF document - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help : FO file converted to pdf gets corrupted with '#'
I had a J2SE 6.0 early access release installation on my machine. (http://download.java.net/download/jdk6/binaries/jdk-6_0-ea-bin-b48-windows-i586-18_aug_2005.exe). This had taken precedence and hence was getting the error. The error is still reproducible by using this JRE. I was able to resolve the issue after using jdk1.5.0_02. Sorry for bothering and Thanks for all those quick responses. Regards, fd. fdbt dbt [EMAIL PROTECTED] wrote: Hi,I am trying to convert an xsl:fo (attached sample.xml)file to a pdf file using Apache FOP. The ouput gets partially corrupt displaying '#' instead of any character in the second half of the file. (output filesample.pdf attached). i'm trying to figure the reasonbut not really getting it.The same xsl:fo when converted to svg or awt looks ok.additional information:---FOP version : fop-0.20.5COMMAND LINE DUMP--xxx---D:\tmpfop -d -fo sample.xml -pdf sample.pdf[DEBUG] Input mode:[DEBUG] FO[DEBUG] fo input file: sample.xml[DEBUG] Output mode:[DEBUG] pdf[DEBUG] output file: sample.pdf[DEBUG] OPTIONS[DEBUG] no user configuration file is used [default][DEBUG] debug mode on[DEBUG] dump configuration[DEBUG] quiet mode on[INFO] U sing org.apache.xerces.parsers.SAXParser asSAX2 Parser[INFO] base directory: file:/D:/tmp/[INFO] FOP 0.20.5[INFO] Using org.apache.xerces.parsers.SAXParser asSAX2 Parser[INFO] building formatting object tree[INFO] setting up fonts[INFO] [1][DEBUG] Last page-sequence produced 1 pages.[INFO] Parsing of document complete, stopping renderer[DEBUG] Initial heap size: 793Kb[DEBUG] Current heap size: 1010Kb[DEBUG] Total memory used: 217Kb[DEBUG] Memory use is indicative; no GC wasperformed[DEBUG] These figures should not be usedcomparatively[DEBUG] Total time used: 266ms[DEBUG] Pages rendered: 1[DEBUG] Avg render time: 266ms/page--xxx---It would be grate if someone can help me out withthis.Thanks and Regards,fd.__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Hello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello World-< BR>To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Start your day with Yahoo! - make it your home page