Infinite loop on pagination
Hi all... I've a problem that fop runs in an infinite loop if a table cell spans over more than one page. F.e.: 1.Cell | 2.Cell A CELL | simply with a | some lot of | text bocks | inside | and| here | is the | page | break | end first page but the| cell | end is | here | There is a for-each loop inside the first cell which will produce a lot of blocks, dependent on the xml-data. If the cell goes to the next page, FOP never comes back (except OutOfMemory) on Formatting. Now I've tried the produced *.fo with another Fo-Formatting Tool (Antenna House) and it renders the pdf correct. Is this a case for Bugzilla??? How to avoid such traps? cu Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Aligning table in center without indenting...
Hi... see: http://xml.apache.org/fop/fo.html#fo-center-table-horizon regards Torsten -Original Message- From: Kodandapani A. [mailto:[EMAIL PROTECTED] Sent: Dienstag, 15. Juli 2003 14:01 To: [EMAIL PROTECTED] Subject: Aligning table in center without indenting... Hi, I want to align table to the center of the page without indenting(giving absolute position of the table with respect to left margin). By default the table is aligning at left side. If i try to create through XML spy, it is creating like fo:table start-indent=((8.5in - 0.6in - 0.6in) - (((8.5in - 0.6in - 0.6in) * 30) div 100) ) div 2 end-indent=((8.5in - 0.6in - 0.6in) - (((8.5in - 0.6in - 0.6in) * 30) div 100) ) div 2 Is there any other way to align table at the center without giving start-indent. Thanks rgds - KP DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] attachment: winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Croatian letters in pdf
hi see: http://xml.apache.org/fop/fo.html#xml-special-chars to add your own font see: http://xml.apache.org/fop/fonts.html#custom (ensure that the font has the needed glyphs (charachters) inside.) All characters (and their addresses) of the PDF Base14 Fonts you can see at: http://xml.apache.org/fop/fo/fonts.fo.pdf cu Torsten -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Dienstag, 15. Juli 2003 14:40 To: [EMAIL PROTECTED] Subject: Croatian letters in pdf Hi, all. i try to put croatian letters in pdf, but i got # in pdf. i heard taht there is some procedure to do that (with some extra files). can you explain me how to do that, or could you send me a link with it. thanks -- Besplatni e-mail - http://webmail.iskon.hr/ - 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: combine 2 or more PDF files
Hi A post-processor like iText / ghostscript can do this for you. see: http://xml.apache.org/fop/resources.html#products-pdf cu Torsten -Original Message- From: Yudhistira Ardhi Nugraha [mailto:[EMAIL PROTECTED] Sent: Montag, 14. Juli 2003 05:00 To: [EMAIL PROTECTED] Subject: combine 2 or more PDF files Importance: High hi all, I have problem to combine 2 or more generated PDF files. first I have 3 diferent XML and XSL that will generate 3 pdf files, and now I want to combine those 3 PDF files in to one PDF file, but i do not know how to do this. regards, Yudhistira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [newbie] Page orientation in fop
Define a ???-page-master with the appropriate width * heigth e.g. for A4 Paper: fo:simple-page-master page-width=297mm page-height=210mm master-name=a4 fo:region-body/ /fo:simple-page-master cu Torsten -Original Message- From: Leonard Wolters [mailto:[EMAIL PROTECTED] Sent: Montag, 14. Juli 2003 11:50 To: [EMAIL PROTECTED] Subject: [newbie] Page orientation in fop Is it possible to change the page orientation from the default 'portrait' to 'landscape' ? If so, how can I achieve this ? If not, what are the possibilities to tackle this problem ? Thanks in advance, Leonard Leonard Wolters Software Developer BackStream(R) Willem de Zwijgerlaan 350-352 1055 RD Amsterdam The Netherlands tel +31 20 386 8365 fax +31 20 386 8948 Post Office Address: Postbus 58385 1040 HJ Amsterdam BackStream: content management - multi-channel distribution www.backstream.com This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. BackStream, its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. BackStream(R) Willem de Zwijgerlaan 350-352 1055 RD Amsterdam The Netherlands tel. +31 20 386 8365 fax +31 20 386 8948 Post Office Address: Postbus 58385 1040 HJ Amsterdam BackStream: The Digital Delivery Company www.backstream.com This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. BackStream, its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] attachment: winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: checkbox
This is the address where the glyph is located in the pdf-fonts 'ZapfDingbats' and has nothing to do with your System Fonts (WingDings...) and the Windows encoding Table. The Character Map can be used for locating characters inside system fonts (like TrueType Font inside your Windows-Font folder). For special Characters inside the PDF Fonts see: http://xml.apache.org/fop/fo.html#xml-special-chars or: http://xml.apache.org/fop/fo/fonts.fo.pdf for characters and its hex value in the Base14 fonts, delivered by the base fop version. cu Torsten -Original Message- From: Todtenhaupt, Susann [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 10. Juli 2003 11:28 To: '[EMAIL PROTECTED]' Subject: AW: checkbox Correct, this view is also possible through the office-programs like word, ppt etc. but can you explain to me, where the value 274F (see further below) results from? -Ursprüngliche Nachricht- Von: Müller, Markus [mailto:[EMAIL PROTECTED] Gesendet: Thursday, July 10, 2003 10:47 AM An: '[EMAIL PROTECTED]' Betreff: AW: checkbox Hi, First, #x means character code in hexadecimal, correct. Second, using Windows' charmap.exe you can browse your fonts. In Wingdings the characters 0x70 and 0x78 show an unchecked / checked checkbox. Markus $ -Ursprüngliche Nachricht- $ Von: Todtenhaupt, Susann $ [mailto:[EMAIL PROTECTED] $ Gesendet: Donnerstag, 10. Juli 2003 10:39 $ An: '[EMAIL PROTECTED]' $ Cc: '[EMAIL PROTECTED]' $ Betreff: AW: checkbox $ $ $ Hello! $ $ I've never before embedded special symbols in fo. Why do you $ write #x? $ Does the x mean hexadecimal? I'm wondering because I've $ tried to find the $ symbol by looking for a symbol from ZapfDingbats with 274F $ (hex) in my $ window-system, but couldn't find it. Can you give more $ support, please? :-) $ thanx in advance!! $ $ suse $ $ -Ursprüngliche Nachricht- $ Von: Torsten Erler [mailto:[EMAIL PROTECTED] $ Gesendet: Tuesday, July 08, 2003 9:42 AM $ An: [EMAIL PROTECTED] $ Betreff: RE: checkbox $ $ Hi, $ $ either you use the (unchecked) checkbox from ZapfDingbats Font $ $ fo:inline font-family=ZapfDingbats $ font-size=10pt#x274F;/fo:inline $ $ or draw it by yourself (svg requires batik.jar) like that: $ $ !-- checked checkbox (50% scaled down) -- $ fo:instream-foreign-object width=11pt height=11pt $ svg:svg width=22 height=22 xml:space=preserve $ svg:g transform=scale(.5) style=fill:none; stroke:black; $ stroke-width:2 $ svg:rect x=0 y=2 fill=black width=20 height=20 $ stroke-width=1/ $ svg:rect x=2 y=0 fill=white width=20 height=20 $ stroke-width=1/ $ svg:line x1=6 y1=10 x2=12 y2=17/ $ svg:line x1=12 y1=17 x2=20 y2=3/ $ /svg:g $ /svg:svg $ /fo:instream-foreign-object $ $ cu Torsten $ $ -Original Message- $ From: Todtenhaupt, Susann $ [mailto:[EMAIL PROTECTED] $ Sent: Dienstag, 8. Juli 2003 08:39 $ To: '[EMAIL PROTECTED]' $ Subject: checkbox $ $ $ Hi @ all! $ $ How is it possible to create with xsl:fo checkboxes in a pdf-file? $ $ Thanx in advance! $ $ $ $ - $ 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] $ $ - $ 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] - 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: checkbox
Hi, either you use the (unchecked) checkbox from ZapfDingbats Font fo:inline font-family=ZapfDingbats font-size=10pt#x274F;/fo:inline or draw it by yourself (svg requires batik.jar) like that: !-- checked checkbox (50% scaled down) -- fo:instream-foreign-object width=11pt height=11pt svg:svg width=22 height=22 xml:space=preserve svg:g transform=scale(.5) style=fill:none; stroke:black; stroke-width:2 svg:rect x=0 y=2 fill=black width=20 height=20 stroke-width=1/ svg:rect x=2 y=0 fill=white width=20 height=20 stroke-width=1/ svg:line x1=6 y1=10 x2=12 y2=17/ svg:line x1=12 y1=17 x2=20 y2=3/ /svg:g /svg:svg /fo:instream-foreign-object cu Torsten -Original Message- From: Todtenhaupt, Susann [mailto:[EMAIL PROTECTED] Sent: Dienstag, 8. Juli 2003 08:39 To: '[EMAIL PROTECTED]' Subject: checkbox Hi @ all! How is it possible to create with xsl:fo checkboxes in a pdf-file? Thanx in advance! - 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: line break at long string - overlap the following table cell
Turn on hyphanation in your stylesheet like below: fo:table table-layout=fixed inline-progression-dimension.optimum=100% hyphenate=true language=en hyphenation-push-character-count=2 hyphenation-remain-character-count=2 cu Torsten -Original Message- From: Zmitko, Jan [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 25. Juni 2003 13:36 To: [EMAIL PROTECTED] Subject: line break at long string - overlap the following table cell Hello, I´ve an table with with 7 seven columns. In one column are sometimes very long strings. If there is a space betwenn the words, the line-break works well. But if there is an String that have no spaces and is longer as the width of the column (cell) so these string goes to the next cell. Is there a possibility to force an linebreak at the last position of the column. Thanks Jan Zmitko - 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: checkbox in pdf
Hi AFAIK neither Helvetica nor the other fonts youv'e tried out, contain this glyph so U've to use a font which has this character at this address. Unfortunality I cant help you which font has it but I think another solution would be to create a simple graphic (box.gif) which can be scaled to your requested font size and use it with fo:external-graphic tag. hope it helps -Original Message- From: Zmitko, Jan [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 18. Juni 2003 12:59 To: [EMAIL PROTECTED] Subject: checkbox in pdf Hello, I´ve read in FAQ about embeding special characters. I have to implement some checkboxes. I´ve tried the following code: fo:block fo:inline font-family=Helvetica#x2612;/fo:inline fo:inline font-family=ITC Zapf Dingbats#x2612;/fo:inline fo:inline font-family=Symbol#x2612;/fo:inline /fo:block But in all cases I see #. Can anybody help me? Thank a lot, Jan Zmitko - 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: checkbox in pdf
I thought do you need SOME checkboxes but afaik Zapf contains only the unchecked one (with different dropping shadow). To use external graphic shouldn't be a perfomance problem I think (the glyph must also been read from the font file!). For best quality you can use SVG to draw the boxes your'e need. e.g. a checked one: fo:instream-foreign-object svg:svg width=25 height=25 xml:space=preserve svg:g style=fill:none; stroke:black; stroke-width:2 svg:rect x=0 y=0 width=20 height=20/ svg:line x1=4 y1=10 x2=10 y2=17/ svg:line x1=10 y1=17 x2=17 y2=3/ /svg:g /svg:svg /fo:instream-foreign-object On the first look it will be a few more code in your template against only '#x274F;'. But at the end, SVG does basically the same as the font. It describes how to draw the character. Store it in a seperate file and refer it via external-graphic or insert it directly into your template. Draw your own checkboxes as you need it and U're without any handicap from font-side. gReetZ Torsten -Original Message- From: Zmitko, Jan [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 18. Juni 2003 13:57 To: '[EMAIL PROTECTED]' Subject: AW: checkbox in pdf thanks, this is that i need. I´ve tried it with image, but i need some checkboxes and i think it´s not so perfermant and so i´ll choose the way with unicode. Have a nice day, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multipage postscript files
Hi all, I've tried to insert a multipage postscript document into a pdf-document(via external-graphic) but the result looks not as expected (only one side was rendered and the different pages are overdrawing each to the other). I'm afraid that the feature isn't implemented now. Is it in maintenance, planned or has anyone already started working on this issue??? If all is no, has anyone a pointer where (and how) to patch this up. ThanX Torsten
RE: multipage postscript files
Hi Jeremias... I use FOP among other things to create customer proofs for advertisements sold by our system. Now we've to implement selling of double-sided display ads (yellow pages etc...). The Advertisements are stored in postscript format (also the multipage ads). Now the proof now genereated by a stylesheet which consumes all related contract data (customer-data, publication-data and last but not least the URL's of all generated ad's). This ads will be inserted by fo:external-grahic tag. After creating the PDF File the result will be redistilled by ghostscript to make the postscript content visible also in Acrobat Reader for (EMail and FAX Proofing). The original result can be printed on postscript printer (to avoid loss of quality) for sending Proofs to cusotmers by snail mail. If I insert a multipage postscript file it sems to be the Renderer reservs only the space defined in the 'BoundingBox' DSC Comment for the whole document. But each %%page: and %%PageBoundingBox: is ignored respectively drawed into the boundingbox of the whole document. Do you know any soluition for that? Any help would be appreciated!! cu Torsten -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Dienstag, 17. Juni 2003 13:05 To: [EMAIL PROTECTED] Subject: Re: multipage postscript files That's really a new use case, you know. And external-graphic is not really suited to do that at all. Please tell us what exactly you need to do. Are you trying to do some kind of PS2PDF/Distiller thing? Do you want to append a few pages from a PostScript file to a PDF you're generating with FOP? I may be able to give you a few hints. On 17.06.2003 13:00:27 Torsten Erler wrote: I've tried to insert a multipage postscript document into a pdf-document (via external-graphic) but the result looks not as expected (only one side was rendered and the different pages are overdrawing each to the other). I'm afraid that the feature isn't implemented now. Is it in maintenance, planned or has anyone already started working on this issue??? If all is no, has anyone a pointer where (and how) to patch this up. 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: multipage postscript files
The last one sounds good... Any other Idea (don't know whether it works): I've tried to distill the postscript file by GhostScript and the result looks good. It creates a pdf site for each postcript page. Can I append/insert the created pdf into the original one, created by FOP? cu and ThanX Torsten The other idea is to write a little Java class that parses the PostScript file, and splits it in three parts: header, pages and trailer. The header and trailer you store in memory and for each page you create a new PS file with the header the page x and the trailer, so you get a PS file for every page in the original file: myfile.ps -- myfile1.ps, myfile2.ps, myfile3.ps. Then you can use external-graphic to place every page on the PDF. Parsing the PS should be real simple if they are in ASCII-mode since you simply have to look for the DSC comments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multipage postscript files
Ok Thanx Jeremias, U'r suggestions were very helpful for me. cu Torsten -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Dienstag, 17. Juni 2003 13:54 To: [EMAIL PROTECTED] Subject: Re: multipage postscript files On 17.06.2003 13:47:58 Torsten Erler wrote: The last one sounds good... Any other Idea (don't know whether it works): I've tried to distill the postscript file by GhostScript and the result looks good. It creates a pdf site for each postcript page. Can I append/insert the created pdf into the original one, created by FOP? Yep. A PDF postprocessor like iText can do that. See here: http://xml.apache.org/fop/resources.html#products-pdf That functionality is on the todo list for FOP's PDF library, too, but I guess it'll take a while until someone implements it. 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: multipage postscript files
Really good and simple pointer (I haven't tried it with multiple input for pdfwriter!) ThanX it works ;) -Original Message- From: Leonid Kleiner [mailto:[EMAIL PROTECTED] Sent: Dienstag, 17. Juni 2003 15:18 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: multipage postscript files Using Ghostscript you can merge 2 or more pdf files. - Original Message - From: Torsten Erler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 2:05 PM Subject: RE: multipage postscript files Ok Thanx Jeremias, U'r suggestions were very helpful for me. cu Torsten -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Dienstag, 17. Juni 2003 13:54 To: [EMAIL PROTECTED] Subject: Re: multipage postscript files On 17.06.2003 13:47:58 Torsten Erler wrote: The last one sounds good... Any other Idea (don't know whether it works): I've tried to distill the postscript file by GhostScript and the result looks good. It creates a pdf site for each postcript page. Can I append/insert the created pdf into the original one, created by FOP? Yep. A PDF postprocessor like iText can do that. See here: http://xml.apache.org/fop/resources.html#products-pdf That functionality is on the todo list for FOP's PDF library, too, but I guess it'll take a while until someone implements it. 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] - 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: Pls help: Showing images of their own size
Hi Zahidul ... I've adapted your xsl code snip with a few surrounding necessary tags to reproduce it and behold there are the images in both cases !!! I don't know exactly what's missing in your stylesheet, but it works without fixed image sizes (as a said yesterday) I swear ;) Find the working template attached cu Torsten ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0 xsl:template match=images fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master page-width=600pt page-height=800pt margin-bottom=15pt margin-top=15pt margin-left=15pt margin-right=15pt fo:region-body/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence fo:flow fo:table table-layout=fixed inline-progression-dimension.optimum=100% fo:table-column column-width=105px/ fo:table-column column-width=105px/ fo:table-column column-width=105px/ fo:table-column column-width=105px/ fo:table-column column-width=105px/ fo:table-body fo:table-row xsl:for-each select=child::image fo:table-cell fo:table fo:table-column/ fo:table-body fo:table-row fo:table-cell height=100px width=100px border-style=solid border-width=0px keep-together.within-column=always hyphenate=true fo:external-graphic src={child::url}/ !-- But here if i include fo:external-graphic src={child::url} content-height=100px content-width=100px height=100px width=100px/ then it works fine . But i dont want to fix the size of images-- /fo:table-cell /fo:table-row fo:table-row fo:table-cell keep-together.within-column=always hyphenate=true border-width=0px fo:block padding-top=2pt text-align=center font-size=8pt xsl:value-of select=child::imagename/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:table-cell /xsl:for-each /fo:table-row /fo:table-body /fo:table /fo:flow /fo:page-sequence /fo:root /xsl:template /xsl:stylesheet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP locks output file under WinXP
Hi Nicolas hmm... you've forgot to flushing and closing the OutputStream! and you have to do it in a finally clause if you want it to be reliable. I've also to bleat ;) Remove 'Thread.sleep(2)', if your'e waiting for the execution do that: * //close the Stream before calling this!!! Process p = Runtime.getRuntime().exec(cmd); p.waitFor(); * cu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP format is different between DPF and printed output
PrintRenderer uses the Result of AWTRenderer... see: http://xml.apache.org/fop/output.html#general citation start General Information Fonts Most FOP renderers use a FOP-specific system for font registration. However, the AWT and print renderers use the java awt package, which gets its font information from the operating system registration. This can result in several differences, including actually using different fonts, and having different font metrics for the same font. The net effect is that the layout of a given FO document can be quite different between renderers that do not use the same font information... citation finish Either U can Use Acrobat Reader for Printing the created PDF directly or U've to live with this differences ;( cu Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pls help: Showing images of their own size
I don't understand the problem. AFAIK 'content-width'/'content-height' isn't imlemented but 'width'/'height' isn't required to show an image! FOP tries to render the image in its original size except it overflows your imageable area. In this case the image will be scaled down to fit at least one whole page. copy and paste the sample and insert your URL -- it must work!!! fo:table table-layout=fixed inline-progression-dimension.optimum=100% fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row fo:table-cell fo:block text-align=end fo:external-graphic src=YOUR_URL_HERE/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table cu Torsten -Original Message- From: Zahidul Islam [mailto:[EMAIL PROTECTED] Sent: Montag, 16. Juni 2003 14:28 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Pls help: Showing images of their own size hello i am facing a problem for a long time and asked for help from forum 2 times but unfortunately i didnt get the solution yet. pls help me... in my case i want to show some images in a row. but i dont want to fix the sizes of the images, i mean the images will be shown at their original size.. how can i do that? i can show the images by using fo:external-graphic src=imageurl content-height=100px content-width=100px height=100px width=100px/. but in this case the width and height is made fixed. To show the images if i use fo:external-graphic src=imageurl/ then no image is shown.. pls give me a solution.. Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can I use fo:table-header?
move table header out of the body: fo:table-header fo:table-row fo:table-cell/ fo:table-row /fo:table-header fo:table-body fo:table-row fo:table-cell/ fo:table-row /fo:table-body cu Torsten -Original Message- From: Francisco García [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 5. Juni 2003 10:44 To: [EMAIL PROTECTED] Subject: can I use fo:table-header? Hello. I use fo:table-header in a table, but i get: Error: org.apache.fop.apps.FOPException: Currently only Table Rows are supported in table body, header and footer My code is: fo:table-header fo:table-row fo:table-cell fo:block text-align=center Registro/fo:block /fo:table-cell fo:table-cell fo:block text-align=centerMunicipio/fo:block /fo:table-cell /fo:table-row /fo:table-header I have FOP 0.20.4 Thanks. Francisco. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: line break
Use fo:table-cell white-space-collapse=false xsl:value-of.. cu Torsten -Original Message- From: Francisco García [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 5. Juni 2003 12:44 To: [EMAIL PROTECTED] Subject: line break Hello. I have a xml: ... Name My name is Francisco I live in Madrid /Name . and i use that with FOP: fo:block font-weight=normal text-align=center xsl:value-of select=Name / /fo:block and i get in the Pdf document: My name is Francisco I live In Madrid and I would like to get the next: My name is Francisco I live in Madrid I use FOP 0.20.4 Thank you. Francisco. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Graphic Problem
The Problem is located at FOPImageFactory. The m_urlMap caches the url of the Image to the produced FopImage (it doesn't check for last modified or something else, so you get the same image for the url until the image reference is cleared). Solution: in FOP 0.20.5rc2 you can call FopImageFactory.resetCache() in FOP 0.20.4 you have to implement it by yourself and recompile FOP ;( cu Torsten -Original Message-From: Swee Yueng [mailto:[EMAIL PROTECTED]Sent: Donnerstag, 22. Mai 2003 09:13To: [EMAIL PROTECTED]Subject: Graphic Problem Hi, I wrote a program to retrieve some data from database and then generate a xml file by using JDOM. Then, I use FOP to generate the PDF file. It works fine but later I found out the image in the PDF file will not get refresh until I restart tomcat, even I tried to delete the PDF file and regenerate again, the problem still exists. If I delete the image from the folder and regenerate the PDF file, it get refreshed. If I put in the image which is not exist in the folder previously and regenerate the PDF file, it also get refreshed. The problem exists when I update the old image with a new image (same file name) and regenerate PDF, the image won't get refresh (i.e.: still showing the old image) until I restart tomcat. The tomcat I'm using is version 4.1.24. May I know is there any API that can allow me to force the image toget refreshed or this is a bug? Is it something wrong withmy tomcat configuration or fop? Is there any documentation or example that I can follow? I try to lookaround but couldn't get any.Thanks for any help...
RE: transform pdf to xsl-fo
First option- save your word file as word 2000 html and try: http://wh2fo.sourceforge.net/ Second - I don't know ;( cu Torsten -Original Message-From: Olivier George [mailto:[EMAIL PROTECTED]Sent: Mittwoch, 21. Mai 2003 15:26To: [EMAIL PROTECTED]Subject: transform pdf to xsl-fo hi everybody, I have a quick and maybe simple question ... Does anybody knows if ther eis a mean to transform a word or a pdf document into an xml and xsl-fo files? Thanx a lot Olivier
RE: PCL - Postscript Print
Hi there, has anyone got an example on how to implement PCL and/or Postcript printing directly to a printer in a servlet using FOP? Couldn´t find anything like it. Yepp OutputStream out = null; //IP-Stream Printing if( iPPrinting) { Socket s = new Socket( printerName, printerPort ); out = s.getOutputStream(); } //UNC Printing (e.g //printserver/printer) else { out = new FileOutputStream( printerName ); } PrintWriter writer = new PrintWriter( out ); writer.write( postScriptByteArray ); boolean retValue = writer.checkError() == false; writer.close(); *** hope that helps cu Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: external graphics and memory usage
Hi, I had the same Problem, org.apache.fop.image.FopImageFactory is caching the Images and will never release the Reference. I've commented out m_urlMap.put(href, imageInstance); @ line 223. You can also try to use WeakHashMap for m_urlMap or add a method which clears the Map on programmatically request after your Task has finished. Then recompile and all works great ;0) cu Torsten -Original Message- From: Mirko Sertic [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 15. Mai 2003 09:19 To: Fop-User Subject: fo:external graphics and memory usage Hello! I have a little question about fo:external-graphic and memory usage. I think this question was answered before, but i did'nt find the right thread :-(. Are images that were used in fo:external-graphic cached, and if , where ? And how do i reset this cache ? I'm using 0.20.5rc2. I ask this question because my jvm ( sun, win2k ) heap size grows and grows till i's sudden out-of-memory-death. Because we are using CORBA, i thought about orb object references that where not corretly cleaned, but analysis with jprofiler says that there are none, except that the heap seems not to be cleaned up. What am i doing wrong ? Thanks a lot. - 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: external graphics and memory usage
... Sorry I use 0.20.4. Just now I've downloaded 0.20.5rc2 and I'm enjoyed to see a method at the end of the class: FopImageFactory.resetCache() Simply call it ;) cu -Original Message- From: Torsten Erler [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 15. Mai 2003 09:43 To: [EMAIL PROTECTED] Subject: RE: external graphics and memory usage Hi, I had the same Problem, org.apache.fop.image.FopImageFactory is caching the Images and will never release the Reference. I've commented out m_urlMap.put(href, imageInstance); @ line 223. You can also try to use WeakHashMap for m_urlMap or add a method which clears the Map on programmatically request after your Task has finished. Then recompile and all works great ;0) cu Torsten -Original Message- From: Mirko Sertic [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 15. Mai 2003 09:19 To: Fop-User Subject: fo:external graphics and memory usage Hello! I have a little question about fo:external-graphic and memory usage. I think this question was answered before, but i did'nt find the right thread :-(. Are images that were used in fo:external-graphic cached, and if , where ? And how do i reset this cache ? I'm using 0.20.5rc2. I ask this question because my jvm ( sun, win2k ) heap size grows and grows till i's sudden out-of-memory-death. Because we are using CORBA, i thought about orb object references that where not corretly cleaned, but analysis with jprofiler says that there are none, except that the heap seems not to be cleaned up. What am i doing wrong ? Thanks a lot. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT: XPath expression
Hi all, I know it's not the right List, but I think there are a lot of XSL-Experts here in this list. Does anyone know the XPath _expression_ for counting all Attributes and all childs (grandchilds...)of all preceding siblings of the selected node??? In Other words which row numberhas the selected node in a full expanded tree. (I need thisto set the row backgound color for each second row) ThanX cu Torsten
RE: XPath expression
Thanx for the reply(ies) -position() doesn't work for me (it always returns '1' for the first child of a node but i've to know the absolute position inside the whole xml tree) -preceding-sibling::*/@* looks better i'll try it out For clarifications: I try to display the content an xml file in ONE table using a generic xsl stylesheet. So I've neither a node name nor a knowledge about the xml structure (has a node attributes, is it a text node ...). For now it should work at least for each xml file wich has ONE root node. I start with the root node (naturally), list all Attributes of the current selected node by recursive call, then list all childs also by recursive call and so on. Therefore I've to know if I've to color this row or not (see below): (WHITE BG) root (GRAY BG) child (WHITE BG) attr1 (GRAY BG) attr2 (WHITE BG) attr3 (GRAY BG) child2 (WHITE BG) grandchild1 (GRAY BG) attr1 (WHITE BG) grandchild2 (GRAY BG) child3. psI've attached the xsl. If anyone has time to look in it ...any comments/proposals etc. are very welcome cu Torsten -Original Message- From: David Neary [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 15. Mai 2003 11:43 To: '[EMAIL PROTECTED]' Subject: RE: XPath expression De : Torsten Erler [mailto:[EMAIL PROTECTED] I know it's not the right List, but I think there are a lot of XSL-Experts here in this list. You might want to try the xsl-list at http://www.mulberrytech.com/xsl/xsl-list Does anyone know the XPath expression for counting all Attributes and all childs (grandchilds...) of all preceding siblings of the selected node??? count(preceding-sibling::*/@* | preceding-sibling::*/*) In Other words which row number has the selected node in a full expanded tree. (I need this to set the row backgound color for each second row) I don't understand the relationship between question 1 and question 2... For the second question, you just need something like this... xsl:apply-templates select=row/ xsl:template match=row xsl:choose xsl:when test=position() % 2 = 0 !-- Even row -- /xsl:when xsl:otherwise !-- odd row -- /xsl:otherwise /xsl:choose /xsl:template You should use the context nodeset to do the hard work for you - otherwise you're going to enormously beef up your processing time. By the way, please excuse the mail formatting if it's yucky - I haven't quite figured out how to make Outlook behave properly. Cheers, Dave. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0 xmlns:xalan=http://xml.apache.org/xslt; !--geometry parameter list (passing in per java code)-- xsl:param name=page-height/ xsl:param name=page-width/ xsl:param name=margin-bottom/ xsl:param name=margin-top/ xsl:param name=margin-left/ xsl:param name=margin-right/ xsl:param name=font-family/ xsl:param name=language/ xsl:variable name=lineHighlightColorrgb(220,220,220)/xsl:variable xsl:output method=xml indent=yes xalan:indent-amount=4/ xsl:strip-space elements=*/ !-- Copyright (c) 2003 by net-linx All rights reserved content template describes all data from xml in a table-like strukture Author: Torsten Erler -- xsl:template match=* fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; !--** Layout Master **-- fo:layout-master-set fo:simple-page-master master-reference=A4 page-width={$page-width}pt page-height={$page-height}pt margin-bottom={$margin-bottom}pt margin-top={$margin-top}pt margin-left={$margin-left}pt margin-right={$margin-right}pt fo:region-before extent=0pt/ fo:region-body margin-top=0pt margin-bottom=0pt/ fo:region-after extent=0pt/ /fo:simple-page-master /fo:layout-master-set !--** End Layout Master -- fo:page-sequence master-name=A4 fo:flow flow-name=xsl-region-body fo:table table-layout=fixed inline-progression-dimension.optimum=100% font-family={$font-family} font-size=9pt fo:table-column column-width=proportional-column-width(3)/ fo:table-column column-width=proportional-column-width(4)/ fo:table-column column-width=proportional-column-width(2)/ fo:table-column column-width=proportional-column-width(5)/ fo:table-header border-style=solid border-width=1pt background-color=black color=white font-weight=bold fo:table-row fo:table-cell border-right=solid padding=3pt fo:blockEntry/fo:block /fo:table-cell fo:table-cell border-right=solid
RE: XPath expression
ThanX alot -- your explanation reduces dramatically the size of my xsl and enlarges my xsl-understanding. All what I've written in many hours, is shrinked to a few lines of code ;(. But it works great ;))) cu Torsten -Original Message- From: David Neary [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 15. Mai 2003 16:41 To: '[EMAIL PROTECTED]' Subject: RE: XPath expression Hi, -position() doesn't work for me (it always returns '1' for the first child of a node but i've to know the absolute position inside the whole xml tree) It only does this if the context nodeset is the set of siblings. You can have the context node set be other stuff. -preceding-sibling::*/@* looks better i'll try it out Well, that is for literal attributes, rather than child nodes (which is what you seem to mean when you say attribute). To clarify, name would be an attribute of node in this... node name=doddery/ I start with the root node (naturally), list all Attributes of the current selected node by recursive call, then list all childs also by recursive call and so on. You can match all the nodes of the entire xml tree with //* - this means that if your XML is like this... root node subnode/ subnode/ /node node subnode/ /node /root then if you have a template (the [..] is to make sure that the root node isn't matched by the template, which would result in an infinite loop)... xsl:template match=/ xsl:apply-templates select=//*[..]/ /xsl:template xsl:template match=* xsl:textFor /xsl:text xsl:value-of select=name()/ xsl:text the position is /xsl:text xsl:value-of select=position()/ xsl:text /xsl:text /xsl:template ... your output will be For root the position is 1 For node the position is 2 For subnode the position is 3 For subnode the position is 4 For node the position is 5 For subnode the position is 6 psI've attached the xsl. If anyone has time to look in it ...any comments/proposals etc. are very welcome Hope this helps. And if there are any follow-up questions, please look into the xsl list at the URL I gave you earlier. Cheers, Dave. - 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: testing support for various graphics formats
FYI ghostscript v8.00++ (and naturally ghostview) doesn't render postscript/eps inside pdf by default, unless you set -dDOPS flag on command line or ghostsview config. Reason for that is a security problem with postscript, which has file access to the client, who is interpreting the postscript file, like other programming languages. This will allow to embed postscript viruses into pdf documents invisible for the user. cu Torsten -Original Message- From: Robert P. J. Day [mailto:[EMAIL PROTECTED] Sent: Montag, 12. Mai 2003 16:12 To: [EMAIL PROTECTED] Subject: Re: testing support for various graphics formats On Mon, 12 May 2003, Jeremias Maerki wrote: - EPS is similar to JPEG. EPS images get embedded 1:1 in the PDF. Acrobat Reader cannot display them (blank output) but looking at the PDF in GhostView or printing it on a PostScript printer shows the EPS content. just FYI, linux's xpdf command will not display an EPS image, but it does show up in printed output. just another data point in a long list of data points. rday - 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: HTML render class available?
No I don't think that anyone has written this Renderer, because you've to translate the whole fo-reference back into html syntax, which would be like a shot from the back through the breast into the eye. You can try to write it, but before take a look at http://www.w3.org/TR/xsl/slice7.html Each generated FO tag/property has to be translated and replaced by html tags for outputting. Have fun ;) cu Torsten -Original Message- From: Christian Neuroth [mailto:[EMAIL PROTECTED] Sent: Freitag, 25. April 2003 14:18 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: HTML render class available? your xsl stylesheet can contain: table tr tdxsl:value-of select=something_in_your_xml//td /tr table the resultig FO is: table tr tdThatsTheDataFromXML/td /tr table DONE yep. I understand that I can create a XSL stylesheet like your example. But I try to write a Java application which simply switches between different render classes to realize different output formats: // Setup renderer (output format) driver.setRenderer(Driver.RENDER_PDF); The only thing that I have to change is the parameter for the setRenderer method. There are renderer available for SVG, PDF, PS, PCL and so on. However, not for HTML. And I am looking for someone, who perhaps did implement a renderer for HTML or has some useful hints how I can do this. Thanks. Christian - 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]
accessing attributes in xml
Hi all, I've an xml like: ... defaultContactPerson type="PROOF"/defaultContactPerson type="BILL"/defaultContactPerson type="SALES"Hans Friedrich Mueller/defaultContactPersondefaultContactPerson type="MAIL"/defaultContactPerson type="KEY"/ Now I've to check inside the xsl this: xsl:if test="??? //[EMAIL PROTECTED] != '' ???" !--do something here if the sales contact isn't empty-- xsl:value-of select="??? //[EMAIL PROTECTED] ???"/ /xsl Can anyone help me how to check the valuefor the tagwhere the attribute is 'SALES' and how to access this value. ThanX in Advance cu Torsten
RE: accessing attributes in xml
Thanx - [EMAIL PROTECTED] = 'SALES'] was the pointer I'm looking for - it works well. I tought @ goes directly to the attribute value, but wherefrom should the parser know which attributewas meant ;( { Thinking is hard, if you've turned off your brain ;) } cu Torsten -Original Message-From: Mirko Sertic [mailto:[EMAIL PROTECTED]Sent: Donnerstag, 24. April 2003 15:09To: [EMAIL PROTECTED]Subject: AW: accessing attributes in xml Sorry, i mean xsl:value-of select="[EMAIL PROTECTED] = 'SALES']"/ Cheers Mirko -Ursprüngliche Nachricht-Von: Mirko Sertic [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 2003 15:06An: [EMAIL PROTECTED]; [EMAIL PROTECTED]Betreff: AW: accessing attributes in xml I'd guess xsl:value of select="[EMAIL PROTECTED] = 'SALES']"/ Hope this helps Cheers Mirko -Ursprüngliche Nachricht-----Von: Torsten Erler [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 24. April 2003 15:03An: Fop-User (E-mail)Betreff: accessing attributes in xml Hi all, I've an xml like: ... defaultContactPerson type="PROOF"/defaultContactPerson type="BILL"/defaultContactPerson type="SALES"Hans Friedrich Mueller/defaultContactPersondefaultContactPerson type="MAIL"/defaultContactPerson type="KEY"/ Now I've to check inside the xsl this: xsl:if test="??? //[EMAIL PROTECTED] != '' ???" !--do something here if the sales contact isn't empty-- xsl:value-of select="??? //[EMAIL PROTECTED] ???"/ /xsl Can anyone help me how to check the valuefor the tagwhere the attribute is 'SALES' and how to access this value. ThanX in Advance cu Torsten
table--row background
Hi all, I need help again with FOPing. I've a table with many rows. Each second row has a gray colored background. Now it appears that the gray backgound overlaps the table border (approximately for a half point) and between the column borders are breaks (also 1/2 point) on every top of a colored row. I've set the border on the fo:table around and on the last column at the left side ++---+ || | ||===| || | ||===| ++---+ What's going wrong? ThanX cu Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
foa extension
Hi I try to simplify the xsl-stylesheet production for our product. So I've created a XSL via WH2FO from a Word2000-html document. If I transform the document and show it (using AWTRenderer) I get the Errors: [ERROR] - property 'foa:name' ignored [ERROR] - property 'foa:group' ignored The screen rendering result and the produced PDF-file looks very good (except a few character encoding problems). Does anyone know how avoid the error ThanX Torsten Erler - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PFM font embedding problems.
HI IIRC try to use *.pfb files in embed-file=... cu Torsten attachment: winmail.dat
Euro Sign Problem
Hi, I use FOP in an intenationalized app. Therefore I tried to create pdf-documentswith locale German. The currency symbols (Euro-Sign)doesn't appear correct in the result (cryptic). If I dump down the generated fo the values are already wrong. Can anyone give me a pointer where I've to search for . Have I to change some encodings? xxx code snipped ByteArrayOutputStream out = new ByteArrayOutputStream();String xml = data.toXML(); //data is a plain xml container with the same structurelike anxml-fileStringReader reader = new StringReader( xml );Source xmlSource = new StreamSource( reader );Result foResult = new StreamResult( out );Transformer transformer = getTransformer( xslFilePath );transformer.transform( xmlSource, foResult ); ThanX Torsten Erler Junior Software DeveloperE-mail: mailto:[EMAIL PROTECTED] Telephone: (+49) 351-31875-0Direct: (+49) 351-31875-754net-linx Europe GmbH Kaethe-Kollwitz-Ufer 76 01309 Dresden, Germany
Fonts in PDF (embedded postscript)
Hi all, I create pdf-documents with fop which have other postscript files inside. Now when I print the generated pdf, the fonts (specified in the postscript) are substituted by (I think) Courier. I've tried to embed these fonts into the pdf. Now the content of the pdf uses this fonts correctbut the embedded postscript looks still poor on printing. I print the pdf via command line on Acrobat Reader 5.0. Has anyone an idea? ThanX Torsten Erler Junior Software DeveloperE-mail: mailto:[EMAIL PROTECTED] Telephone: (+49) 351-31875-0Direct: (+49) 351-31875-754net-linx Europe GmbH Kaethe-Kollwitz-Ufer 76 01309 Dresden, Germany
RE: Fonts in PDF (embedded postscript)
Attached is a sample pdf file with one included postscsript-ad (Ad.ps). The PDF uses the same font like the original postscript file (BellCentennial). The postscript file is called in the generated fo-file as followed: fo:block text-align=center fo:external-graphic src=file:/c:/Ad.ps/ /fo:block I print the document on command line from whithin a java program: Runtime.getRuntime().exec( [path_to_acrobat]/acdrord32.exe myfile.pdf /p /h ); The text in the pdf is using this special font but the postscript font will be substituted on printing with Courier. If I print the generated pdf document to a postscript-file and open it with gsview everything looks ok (fonts are installed in ghostscripts fonts directory). It's impossible to embedd the font in each postscript file, because of the most of the postscript files contains only one line (like Name Tel.-Nr.). (Theoretically) hundreds of generated ad's are in one pdf-proof and thousends of proofs can be processed in a batch. ThanX Torsten -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Dienstag, 12. November 2002 13:37 To: [EMAIL PROTECTED] Subject: Re: Fonts in PDF (embedded postscript) Probably, it has something to do with the way a particular font is referenced. Acrobat maps the font names to different names when you convert a PDF to PS. The PS part in the PDF has then no access to the embedded fonts because the names don't match. You could try to let the application that produces your EPS files embedd the fonts. I've checked with CorelDraw and it works. But that will obviously mean that the font gets embedded twice, once for the EPS and once for the PDF. Another approach is to switch to SVG instead of EPS. Can you post a sample? How do you print the PDF? Jeremias Maerki attachment: example.zip
RE: How to Center a text in a table cell?
try: fo:table-cell display-align=center Greeting Torsten -Original Message- From: Stefano Barella [mailto:[EMAIL PROTECTED] Sent: Freitag, 28. Juni 2002 10:29 To: [EMAIL PROTECTED] Subject: How to Center a text in a table cell? Hi, I'm Stefano and I have a problem with xsl-fo tables. I don't know how I can center a text verticaly in a cell table. I know how to center the text horizontally But I'd like to do both. Can anybody help me ? My Example below : fo:table-row height=0.5cm fo:table-cell number-rows-spanned=3 border-width=0.01mm border-style=solid fo:block text-align=center xsl:value-of select=[EMAIL PROTECTED]'0'] / /fo:block /fo:table-cell /fo:table-row Bye , thanks Stefano Barella
[OT] ToastScript using
Hi all! Has anyone experience with ToastScript? I need a possibility to preview embedded postscript in pdf with AWTRenderer. Therefore I've downloaded ToastScript, but I cannot find any documentation (expect api-doc) how to use this. I don't need the gui viewer, because I have to render the postsript into the whole preview document to give the user the chance to cancel the printer job or the pdf generation. Can you provide me an link, a documentation, code-samples or an howto-document ( www.geocities.com/toastscript/ only provides download). ThanX in advance Torsten PS.: If you have another (pure java) PS-Renderer tell me more about it.
RE: stykesheet attribute version
I think you should try this: ?xml version=1.0? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0 !-- optional -- xsl:output method=xml indent=yes encoding=ISO-8859-1/ note at the version attribute inside the xsl:stylesheet tag cu Torsten ps: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Dienstag, 11. Juni 2002 14:50 To: [EMAIL PROTECTED] Subject: Re: stykesheet attribute version i showed the code in the first mail , and i do implement the version in the tag... look below... ?xml version=1.0? !-- this one i removed once and reset back cause it didn't change the bugga-- xsl:stylesheet version=1.0 xmlns:xsl= http://www.w3.org/1999/XSL/Transform; xmlns:fo= http://www.w3.org/1999/XSL/Format; xsl:output method=html/ --x SNIP
RE: Landscape Layout
Simplest way: swap the values of the page-width and page-height Attributes in the Page Master reference of your xsl-template. greetings torsten fo:simple-page-master master-reference=A4 page-width=XXXpt page-height=YYYpt... -Original Message- From: Urban, Patrick [mailto:[EMAIL PROTECTED] Sent: Freitag, 7. Juni 2002 16:05 To: [EMAIL PROTECTED] Subject: Landscape Layout I am looking for a technique to generate a PDF report in a landscape layout. Is this possible using FOP? Patrick