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-devm=101408636328343w=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 wx 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]
How to use CMYK colors as font color?
Title: How to use CMYK colors as font color? Hi, I need to use a font with color in CMYK color space, is there a way to tell FOP that I'm using CMYK color as font color? And how to define CMYK color 0 0 0 1? Currently I'm using fo:block font-size={$textSize} font-family={text/font-family} color=0001 But the generated PS file has RGB color space instead of CMYK. Thanks. Tiffany
Re: How to use CMYK colors as font color?
Sun, Tiffany (Tong) wrote: Hi, I need to use a font with color in CMYK color space, is there a way to tell FOP that I'm using CMYK color as font color? And how to define CMYK color 0 0 0 1? Currently I'm using fo:block font-size={$textSize} font-family={text/font-family} color=0001 But the generated PS file has RGB color space instead of CMYK. I'm afraid FOP doesnt support CMYK colors for fonts and other FO properties. CMYK colors work inside JPG images, but that is all. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use CMYK colors as font color: rgb-icc?
Sun, Tiffany (Tong) wrote: Does anybody know about the function rgb-icc? I found that this function should solve my problem, but FOP does not recognize this function at all. Tiffany I believe RenderX's XEP allows CMYK colorspace to be specified for FO Properties using the rgb-icc function. However, it has not been implemented in FOP, yet. Contributions are most welcome. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: add watermark to generated PDF using FOP
Just some sample code for using SVG for a watermark: fo:instream-foreign-object xmlns:svg=http://www.w3.org/2000/svg; svg:svg width=285 height=70 svg:g transform=rotate(-5) svg:text x=10 y=60 style=font-family:Courier;font-size:40;font-weight:normal;stroke-width:0.5;fill:none;stroke:lightgray;stroke-opacity:0.75; xsl:value-of select=$watermarkText/ /svg:text /svg:g /svg:svg /fo:instream-foreign-object -Lou Clay Leeds [EMAIL PROTECTED] To: [EMAIL PROTECTED] om cc: Subject: Re: add watermark to generated PDF using FOP 04/16/2004 16:37 Please respond to fop-user On Apr 16, 2004, at 1:22 PM, David Beck wrote: I used FOP and JAI to render PDF. I did not use configuration class to set baseDir. In my case, do you think if there is a way to pass this draft.jpg image into XSL and display it on each pdf as background? Or can I use fo:external-graphic src=... inside /fo:region-body or use transformer.setParameterto refer to this draft image? thanks, Jerry I thought this would be in the FAQ, but it's not there (yet ;-) ) http://xml.apache.org/fop/output.html#pdf-postprocess http://xml.apache.org/fop/output.html#pdf-watermark Clay Leeds - [EMAIL PROTECTED] -- Web Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - 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: 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]
Outline extension generates a PDF bookmark set for each page-sequence
Hi, I've come across what I think is a bug. I did some searching and could not find any references to anything similar. I am running version 1.0dev checked out earlier today. If I use the outline extension to generate PDF bookmarks it generates a complete set of bookmarks for each page-sequence I have. In other words, if I have this input: ?xml version=1.0 encoding=UTF-8 ? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=2cm margin-left=2.5cm margin-right=2.5cm fo:region-body margin-top=3cm / fo:region-before extent=3cm / fo:region-after extent=1.5cm / /fo:simple-page-master /fo:layout-master-set fox:bookmarks xmlns:fox=http://xml.apache.org/fop/extensions; fox:outline internal-destination=sec1 fox:labelSection 1/fox:label /fox:outline fox:outline internal-destination=sec2 fox:labelSection 2/fox:label /fox:outline /fox:bookmarks fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body font-size=10pt font-family=Helvetica fo:block id=sec1Section 1/fo:block /fo:flow /fo:page-sequence fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body font-size=10pt font-family=Helvetica fo:block id=sec2Section 2/fo:block /fo:flow /fo:page-sequence /fo:root I expect to get one set of bookmarks with items of Section 1 and Section 2 linking to the first page and second page respectively. Instead I get two complete sets, i.e., items Section 1, Section 2, Section 1 and Section 2. The bookmarks link to the right places. This only seems to happen if there are outline references to more than one page-sequence. Is this something I should write a bug report about? Thanks, Bruce - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]