Re: Where to download high-quality fonts
On Tue, Jun 01, 2004 at 06:04:32PM +0100, Mike Brodbelt wrote: I don't know the details for PostScript fonts, but TrueType fonts are considered as small programs which, when executed with the correct font engine, draw the correct glyphs on the screen. While the glyph shapes themselves can't be copyrighted, the program that is a ttf file (or other type of font) can be, and the hinting alogrigthms are subject to some patents in the US - see http://www.freetype.org/patents.html. As PostScript is a language, I suspect the program is copyrighted, but you may not have patent problems there. snip Yes, you can do this. You may still have to avoid infringing the offending patents though :-(. So what exactly is a font? I thought a font was more like a data file. I thought the rendering of the font was done by the program. Also, what exactly is hinting? Is that not some technique to make a font look better? To be fair to Adobe, they took those 500 year old glyph shapes, and turned them into a program that reproduces them on your screen. As you point out yourself, this takes a fair amount of time, effort and skill, so I think claiming copyright over their implementation is perfectly reasonable. I find the people who patent incremental improvements to a system, that use those patents as a roadblock to prevent the development of competing implementations to be far more unpleasant. This is however not a commentary on Apple - I do not know how they have behaved with regard to these patents, nor do I know how significant the things they have patents on are. I see your point about Adobe. But they seem to charge extravagant fees. It costs around $170 just to buy a fount like Bookman. Even to have as little at 5 fonts for use would become too expensive except for professionals. AFAIK, it doesn't - that license applied only to that set of fonts. The fact that they were enthusiastically adopted by Linux users, and now are no longer available from Microsoft's own website suggests that MS rather wish they hadn't let them out. I doubt we'll see any more with that license. That could be, though I just downloaded from MS's own site a package of true type fonts that inlucded book antiqua and several other nice fonts. I didn't see any restrictions on the page, and I don't think MS would let you download them if they put liscensing restrictions on them. But I could be wrong. There's no indication of license at that site, but it looks a bit suspect to me Yes, and this site looks suspicious to me as well. I don't think I can just dowload the fonts and provide them on sourceforge. If a font is a set of data (as opposed to a program), it seems in the interest of the open source community to develop some type of open font format. Perhaps a font could be expressed as an XML file, and it could then be processed to create different types of fonts, such as PS or TT. Or perhaps I am way off here. I noticed that the Verdana font was released under the open source liscense: web address: http://www.gnome.org/fonts/ But the company released it an a true-type form, which seems to come with some liscensing restrictions. The inventor of the text processor TeX created some very nice fonts--but these are in a format that FOP can't use. So it seems like we need some type of open foundry. I don't think such a foundry will pop up anytime soon. The artist types who would be best suited for creating fonts are probably not inclined towards computers. Paul -- *Paul Tremblay * [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Size Issue
On 2 Jun 2004 at 14:51, Chris Bowditch wrote: One possible cause is that you havent specified width and height attributes on the external-graphic tag. If you dont specify the width and height, FOP assumes 72dpi and if you have a high res graphic being rendered at 72dpi the result is the dimensions are bigger than a page and the image will be dropped. Do you see any warnings at the console when you run from the command line? Chris very true i didn't specify width and height because the images that are being attached to the pdf have variable dimensions. hmm so that's the behaviour of FOP. i actually tried changing the page size to 40x40inches and still the image did not display... as with regards to the command line warnings... i don't see them if there are any coz i just access the xml file via browser say i resulted to 1234.xml file i access it via http://FQDN:8080/cocoon/xmlfiles/1234.pdf hope this information could further give enlightenment to this case... any other suggestions? all the best!!! pal, benjohn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
extra page between cover and chapter with docbook
Hi and sorry for posting a question that is likely asked numerous times but i couldn't find it on the FAQ. I'm using the docbook stylesheets and after using FOP to render the fop I see my title on one page, the copyright info on the very top of the second page and the third page is blank. Any idea what I can do to just render the title and copyright on the same page and have the TOC start on page? This is my docbook below: book titleMy Guide/title bookinfo copyright year2003, 2004/year holderMy Project/holder /copyright /bookinfo chapter id=intro .. / Thanks very much, Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [docbook-apps] extra page between cover and chapter with docbook
Hi Bob, Thanks-- that worked just fine to get rid of the balnk page. However, I still see the title and copyright on separate pages when I want them both on the same cover page. I've been browsing your great document and I confess it seems a little daunting. I've tried the following: Copying docbook-xsl-1.65.1/fo/titlepage.templates.xml to my titlepage.xml running xslt as suggested to create my xsl: xsltproc -output titlepage.xsl docbook-xsl-1.65.1/template/titlepage.xsl titlepage.xml and then including it in my customization file: xsl:include href=titlepage.xsl/ Now I get: [xslt] : Fatal Error! java.lang.RuntimeException: ElemTemplateElement error: Found more than one template named: book.titlepage.separator Cause: java.lang.RuntimeException: ElemTemplateElement error: Found more than one template named: book.titlepage.separator Thanks, Jason Bob Stayton wrote: There is a workaround for this FOP problem in this message: http://lists.oasis-open.org/archives/docbook/200210/msg00122.html Bob Stayton Sagehill Enterprises DocBook Consulting [EMAIL PROTECTED] - Original Message - From: Jason Novotny [EMAIL PROTECTED] To: [EMAIL PROTECTED]; docbook-apps@lists.oasis-open.org Sent: Thursday, June 03, 2004 1:27 AM Subject: [docbook-apps] extra page between cover and chapter with docbook Hi and sorry for posting a question that is likely asked numerous times but i couldn't find it on the FAQ. I'm using the docbook stylesheets and after using FOP to render the fop I see my title on one page, the copyright info on the very top of the second page and the third page is blank. Any idea what I can do to just render the title and copyright on the same page and have the TOC start on page? This is my docbook below: book titleMy Guide/title bookinfo copyright year2003, 2004/year holderMy Project/holder /copyright /bookinfo chapter id=intro .. / Thanks very much, Jason To unsubscribe from this list, send a post to [EMAIL PROTECTED], or visit http://www.oasis-open.org/mlmanage/. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Read Only PDF
Hi users! Is it possible to generate a read only PDF with Cocoon so that it can't be modified later with any other pdf tool ? thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can i do to print directly in a embedded FOP application?
Hi, I've an application which uses JPanel, and I embedded FOP to have the possibility to print information contained in a frame. I followed the code provided in your example called ExampleObj2PDF.java, and I manage to transform informations in a PDF file. But in the beggining, i'd like to print these information directly, without generating a PDF file. The problem is if I specify Driver.RENDER_PRINT when I set the renderer of the Driver ( by this command : driver.setRenderer(Driver.RENDER_PRINT); ), then I obtain an error indicating : IllegalArgumentException : Use renderer form of setRenderer() for PRINT which is normal in according to the class Driver. But if I use the method setRenderer(Renderer renderer), I can't put a PrintRenderer like parameter (abstract class)... Can you help me please, telling me how can I do to specify that I want a printed output? Thanks. Rudy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Size Issue
On Jun 2, 2004, at 6:42 PM, Benjohn P. Villedo wrote: On 2 Jun 2004 at 14:51, Chris Bowditch wrote: One possible cause is that you havent specified width and height attributes on the external-graphic tag. If you dont specify the width and height, FOP assumes 72dpi and if you have a high res graphic being rendered at 72dpi the result is the dimensions are bigger than a page and the image will be dropped. Do you see any warnings at the console when you run from the command line? Chris very true i didn't specify width and height because the images that are being attached to the pdf have variable dimensions. hmm so that's the behaviour of FOP. i actually tried changing the page size to 40x40inches and still the image did not display... as with regards to the command line warnings... i don't see them if there are any coz i just access the xml file via browser say i resulted to 1234.xml file i access it via http://FQDN:8080/cocoon/xmlfiles/1234.pdf hope this information could further give enlightenment to this case... any other suggestions? all the best!!! pal, benjohn This link has some good information about Graphics Resolution: http://xml.apache.org/fop/graphics.html#resolution In partciular, it indicates that if you specify a single dimension, it will proprotionately scale the image to fit. Thus, you could specify a maximum width (or height) and it would scale to that size. You just need to be sure the corresponding image dimension doesn't put the image off the page. Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems by printing a PDF
Jan, On Jun 2, 2004, at 10:25 PM, Jan Zmitko wrote: Hello Clay, I´ve don´t find an answer in the FAQ. Do you mean a specific acticle? Jan Sorry I should've provided a link to issue 7b: http://xml.apache.org/fop/faq.html#iex-pdf-print-from-browser Hope this helps! If not, please post back! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i do to print directly in a embedded FOP application?
Send reply to: [EMAIL PROTECTED] Date sent: Thu, 03 Jun 2004 14:42:37 +0200 From: Rudy RENTSCH [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:How can i do to print directly in a embedded FOP application? Hi, I've an application which uses JPanel, and I embedded FOP to have the possibility to print information contained in a frame. I followed the code provided in your example called ExampleObj2PDF.java, and I manage to transform informations in a PDF file. But in the beggining, i'd like to print these information directly, without generating a PDF file. The problem is if I specify Driver.RENDER_PRINT when I set the renderer of the Driver ( by this command : driver.setRenderer(Driver.RENDER_PRINT); ), then I obtain an error indicating : IllegalArgumentException : Use renderer form of setRenderer() for PRINT which is normal in according to the class Driver. But if I use the method setRenderer(Renderer renderer), I can't put a PrintRenderer like parameter (abstract class)... Can you help me please, telling me how can I do to specify that I want a printed output? Thanks. Rudy Hi, with this function 'use_fop_prt' i can print directly to my standardprinter, but sometimes the result look a bit different to a generated PDF-file. The 'fileSource' is the fo-file that was produced frpm the xml and xls-File a step before. private void use_fop_prt(String fileSrc) throws FileNotFoundException, IOException, FOPException { File source; PrinterJob pj; int copies; AWTRenderer renderer; File UserConfigFile = new File(fop/conf/userconfig.xml); Options op = new Options(UserConfigFile); source = new File (fileSrc); pj = PrinterJob.getPrinterJob(); copies = 1; renderer = new AWTRenderer(pj); pj.setCopies(copies); Configuration.put(baseDir, new File(source.getAbsolutePath()).getParentFile().toURL().toExternalForm()); Driver driver = new Driver(new InputSource(fileSrc), null); Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); MessageHandler.setScreenLogger(logger); driver.setLogger(logger); driver.setRenderer(renderer); driver.run(); } Hope this helps a bit Ralf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i do to print directly in a embedded FOP application?
Send reply to: [EMAIL PROTECTED] Date sent: Thu, 03 Jun 2004 14:42:37 +0200 From: Rudy RENTSCH [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:How can i do to print directly in a embedded FOP application? Hi, I've an application which uses JPanel, and I embedded FOP to have the possibility to print information contained in a frame. I followed the code provided in your example called ExampleObj2PDF.java, and I manage to transform informations in a PDF file. But in the beggining, i'd like to print these information directly, without generating a PDF file. The problem is if I specify Driver.RENDER_PRINT when I set the renderer of the Driver ( by this command : driver.setRenderer(Driver.RENDER_PRINT); ), then I obtain an error indicating : IllegalArgumentException : Use renderer form of setRenderer() for PRINT which is normal in according to the class Driver. But if I use the method setRenderer(Renderer renderer), I can't put a PrintRenderer like parameter (abstract class)... Can you help me please, telling me how can I do to specify that I want a printed output? Thanks. Rudy Hi, with this function 'use_fop_prt' i can print directly to my standardprinter, but sometimes the result look a bit different to a generated PDF-file. The 'fileSource' is the fo-file that was produced frpm the xml and xls-File a step before. private void use_fop_prt(String fileSrc) throws FileNotFoundException, IOException, FOPException { File source; PrinterJob pj; int copies; AWTRenderer renderer; File UserConfigFile = new File(fop/conf/userconfig.xml); Options op = new Options(UserConfigFile); source = new File (fileSrc); pj = PrinterJob.getPrinterJob(); copies = 1; renderer = new AWTRenderer(pj); pj.setCopies(copies); Configuration.put(baseDir, new File(source.getAbsolutePath()).getParentFile().toURL().toExternalForm()); Driver driver = new Driver(new InputSource(fileSrc), null); Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); MessageHandler.setScreenLogger(logger); driver.setLogger(logger); driver.setRenderer(renderer); driver.run(); } Hope this helps a bit Ralf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF Encryption not available warning
Abhijit Junnare wrote: I am running FOP version 0.20.5 using command line to generate PDF. When I use the -nocopy option I get a warning saying PDF encryption not available. I believe that PDF encryption is supported for version starting from 0.20.5. Please let me know if I am missing anything. There are several options that require PDF Encryption, -nocopy is one of them. You have to setup a few things to get PDF encryption working. How to setup PDF encryption is described on the website: http://xml.apache.org/fop/pdfencryption.html#Environment Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Read Only PDF
Martín Mauri wrote: Hi users! Is it possible to generate a read only PDF with Cocoon so that it can't be modified later with any other pdf tool ? Yes, you can configure PDF encryption in FOP, and then use the option: allowEditContent=FALSE I havent used cocoon, so I dont know how to configure FOP in the cocoon environment. Details on how to setup PDF Encryption in standalone FOP environments are on the web site: http://xml.apache.org/fop/pdfencryption.html Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: extra page between cover and chapter with docbook
Jason Novotny wrote: Hi and sorry for posting a question that is likely asked numerous times but i couldn't find it on the FAQ. I'm using the docbook stylesheets and after using FOP to render the fop I see my title on one page, the copyright info on the very top of the second page and the third page is blank. Any idea what I can do to just render the title and copyright on the same page and have the TOC start on page? This is my docbook below: I dont know docbook, but can you check that your problem is not caused by the start of a new page sequence? The default value for property force-page-count=auto on page-sequence elements can cause this effect. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing Link in PDF
Hi, I have the following problem with FOP and its PDF renderer. Consider this code snippet from my XSL-stylesheet: fo:block fo:basic-link internal-destination=[EMAIL PROTECTED] fo:page-number-citation ref-id=[EMAIL PROTECTED]/ /fo:basic-link /fo:block This will be rendered without error, but there is no hyperlink on the page number inside the PDF File! Adding some text before the page number calculation will produce a hyperlink on the text (but still not on the page number). This proofs, that the stylesheet and the references are correct. - BUG IN FOP Is there a workaround for this issue? Any comments are welcome! Klaus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dimension math, i.e. width={$x+10}
I need to layout some blocks and SVG'susing dimensions based on input values. I can easily use theoriginal input values, i.e. width="{$x}", but I also need to do some calculations. For instance, if I want a box around my SVG, I need to either draw it in the SVG at 1px smaller or use a block-container at 1px larger. I've tried some examples I've found online (like width="{$x+10}" ), but FOP doesn't like it. What is the correct syntax for doing this type of thing? Thanks, Mike Do you Yahoo!?Friends. Fun. Try the all-new Yahoo! Messenger
Re: Dimension math, i.e. width={$x+10}
On Jun 3, 2004, at 7:37 AM, Mike Kellstrand wrote: I need to layout some blocks and SVG's using dimensions based on input values. I can easily use the original input values, i.e. width={$x}, but I also need to do some calculations. For instance, if I want a box around my SVG, I need to either draw it in the SVG at 1px smaller or use a block-container at 1px larger. I've tried some examples I've found online (like width={$x+10} ), but FOP doesn't like it. What is the correct syntax for doing this type of thing? Thanks, Mike I *think* the problem is that $x probably is equivalent to '1px' which is a string of the characters '1'+'p'+'x' and there may be difficulties with adding a number to a string. There is a recent discussion on this in the archives, where someone provided some insight into how I was not completely correct on that assumption with one aspect of XSL-FO (I don't recall exactly which at the moment) however, that discussion may not be appropriate for SVG calculation (I don't know). What should be possible, is for you to modify your system to strip the 'px' for the purposes of the calculation with something like: width={concat(substring($x,length()-2)+10,'px')} I *hope* that'll do the trick, but you should see where I'm trying to go with it... Hope this helps! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dimension math, i.e. width={$x+10}
Clay, Thanks a lot, that did the trick for me. Not to nit-pick, but for posterity, the syntax I ended up with is: width="{concat(substring($width,1,string-length($width)-2)+10,'px')}" If anyone else wants to chime it with any of the subtler details of this stuff, feel free to educate me further. Thanks Clay, Mike Clay Leeds [EMAIL PROTECTED] wrote: On Jun 3, 2004, at 7:37 AM, Mike Kellstrand wrote: I need to layout some blocks and SVG'susing dimensions based on input values. I can easily use theoriginal input values, i.e. width="{$x}", but I also need to do some calculations. For instance, if I want a box around my SVG, I need to either draw it in the SVG at 1px smaller or use a block-container at 1px larger. I've tried some examples I've found online (like width="{$x+10}" ), but FOP doesn't like it. What is the correct syntax for doing this type of thing? Thanks, MikeI *think* the problem is that $x probably is equivalent to '1px' which is a string of the characters '1'+'p'+'x' and there may be difficulties with adding a number to a string. There is a recent discussion on this in the archives, where someone provided some insight into how I was not completely correct on that assumption with one aspect of XSL-FO (I don't recall exactly which at the moment) however, that discussion may not be appropriate for SVG calculation (I don't know).What should be possible, is for you to modify your system to strip the 'px' for the purposes of the calculation with something like:width="{concat(substring($x,length()-2)+10,'px')}"I *hope* that'll do the trick, but you should see where I'm trying to go with it...Hope this helps!Web Maestro Clay-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!?Friends. Fun. Try the all-new Yahoo! Messenger
RE: PDF Encryption not available warning
-Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] Hi Abhi, I am running FOP version 0.20.5 using command line to generate PDF. When I use the -nocopy option I get a warning saying PDF encryption not available. I believe that PDF encryption is supported for version starting from 0.20.5. Please let me know if I am missing anything. You're right in saying that PDF Encryption is available starting from version 0.20.5, however, there are a few things to take into account: - if you're running on a JVM less than 1.4.X, you need the Java Cryptography Extension as a separate download -?PDF Encryption as described in Adobe's PDF Spec, requires RC4 encryption, and this is not available by default in the JCE, so you need to download a provider that offers RC4 for more info, see also: http://xml.apache.org/fop/pdfencryption.html#Environment If you need any more guidance, just give us a yell... HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to download high-quality fonts
Paul Tremblay wrote: So what exactly is a font? I thought a font was more like a data file. Well, a program is a data file, interpreted by the processor. You know, there's always a level where the distinction between programs and data is blurry. In terms of copyright, the distinction doesn't matter all that much anyway. I thought the rendering of the font was done by the program. Also, what exactly is hinting? Is that not some technique to make a font look better? It is a technique which makes scaled down glyphs look better. Remember, TrueType fonts are used to generate glyph bitmaps for arbitrary glyph sizes. Hints are used to change the glyph locally to minimize artifacts caused by mapping the shape to pixels. For example take the upper case letter T. If the stroke thickness gets down to the range of a single pixel, the joint of the two lines of the T might start looking more black and somewhat like a knot. A hint causes the renderer to lighten the zone up. If a font is a set of data (as opposed to a program), it seems in the interest of the open source community to develop some type of open font format. Why? The TTF and OTF formats are already open. The problem are the software patents related to the bytecode interpreter which requires font *rendering programs* to ask for a license. See also http://www.freetype.org/patents.html [snip search for free fonts] Ghostscript and KDE come with completely free fonts, and I've seen TTF conversion for them. I'm just too lazy right know to search through their distributions for the actual font names and fedd this into Google. I als vaguely remember that the Lucid TTF included in Sun's JDK (perhaps Linux only) doesn't have license restrictions. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i do to print directly in a embedded FOP application?
Ralf Butterweck wrote: with this function 'use_fop_prt' i can print directly to my standardprinter, but sometimes the result look a bit different to a generated PDF-file. The printer renderer is based on AWT and uses possibly different font metrics than the PDF renderer. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing Link in PDF
Klaus Imfeld wrote: fo:basic-link internal-destination=[EMAIL PROTECTED] fo:page-number-citation ref-id=[EMAIL PROTECTED]/ /fo:basic-link ... This will be rendered without error, but there is no hyperlink on the page number inside the PDF File! Yes, that's a known bug: page number citations as well as a few other inline FOs don't create link areas. There is no known work around. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dimension math, i.e. width={$x+10}
-Original Message- From: Mike Kellstrand [mailto:[EMAIL PROTECTED] Hi, Not to nit-pick, but for posterity, the syntax I ended up with is: width={concat(substring($width,1,string-length($width)-2)+10,'px')} If anyone else wants to chime it with any of the subtler details of this stuff, feel free to educate me further. Well, Clay was right (and IIC, I'm the one who corrected Clay in the thread he remembered) and the problem is actually that it's Xalan (or any other XSLT processor for that matter) that can't add numbers to strings... You may want try: width={concat($width,'+10px')} In this way, the value of the width property that FOP gets to see is, for example: width=1px+10px in which case FOP should have no problem with it. Right now you're trimming the measurement units and have Xalan do the calculation, and FOP gets to see for example: width=11px which comes down to the same thing, of course, but wouldn't be usable if the '10px' were to be an expression in itself rather than a literal value. HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PDF Encryption not available warning
Thanks much for the help. I will try to set up the enviornment. Regards, Abhi --- Andreas L. Delmelle [EMAIL PROTECTED] wrote: -Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] Hi Abhi, I am running FOP version 0.20.5 using command line to generate PDF. When I use the -nocopy option I get a warning saying PDF encryption not available. I believe that PDF encryption is supported for version starting from 0.20.5. Please let me know if I am missing anything. You're right in saying that PDF Encryption is available starting from version 0.20.5, however, there are a few things to take into account: - if you're running on a JVM less than 1.4.X, you need the Java Cryptography Extension as a separate download -?PDF Encryption as described in Adobe's PDF Spec, requires RC4 encryption, and this is not available by default in the JCE, so you need to download a provider that offers RC4 for more info, see also: http://xml.apache.org/fop/pdfencryption.html#Environment If you need any more guidance, just give us a yell... HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Text disappearing in the PDF generated from a FO
Hello All, I am generating PDF from XML using XSLT. When I generate a PDF some portion of the XML is not being printed. Actually I see blank space in that portion of the PDF. This is happening at the end of the first page. I do not have any keep togethers so if the block doesnot fit on the first page then it should break and continue on the next page. If I reduce the margins on the page so that the whole content fits on page 1 then all the content appears properly. I generated the FO and PDF from that FO with same results. I see the text in my FO but not on the PDF. Could this be some kind of a bug? Below is the FO part that has a problem fo:block start-indent=from-parent(start-indent) + 12pt color=black space-before=5pt space-before.conditionality=discard fo:inline font-weight=bold font-style=italic font-family=Helvetica text-align=left color=black fo:inlineTITLE/fo:inline : /fo:inline fo:block start-indent=from-parent(start-indent) + 12pt color=black space-before=0pt space-before.conditionality=discard fo:block color=black space-before=5pt space-before.conditionality=discard fo:inline fo:block font-weight=bold font-family=Helvetica space-before=0pt fo:inline fo:inlineNAME/fo:inline /fo:inline /fo:block fo:block color=black space-before=2pt space-before.conditionality=discard ADDRESS LINE 1 part1 fo:inline fo:inline fo:inlinepart2/fo:inline /fo:inline /fo:inline /fo:block fo:inline color=black space-before=0pt space-before.conditionality=discard fo:block space-before=2pt fo:inline fo:inline fo:inlineAddress line 2/fo:inline /fo:inline /fo:inline /fo:block /fo:inline fo:inline color=black space-before=0pt space-before.conditionality=discard fo:inline fo:inline fo:inlinecity/fo:inline /fo:inline , /fo:inline fo:inline fo:inline fo:inlinestate/fo:inline /fo:inline /fo:inline fo:inline fo:inline fo:inlineZIP/fo:inline /fo:inline /fo:inline /fo:inline fo:block color=black space-before=2pt space-before.conditionality=discard / /fo:inline /fo:block /fo:block /fo:block /fo:block What I expect is Title NAME Address Line 1rt1 part2 Adress line 2 city, state, ZIP However, what I get is Title city, state, ZIP. The Title prints about an inch from the bottom of the first pagemargin. Then there is one inch blank space and then the footer for first page. The city state and ZIP prints on the second page. Thanks for the help. Regards, Abhi __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PDF Encryption not available warning
-Original Message- From: Abhijit Junnare [mailto:[EMAIL PROTECTED] Thanks much for the help. I will try to set up the enviornment. OK, just don't forget: you have to download the sources and recompile FOP to get it to support encryption. Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dimension math, i.e. width={$x+10}
Hi, A very interesting discussion. I tried the latest suggestion: height="{concat($height,'+10px')}" and got an error: [ERROR] svg graphic could not be built: null:-1The attribute 'height' of the element rect is invalidorg.apache.batik.bridge.BridgeException: null:-1The attribute 'height' of the element rect is invalid I guess it doesn't want to add numbers with units Thanks, Mike "Andreas L. Delmelle" [EMAIL PROTECTED] wrote: -Original Message- From: Mike Kellstrand [mailto:[EMAIL PROTECTED]Hi, Not to nit-pick, but for posterity, the syntax I ended up with is: width="{concat(substring($width,1,string-length($width)-2)+10,'px')}" If anyone else wants to chime it with any of the subtler details of thisstuff, feel free to educate me further.Well, Clay was right (and IIC, I'm the one who corrected Clay in the threadhe remembered) and the problem is actually that it's Xalan (or any otherXSLT processor for that matter) that can't add numbers to strings...You may want try:width="{concat($width,'+10px')}"In this way, the value of the width property that FOP gets to see is, forexample:width="1px+10px"in which case FOP should have no problem with it. Right now you're trimmingthe measurement units and have Xalan do the calculation, and FOP gets to seefor example:width="11px"which comes down to the same thing, of course, but wouldn't be usable if the'10px' were to be an _expression_ in itself rather than a literal value.HTH!Greetz,Andreas-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!?Friends. Fun. Try the all-new Yahoo! Messenger
RE: Dimension math, i.e. width={$x+10}
-Original Message- From: Mike Kellstrand [mailto:[EMAIL PROTECTED] Hi Mike, A very interesting discussion. I tried the latest suggestion: height={concat($height,'+10px')} and got an error: [ERROR] svg graphic could not be built: null:-1 The attribute 'height' of the element rect is invalid org.apache.batik.bridge.BridgeException: null:-1 The attribute 'height' of the element rect is invalid I guess it doesn't want to add numbers with units Nope. FOP still does, but, since it's defined in an attribute of an embedded SVG rect element, passes the unresolved expression to Batik, which doesn't know what to do with it... Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fop CVS snapshot doesn't build with JDK 1.3
Hi, since fop 0.20.5 has the problem of endlessly creating new pages mentioned in the FAQ, I tried to build the CVS snapshot xml-fop_20040602103615.tar.gz. I have the Sun JDK 1.3.1 and ant 1.6.1. It isn't possible to run a newer JDK. To build I simply run build.sh. My classpath is: /home/krille/jai-1_1_2/lib/jai_codec.jar: /home/krille/jai-1_1_2/lib/jai_core.jar: /home/krille/jai-1_1_2/lib/mlibwrapper_jai.jar: /home/krille/xml-fop/lib/xalan-2.4.1.jar The build instructions said it wouldn't be necessary to set the classpath, but I have added JAI to build with it. The xalan jar seems to be necessary or ant will fail. In the ant output the build gets up to the line: [javac] Compiling 599 source files to /home/krille/xml-fop/build/classes Then loads of error messages in a number of files follow. Since they all follow the same pattern I have only pasted the first three. The full log is available on request. [javac] /home/krille/xml-fop/src/java/org/apache/fop/fo/FOText.java:132: Undefined variable or class name: WhiteSpaceCollapse [javac] if (textInfo.whiteSpaceCollapse == WhiteSpaceCollapse.FALSE [javac]^ [javac] /home/krille/xml-fop/src/java/org/apache/fop/fo/FOText.java:195: Undefined variable or class name: TextTransform [javac] if (textInfo.textTransform == TextTransform.NONE) { [javac] ^ [javac] /home/krille/xml-fop/src/java/org/apache/fop/fo/FOText.java:324: Constant expression required. [javac] case TextTransform.NONE: [javac] ^ How to fix this? It has also happened with some of the previous snapshots. Is it a problem with the code being broken at the moment, or something else? Alternatively I would also be happy with an uptodate binary build. Bye, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]