Re: cvs commit: xml-fop/docs/xml-docs/fop fonts.xml (font embedding)
Sherlane Lam wrote: Besides, Is the output font metric xml file size is proportional to the ttf/ttc file size? A TTC can contain multiple fonts, and onlz one of this fonts is used for generating the metrics file, therefore the TTC file size may be unrelated to the metric file size. The metric file size is roughly proportional to the number of glyphs in a font. The font file size grows with both the number of glyps as well as with the average detail of the glyphs. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cvs commit: xml-fop/docs/xml-docs/fop fonts.xml (font embedding)
After reading Satoshi's comment below: http://marc.theaimsgroup.com/?l=fop-dev&m=101408636328343&w=2 I have amended the code in org.apache.fop.render.pdf.fonts.MultiByteFont accordingly with version 20.5rc3a. Then I can generate a pdf *WITHOUT* embedding font successfully. However, I have a problem that the size of the output pdf file *WITHOUT* embedding font is greater than that of the same pdf *WITH* embedding font. After studying the output pdf file, I found that it may due to it has copied all glyhs "" tag contents from the font metric xml file to the output pdf "/w" tag (I think it is to indicate the width of each glyh). Since my font ttf file contains a lot of Asian fonts, this makes the output pdf file size very large. I want to keep the output pdf *WITHOUT* embedding font as small as possible. Any comment or suggestion? Besides, Is the output font metric xml file size is proportional to the ttf/ttc file size? I have tried to generate two font metric xml files from two different ttf/ttc files. However, the smaller ttc/ttf file generates a larger font metric xml file, any idea? Thanks for your help in advance. SL __ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xml FOP JSP
Hi Raul, I have an application running that does this. However it is integrated and I can't make an easy example form it. This is what I am doing: The XML is generated by a standard Java class, which is called by a JSP. The resulting DOM Node ist then evaluated and saved in the session. The user has to make some choices, based on the contents of the XML Node and this choices are evaluated by another JSP, which handles it together with the Node from the session to a class which generates the PDF. The resulting byte[] (content in the example below) can then be written to the browser with the following: response.setContentType("application/pdf"); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush(); Hope that helped some. Stephan -Original Message- From: manzano [mailto:[EMAIL PROTECTED] Sent: Dienstag, 26. November 2002 11:59 To: [EMAIL PROTECTED] Subject: xml FOP JSP Hello, my name is Raul and I have lots of problems. I try every thing and I cant make it. Any one knows how get a pdf file from a jsp with FOP, and that the xml source is get from another jsp file that is dynamically generated??? Solutions? An example would be wonderful... Help! Raul Universidad de Oviedo Aulanet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xml FOP JSP
Hello, my name is Raul and I have lots of problems. I try every thing and I cant make it. Any one knows how get a pdf file from a jsp with FOP, and that the xml source is get from another jsp file that is dynamically generated??? Solutions? An example would be wonderful….. Help! Raul Universidad de Oviedo Aulanet
Re: XML : FOP
EXT-Reddy, Swathi A wrote: Hi, I am new to XML FOP. I saw your message about "Re: How to avoid using too much memory to create relatively large PDF file". I created an XML file with tags. In my XSL file, I am using the following code to do page breaks - . I have a document that will generate 3000 pages. Is this conversion to PDF is feasible using FOP? Thanks. Swathi Reddy (206)544-8542 [EMAIL PROTECTED] Swathi, That's what you should do if you already exactly know the contents of each page (such as your standard main-frame reports where text fields are truncated and/or the page breaks are pre-calculated when data wraps.) If there is a lot of free-form text and you want FOP to deal with text placement, then producing "sections" of pages that are less than 50 pages should be fine. (Also, you should post your questions to the list rather than sending them directly to me.) Chuck