Re: Including PDF graphics?
I'm not a PDF expert, but here's a paragraph from a man page: epstopdf transforms the Encapsulated PostScript file epsfile so that it is guaranteed to start at the 0,0 coordinate, and it sets a page size exactly corresponding to the BoundingBox. This means that when Ghostscript renders it, the result needs no cropping, and the PDF Medi- aBox is correct. The result is piped to Ghostscript and a PDF version written. This is what I use with PDFLaTeX and PassiveTeX to put vector graphics into PDF documents. Relying on EPS for graphics in PDF documents sort-of defeats the point of PDF. It seems to me that it should be fairly easy to include PDF graphics support in FOP, no? Justus J.Pietschmann [EMAIL PROTECTED] wrote on Fri, 05 Dec 2003 19:52:58 +0100: Justus H. Piater wrote: It seems that FOP cannot include PDF graphics. To me this is a serious shortcoming, as there does not appear to be a way to include existing EPS or PDF graphics in a FOP-generated document, and show the result in acroread. FOP can include EPS graphis, but Acrobat reader wont display them (that's mainly a restriction of AcrobatReader, not FOP, a PS printer will print them even from Acrobat Reader). What's a PDF graphic? A recursivly embedded PDF? J.Pietschmann -- Justus H. Piater, Ph.D. http://www.montefiore.ulg.ac.be/~piater/ Institut Montefiore, B28Phone: +32-4-366-2279 Université de Liège, BelgiumFax: +32-4-366-2620 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bug in table-cell border
On Sun, 7 Dec 2003 11:01:31 +0100, Andreas L. Delmelle [EMAIL PROTECTED] wrote: -Original Message- From: Stan Pinte [mailto:[EMAIL PROTECTED] thanks, but it doesn't work: Try either: - specifying all borders explicitly, like 'border-top-width=0.1mm', 'border-left-width=0.1mm etc. - or just using shorthands, like 'border-width=0.1mm 0.1mm 0.1mm 0.1mm' One of the two should work. No. I solved it doing that in the surrounding fo:table-cell border-width=0.1mm border-style=solid padding=0.1mm -- adding a pading now leaves the border visible Hope this helps! Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stan Pinte. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
printing of bmp images
Hello List, I try to print a .bmp on w2k / XP with fop 0.20.5rc2, without success. Trying the following fo-code, shows only the gif. Both files are in the base directory an are less than 1kb. fo:block text-align=left BMP fo:external-graphic src=file:test1.bmp/ /fo:block fo:block text-align=left GIF fo:external-graphic src=file:test1.gif/ /fo:block I found on http://xml.apache.org/fop/graphics.html#bmp the notice: FOP native support for BMP images is limited to the RGB color-space. Is this my problem ? How can I check this ? I can provide the Image I used for testing. In real Applictaion I would create the Image with the following Code: hdcMem = CreateCompatibleDC(hdc); //' Call DSCreateDIBSection() from the DLL. //' You can use the desired BPP in the last parameter(for example, 24) DibSection = DSCreateDIBSection(width, height, 24); hOldBitmap = SelectObject(hdcMem, DibSection); Ret = StretchBlt(hdcMem, 0, 0, width, height, hdc, 0, 0, width, height, SRCCOPY); hOldBitmap = SelectObject(hdcMem, hOldBitmap); //' Call DSStoreDIBSectionInBMPFile() from the DLL. //' Add error handling. Ret = DSStoreDIBSectionInBMPFile(test.bmp, DibSection); Matthias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PCL + image gif
Hello! When I print document xslfo (output PCL) with image.gif, the printer (laser format PCL6) send message : unable to print file : client-error-document-format-not-supported if I remove image, thats run why image.gif is not accepted by PCL ? (thats run with image in format output PDF)
TR : PCL + image gif + example
Hello! When I print document xslfo (output PCL) with image.gif, the printer (laser format PCL6) send message : unable to print file : client-error-document-format-not-supported if I remove image, thats run why image.gif is not accepted by PCL ? (thats run with image in format output PDF) Example : fo:block fo:external-graphic height=119px src="" width=73px/ /fo:block
Font characters showing up as pound signs
Background: We are trying to get an e with a line over it to show up in a PDF document which is being generated from an XML files with fop. The character ends up ad a pound sign in the PDF, though from the same XML file, the character is displayed correctly in HTML on the website. Oddly enough, I can not get that character to show up in my mail program (Eudora) either to show you the character we are trying to reproduce. I have done some reading, and it sounded as if I needed to embed the font in the PDF. I *think* I have done this correct (no errors were produced), but have not been able to overcome the problem. Question: How do I get this character to show up in the PDF? Other Information: -) The font I generated the metrics file from came from a Windows 200 Pro workstation (Arial) -) Config snippet file used to generate the PDF (ben.xml) font metrics-file=/usr/local/fop/fonts/arial.xml kerning=yes embed-file=/usr/local/fop/fonts/arial.ttf font-triplet name=Arial style=normal weight=normal/ /font -) command line used to generate the PDF: /usr/local/fop/fop -c /tmp/ben.xml -xml /web/coursedev/XMLTMP/BI0500_l01.xml -xsl /web/coursedev/foStyles/lessonfo.xslt -pdf /web/coursedev/PDFTMP/BI0500_l01.pdf -) FOP version: 0.20.5 -) other info needed? thanks benji --- Ben Spencer Web Support [EMAIL PROTECTED] x 2288 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with absolute positiones block container
Hello, Following problem: I have a table and under this table a block container with absolute positioning. When the table get so long that there isn't enough space for the content of the block container it doesn't make a page break before the block container but it writes the content over the last table rows. Is there any idea how to avoid this? Thank you Britta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font characters showing up as pound signs
On 12/8/03 8:09 AM, Benji Spencer [EMAIL PROTECTED] wrote: Background: We are trying to get an e with a line over it to show up in a PDF document which is being generated from an XML files with fop. The character ends up ad a pound sign in the PDF, though from the same XML file, the character is displayed correctly in HTML on the website. Oddly enough, I can not get that character to show up in my mail program (Eudora) either to show you the character we are trying to reproduce. I have done some reading, and it sounded as if I needed to embed the font in the PDF. I *think* I have done this correct (no errors were produced), but have not been able to overcome the problem. Question: How do I get this character to show up in the PDF? Have you verified that this font contains the glyph you want, and are you using the correct decimal code for the glyph? (This may seem obvious, but) Are you specifying the font in the stylesheet? Typically, a # in the output indicates there was no glyph in the font for this character code. cheers, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PCL + image gif
Philippe PITHON wrote: When I print document xslfo (output PCL) with image.gif, the printer (laser format PCL6) send message : unable to print file : client-error-document-format-not-supported PCL Renderer is very underdeveloped compared to the PDF Renderer. I have only ever got it working with BMP graphics. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with absolute positiones block container
Bargel, Britta wrote: I have a table and under this table a block container with absolute positioning. When the table get so long that there isn't enough space for the content of the block container it doesn't make a page break before the block container but it writes the content over the last table rows. block-containers when absolutely positioned are not considered when the flow is laid out. This effect is desirable in certain scenarios. One way to achieve what you want is to use fo:footnotes instead. They will always be positioned at the bottom of the page on which they occur and the space allowed for the flow (your table in this case) is reduced according to the size of the footnotes. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Problems with absolute positiones block container
Hello Chris, I've tried this before. But then I had the effect, that sometimes the footnote disappears when there were not enough space on the bottom of the page. Is there any posibility to get the position of the table end and to insert a page break if there isn't enough space left? Britta -Ursprüngliche Nachricht- Von: Chris Bowditch [mailto:[EMAIL PROTECTED] Gesendet: Montag, 8. Dezember 2003 17:53 An: [EMAIL PROTECTED] Betreff: Re: Problems with absolute positiones block container Bargel, Britta wrote: I have a table and under this table a block container with absolute positioning. When the table get so long that there isn't enough space for the content of the block container it doesn't make a page break before the block container but it writes the content over the last table rows. block-containers when absolutely positioned are not considered when the flow is laid out. This effect is desirable in certain scenarios. One way to achieve what you want is to use fo:footnotes instead. They will always be positioned at the bottom of the page on which they occur and the space allowed for the flow (your table in this case) is reduced according to the size of the footnotes. Chris - 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: bug in table-cell border
-Original Message- From: Stan Pinte [mailto:[EMAIL PROTECTED] On Sun, 7 Dec 2003 11:01:31 +0100, Andreas L. Delmelle [EMAIL PROTECTED] wrote: One of the two should work. No. I solved it doing that in the surrounding fo:table-cell border-width=0.1mm border-style=solid padding=0.1mm -- adding a pading now leaves the border visible I was gonna give that advice next ;) No seriously, suspected it had sth to do with the padding. Now we're sure... Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font characters showing up as pound signs
John/Chris I am not sure I am using the correct decimal code for the glyph. The one I think I want is x0113 (an e with a straight line over it going horizontal). However based on what Chris gave me, that is the right one. How do I tell if the font contains the glyph I need? (the font came from windows and I see the character in windows. the font.xml file came from that windows font). For the arial.xml file, I see that it says last-char is 255. The HTML character representation for what I need is #275; That could be the problem? Thanks Benji At 10:09 AM 12/8/2003, you wrote: Background: We are trying to get an e with a line over it to show up in a PDF document which is being generated from an XML files with fop. The character ends up ad a pound sign in the PDF, though from the same XML file, the character is displayed correctly in HTML on the website. Oddly enough, I can not get that character to show up in my mail program (Eudora) either to show you the character we are trying to reproduce. I have done some reading, and it sounded as if I needed to embed the font in the PDF. I *think* I have done this correct (no errors were produced), but have not been able to overcome the problem. Question: How do I get this character to show up in the PDF? Other Information: -) The font I generated the metrics file from came from a Windows 200 Pro workstation (Arial) -) Config snippet file used to generate the PDF (ben.xml) font metrics-file=/usr/local/fop/fonts/arial.xml kerning=yes embed-file=/usr/local/fop/fonts/arial.ttf font-triplet name=Arial style=normal weight=normal/ /font -) command line used to generate the PDF: /usr/local/fop/fop -c /tmp/ben.xml -xml /web/coursedev/XMLTMP/BI0500_l01.xml -xsl /web/coursedev/foStyles/lessonfo.xslt -pdf /web/coursedev/PDFTMP/BI0500_l01.pdf -) FOP version: 0.20.5 -) other info needed? thanks benji --- Ben Spencer Web Support [EMAIL PROTECTED] x 2288 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Ben Spencer Web Support [EMAIL PROTECTED] x 2288 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to change the font inside a fo:block without a line break?
hello, the following is causing a line break before small... fo:blocktest text fo:block font-size=5ptsmall font/fo:block/fo:block any idea why? thanks a lot, Stan. -- Stan Pinte. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to change the font inside a fo:block without a line break?
Use fo:inline -Original Message- From: Stan Pinte [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: how to change the font inside a fo:block without a line break? hello, the following is causing a line break before small... fo:blocktest text fo:block font-size=5ptsmall font/fo:block/fo:block any idea why? thanks a lot, Stan. -- Stan Pinte. - 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: how to change the font inside a fo:block without a line break?
-Original Message- From: Stan Pinte [mailto:[EMAIL PROTECTED] the following is causing a line break before small... fo:blocktest text fo:block font-size=5ptsmall font/fo:block/fo:block any idea why? Difficult to tell... If I were to paste this into a minimal FO, you can bet it doesn't. Is it possible to provide more context? ( A small, self-contained sample-FO that demonstrates the problem ) TIA! Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Font characters showing up as pound signs
Andeas I read about the problems with fonts so I did encode things as WinAnsi. The statement As shown in the above table, regardless of whether the font is embedded or not, text generated from a CID-keyed font metrics file will never be encoded properly led me to believe that *is* the right thing to do. Is WinAnsi bad? Yes, I did use -enc ansi option when I generated the metrics file. John also asked earlier about specifying the font in the stylesheet. Yes, I believe I am doing that... xsl:template match=transliteration fo:inline font-family=Arial color=red xsl:apply-templates/ /fo:inline /xsl:template Probably created the metrics with WinAnsi encoding instead of CID-keyed. (check: http://xml.apache.org/fop/fonts.html#truetype-metrics) Did you, by any chance, use the '-enc' option on the command-line when generating the TTF metrics? --- Ben Spencer Web Support [EMAIL PROTECTED] x 2288 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change the font inside a fo:block without a line break?
On Mon, 08 Dec 2003 11:41:04 -0600, George Yi [EMAIL PROTECTED] wrote: Use fo:inline thanks!! -Original Message- From: Stan Pinte [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: how to change the font inside a fo:block without a line break? hello, the following is causing a line break before small... fo:blocktest text fo:block font-size=5ptsmall font/fo:block/fo:block any idea why? thanks a lot, Stan. -- Stan Pinte. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Font characters showing up as pound signs
-Original Message- From: Benji Spencer [mailto:[EMAIL PROTECTED] I read about the problems with fonts so I did encode things as WinAnsi. The statement As shown in the above table, regardless of whether the font is embedded or not, text generated from a CID-keyed font metrics file will never be encoded properly led me to believe that *is* the right thing to do. Is WinAnsi bad? Yes, I did use -enc ansi option when I generated the metrics file. Aha! It's not a _bad_ thing, so to speak... Both options have their advantages. If you use -enc ansi, then you get only a base character set (check the table: first line - Usable charset), but the text will remain searchable. The other option (not specifying -enc) gives you a full character-set, but renders the pdf 'unsearchable' ( cp won't work either ). Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font characters showing up as pound signs
On Mon, 2003-12-08 at 14:16, Benji Spencer wrote: For the arial.xml file, I see that it says last-char is 255. The HTML character representation for what I need is #275; That could be the problem? Make sure that you work with MS Arial Unicode and not just Arial. Unicode version of Arial contains glyphs beyond 255. Hope this helps, Rodolfo -- Rodolfo M. Raya [EMAIL PROTECTED] Heartsome Holdings Pte.Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Font characters showing up as pound signs
Andrea (and all) Thanks for your help. Regenerating the metrics solved the problem. While some functionality is missing by using CID-keyed, at least the characters are displayed :) Thanks for your help on this issue (and explaining the documentation a little). Benji Aha! It's not a _bad_ thing, so to speak... Both options have their advantages. If you use -enc ansi, then you get only a base character set (check the table: first line - Usable charset), but the text will remain searchable. The other option (not specifying -enc) gives you a full character-set, but renders the pdf 'unsearchable' ( cp won't work either ). Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Ben Spencer Web Support [EMAIL PROTECTED] x 2288 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Font characters showing up as pound signs
-Original Message- From: Benji Spencer [mailto:[EMAIL PROTECTED] Andrea (and all) ^ s ;) Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Japanese fonts do not appear in desired weights
--- Graham Hannington [EMAIL PROTECTED] wrote: The home page also offers instructions that are probably perfectly readable in Japanese, or to a more experienced FOP user, but I have not been able to get anywhere with this. ... I'd really like to get JPFOP working, not just for the multiple weight fonts, but also because it appears to fix the FOP line break issue in Japanese (where lines can sometimes begin with a punctuation mark). Any advice would be greatly appreciated. Regards, Graham Hannington A search on JPFOP and its author gave a Japanese-language XML ML-- http://www2.xml.gr.jp/1ml_logmain.html?MLID=jaxml-dev, which may be of help. The author appears very active on that list and may be able to help you. (I'm unsure how to subscribe to it, however.) Glen __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]