RE: png vs. jpg
Ah, that makes sense then. I'm going to read the link that you referenced. Thank you Luis. -Roberto From: Luis Bernardo [mailto:lmpmberna...@gmail.com] Sent: Wednesday, October 16, 2013 6:45 PM To: fop-users@xmlgraphics.apache.org Subject: Re: png vs. jpg Yes, there is a difference. By default FOP uses a native image loader for JPG but not for PNG. There is however a native image loader for PNG too, which you can enable in the configuration file. See http://wiki.apache.org/xmlgraphics-fop/HowTo/ImageLoaderRawPNG for more info. Try it and I expect that you will see a performance improvement. Native image loaders process the image differently and usually do it faster. The reason the native image loader for PNG is not enabled by default is because it does not support all types of PNG images, but supports the most common, so very likely it will work with your images too. Why is PNG more expensive than JPG to process? One reason is transparency, which JPG does not support. To embed a PNG in PDF the transparency bytes have to be separated from the RGB bytes, and then both are embedded in the PDF as separated components. The other reason is compression. When not using the native image loader, the PNG image needs to be uncompressed and converted to a plain RGB bitmap. This process can be very expensive. On 10/16/13 7:39 PM, Roberto Cahanap wrote: Hello everyone. We have been trying to figure out why our pdf generation was taking so long. When we changed an image in the PDF from PNG to JPG, then it was much faster. Is there a difference in the way these two graphic formats are processed in FOP? Thank you for your responses. -Roberto The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
png vs. jpg
Hello everyone. We have been trying to figure out why our pdf generation was taking so long. When we changed an image in the PDF from PNG to JPG, then it was much faster. Is there a difference in the way these two graphic formats are processed in FOP? Thank you for your responses. -Roberto The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: Fonts not found in Red Hat Linux
Thanks Mehdi, Let me take your advice and configure these manually then. Clicking now on these 2 links you suggested. Thanks again! -Roberto From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Thursday, July 19, 2012 3:08 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Fonts not found in Red Hat Linux Hi Roberto, RHEL has quite expansive documentation[1] and I'd suggest looking there and Google should cover most of your questions. The synaptic manager is an Ubuntu (maybe Debian) application for managing apt (the package installation manager), RHEL's apt-equivalent is Yum, though I don't know whether it has an equivalent GUI (synaptic manager). Depending on what you're trying to do, I'd suggest (especially if you're using custom fonts) you configure those fonts manually[2] rather than using auto-detect, it'll probably save you some hassle later down the line. Configuring the fonts manually gives you much better control over the fonts/font-names and makes debugging and font related issues much easier. Mehdi [1] http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/3/html/Reference_Guide/s1-x-fonts.html might help you [2] http://xmlgraphics.apache.org/fop/trunk/fonts.html On 18 July 2012 19:37, Roberto Cahanap rcaha...@bioreference.commailto:rcaha...@bioreference.com wrote: Hi Rob! Thanks for responding. I am a total Linux newbie. The only thing I know is the regular commands to change directory, etc. I found out online how to find the version. We are using: Red Hat Enterprise Linux Server release 6.1 (Santiago) I don't know how to start the config manager. Let me look online to see how I can run this config manager. -Roberto From: Rob Sargent [mailto:rsarg...@xmission.commailto:rsarg...@xmission.com] Sent: Wednesday, July 18, 2012 2:31 PM To: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Subject: Re: Fonts not found in Red Hat Linux Welcome to linux. Start the config manager (synaptic maybe, you don't save which flavor) and look for msfont On 07/18/2012 12:27 PM, Roberto Cahanap wrote: Hello, We were working in a Windows Server environment but now we have to port our application to Linux. We are getting a font not found warning when we generate the PDF. We have the config for FOP to auto-detect, and this was working fine in Windows. Our Linux admin installed the fonts in the following directory: /usr/share/fonts What can we do to fix this issue? Thanks for your replies. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: Fonts not found in Red Hat Linux
Yes, I tried that fc-cache command and it gave the locations of where fonts are stored/installed. Let me do some more reading! Thanks again. -Roberto From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Thursday, July 19, 2012 3:25 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Fonts not found in Red Hat Linux Sorry, I should also point out that typing the command fc-cache -v should give you a list of where fonts exist on the system (I don't have a RHEL system to try it on, but I'm pretty sure this works across linux.) Use the man pages (type man followed by the command) and it'll give you the documentation of a command. On 19 July 2012 08:08, mehdi houshmand med1...@gmail.commailto:med1...@gmail.com wrote: Hi Roberto, RHEL has quite expansive documentation[1] and I'd suggest looking there and Google should cover most of your questions. The synaptic manager is an Ubuntu (maybe Debian) application for managing apt (the package installation manager), RHEL's apt-equivalent is Yum, though I don't know whether it has an equivalent GUI (synaptic manager). Depending on what you're trying to do, I'd suggest (especially if you're using custom fonts) you configure those fonts manually[2] rather than using auto-detect, it'll probably save you some hassle later down the line. Configuring the fonts manually gives you much better control over the fonts/font-names and makes debugging and font related issues much easier. Mehdi [1] http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/3/html/Reference_Guide/s1-x-fonts.html might help you [2] http://xmlgraphics.apache.org/fop/trunk/fonts.html On 18 July 2012 19:37, Roberto Cahanap rcaha...@bioreference.commailto:rcaha...@bioreference.com wrote: Hi Rob! Thanks for responding. I am a total Linux newbie. The only thing I know is the regular commands to change directory, etc. I found out online how to find the version. We are using: Red Hat Enterprise Linux Server release 6.1 (Santiago) I don't know how to start the config manager. Let me look online to see how I can run this config manager. -Roberto From: Rob Sargent [mailto:rsarg...@xmission.commailto:rsarg...@xmission.com] Sent: Wednesday, July 18, 2012 2:31 PM To: fop-users@xmlgraphics.apache.orgmailto:fop-users@xmlgraphics.apache.org Subject: Re: Fonts not found in Red Hat Linux Welcome to linux. Start the config manager (synaptic maybe, you don't save which flavor) and look for msfont On 07/18/2012 12:27 PM, Roberto Cahanap wrote: Hello, We were working in a Windows Server environment but now we have to port our application to Linux. We are getting a font not found warning when we generate the PDF. We have the config for FOP to auto-detect, and this was working fine in Windows. Our Linux admin installed the fonts in the following directory: /usr/share/fonts What can we do to fix this issue? Thanks for your replies. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received
Fonts not found in Red Hat Linux
Hello, We were working in a Windows Server environment but now we have to port our application to Linux. We are getting a font not found warning when we generate the PDF. We have the config for FOP to auto-detect, and this was working fine in Windows. Our Linux admin installed the fonts in the following directory: /usr/share/fonts What can we do to fix this issue? Thanks for your replies. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: Fonts not found in Red Hat Linux
Hi Rob! Thanks for responding. I am a total Linux newbie. The only thing I know is the regular commands to change directory, etc. I found out online how to find the version. We are using: Red Hat Enterprise Linux Server release 6.1 (Santiago) I don't know how to start the config manager. Let me look online to see how I can run this config manager. -Roberto From: Rob Sargent [mailto:rsarg...@xmission.com] Sent: Wednesday, July 18, 2012 2:31 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Fonts not found in Red Hat Linux Welcome to linux. Start the config manager (synaptic maybe, you don't save which flavor) and look for msfont On 07/18/2012 12:27 PM, Roberto Cahanap wrote: Hello, We were working in a Windows Server environment but now we have to port our application to Linux. We are getting a font not found warning when we generate the PDF. We have the config for FOP to auto-detect, and this was working fine in Windows. Our Linux admin installed the fonts in the following directory: /usr/share/fonts What can we do to fix this issue? Thanks for your replies. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
tif vs. jpg
I just noticed a recent routine that we wrote that is dynamically creating graphic files and embedding into a report where we use FOP to generate into a PDF. The xml data has the filename as TIF, but the graphic files are being created as TIF file but with an extension of JPG. Is this an issue? The PDF looks OK. I can easily convert the TIF to JPG, but is it necessary? Will I run into any issues if I don't convert to TIF? The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: PDF size reduction
Thank you everybody for responding. So based on the responses, we need to change the quality of the JPG first and then create the PDF. I'll research around for an app that will allow me to do this programmatically. Thank you again! -Roberto From: Giuseppe Briotti [mailto:g.brio...@gmail.com] Sent: Tuesday, May 03, 2011 4:46 AM To: fop-users@xmlgraphics.apache.org Subject: Re: PDF size reduction 2011/5/3 Giuseppe Briotti g.brio...@gmail.commailto:g.brio...@gmail.com 2011/5/3 Michael Rubin mru...@thunderhead.commailto:mru...@thunderhead.com If you aren't bothered about image quality, then (albeit not knowing what format the image is currently) can you not use something like high JPEG compression on the graphics? This will dramatically reduce the image size and therefore the PDF size. Thanks. -Mike Well, it seems that my message was sent without content. I agree with Pascal: you can avoid to load the color profile. If this is not enough, you can try to process all the images via batch. There are several tools that can allow that. Try for example Image Magick... G. -- Giuseppe Briotti g.brio...@gmail.commailto:g.brio...@gmail.com Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
PDF size reduction
Hello fop users! Is there a way in FOP to reduce the size of the PDF? We are embedding the PDF with a high resolution graphics which creates a huge PDF document. One of the departments here at work would prefer a smaller PDF document, and they don't care about the quality of the graphics. Is there a way we can do this? Note, we are only using the batch file of FOP to generate the PDF. Thank you for your response. -Roberto The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
fop listener
Hello everyone! Is there a way to run FOP as a listener to a certain port? I was told that this was possible with FOP. Thank you in advance for y our replies! -Roberto The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
font missing warning
Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment - we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don't get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: font missing warning
Hello Eric, What I don't understand is that a simple page does not get this error and finds the font. The file is installed on the production machine (Windows Server 2003 Enterprise Edition), it's called CONSOLA.TTF (Consolas True Type). I'm going to run a couple of experiments today to see what's up with this issue. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 9:19 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Obviously it means it can't find the font. auto-detect is usually not a good idea. It depends on the font file being found on the machine it's running on. What file contains that font triplet? Is that installed on the production machine? Obviously it's either not installed there or there's something different about the search path. From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:12 AM To: fop-users@xmlgraphics.apache.org Subject: font missing warning Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment - we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don't get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: font missing warning
Hi Mehdi, OK, I will tell it explicitly where the font is located. Hopefully that will solve the problem Thank you for helping. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Wednesday, February 02, 2011 9:32 AM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Hi Roberto, You can do 1 of 2 things, either a) place the font in the correct folder or b) you can be explicit about the location of the font (http://xmlgraphics.apache.org/fop/0.95/configuration.html#renderers). I'd suggest that you go for the latter rather than the former as it gives you better control over where the font is. Hope that helps Mehdi On 2 February 2011 14:18, Eric Douglas edoug...@blockhouse.com wrote: Obviously it means it can't find the font. auto-detect is usually not a good idea. It depends on the font file being found on the machine it's running on. What file contains that font triplet? Is that installed on the production machine? Obviously it's either not installed there or there's something different about the search path. From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:12 AM To: fop-users@xmlgraphics.apache.org Subject: font missing warning Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment - we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don't get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
Eric, After doing some testing, the simple one was not working also. It also had that missing font warning. I had the output from our other software set it to HTML instead of routing it to FOP for pdf. But here's a partial listing of the one that I'm interested in getting to work: xsl:template match=body mode=table11 name=table8 fo:table-row fo:table-cell xsl:attribute name=font-family'Consolas'/xsl:attribute fo:block fo:inline xsl:if test=@linetype = 1 fo:inline xsl:attribute name=width19cm/xsl:attribute xsl:call-template name=clinical xsl:with-param name=type select=@linetype / I'm doing some more test to see what the issue is... Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 10:04 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning That depends what you mean by simple versus not simple. It would be a lot easier to understand what you're talking about if you have one that works and one that doesn't work on the same machine, Are they referencing the same fop config file? Can you send a sample of each xslt or fo file? From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:57 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Hello Eric, What I don't understand is that a simple page does not get this error and finds the font. The file is installed on the production machine (Windows Server 2003 Enterprise Edition), it's called CONSOLA.TTF (Consolas True Type). I'm going to run a couple of experiments today to see what's up with this issue. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 9:19 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Obviously it means it can't find the font. auto-detect is usually not a good idea. It depends on the font file being found on the machine it's running on. What file contains that font triplet? Is that installed on the production machine? Obviously it's either not installed there or there's something different about the search path. From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 9:12 AM To: fop-users@xmlgraphics.apache.org Subject: font missing warning Hello! We are getting this warning when we try to create a PDF: Feb 1, 2011 4:35:03 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400'. Our environment - we have another program that creates the XML and XSL. We use FOP to create the PDF from these files. Some things to note about our problem: - If we have a simple XSL, then we don't get this error - We have two environments (TEST and PRODUCTION), it works OK in our TEST environment - We are using FOP 0.95 - We use auto-detect/ in the fop configuration file to detect the font. Does anybody know what could be causing this issue? Thank you! The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may
RE: font missing warning
I vaguely remember that we had a similar issue with our Test server (it's working now on this Test server). To get it to work, I remembered deleting the fop cache file, but I can't seem to find the location of this cache file now. Help! From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 10:49 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning If it's not working at all on the production server then if it is actually working on the test server that suggests the search path is wrong. Have you tried hardcoding the path? If it's not actually working on the test server it may just not like your font. I don't recal if OpenType fonts are fully supported in FOP 0.95. Can you try 1.0, or test a different type of font? From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 10:29 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Eric, After doing some testing, the simple one was not working also. It also had that missing font warning. I had the output from our other software set it to HTML instead of routing it to FOP for pdf. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: font missing warning
Eric, Our Test server's fonts are located in the C: drive. The Production server's fonts are located in the H: drive (that's where Windows was installed). How do I tell FOP that the fonts are located on the H: drive? Maybe that's the issue? From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 10:49 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning If it's not working at all on the production server then if it is actually working on the test server that suggests the search path is wrong. Have you tried hardcoding the path? If it's not actually working on the test server it may just not like your font. I don't recal if OpenType fonts are fully supported in FOP 0.95. Can you try 1.0, or test a different type of font? From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 10:29 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Eric, After doing some testing, the simple one was not working also. It also had that missing font warning. I had the output from our other software set it to HTML instead of routing it to FOP for pdf. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: font missing warning
Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 12:22 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Normally, FOP puts the fop-fonts.cache file in user.home/.fop. If that directory is not writable the cache file is put into the temp directory. It could indeed help to delete the cache file. If there was a problem loading a particular font, it can get flagged as invalid and won't be loaded again later. On 02.02.2011 16:52:05 Roberto Cahanap wrote: I vaguely remember that we had a similar issue with our Test server (it's working now on this Test server). To get it to work, I remembered deleting the fop cache file, but I can't seem to find the location of this cache file now. Help! snip/ Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
Thanks for the help Jeremias. I'm new to FOP, so I don't know the ins and outs of it. Hopefully by fixing this issue, I'll learn a little from it. We are just running the FOP.BAT file to get our results, so like I said, I don't know really know what's going on. Yes remote debugging is hard. Thanks for your suggestions. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 12:22 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Normally, FOP puts the fop-fonts.cache file in user.home/.fop. If that directory is not writable the cache file is put into the temp directory. It could indeed help to delete the cache file. If there was a problem loading a particular font, it can get flagged as invalid and won't be loaded again later. On 02.02.2011 16:52:05 Roberto Cahanap wrote: I vaguely remember that we had a similar issue with our Test server (it's working now on this Test server). To get it to work, I remembered deleting the fop cache file, but I can't seem to find the location of this cache file now. Help! snip/ Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font missing warning
I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP that is in the USERACCOUNT's directory. Inside this is a file called fop-fonts.cache. There is no such folder on our Production server. Would you know why this is so? If this folder is not there, then where would it be looking for these cached fonts? If like you say in the temp directory, where would that be on a Windows system? Thank you again. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging
RE: font missing warning
Yes, but is there a way to place the -c conf\fop.xconf inside this batch file. Our software runs the FOP.BAT, I don't really know how this software tells it where the XSL and XML is located. I'm just wondering how I can hard code this inside the batch file. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 3:01 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Those are arguments. The bat accepts arguments as a pass value. So it's just Fop.bat -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:52 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show this? If yes do this, else do that. -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, February 02, 2011 1:35 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning Check the environment (set on Windows). Look for the TEMP entry. It's TEMP=C:\Users\Jeremias\AppData\Local\Temp on my machine for my user. If it's not around, maybe the user under which FOP is running has no write access to the user directory or there is no user directory at all. I have no idea. I love remote debugging. ;-) On 02.02.2011 18:58:53 Roberto Cahanap wrote: Hello Jeremias, Thank you for shaking my memory. Yes on the TEST server, we have a folder named .FOP
RE: font missing warning
Ah true! Yes. I will leave fop.bat alone and create another batch file referring to it? Maybe that will work. I will see. Thank you Mehdi. -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Wednesday, February 02, 2011 3:05 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font missing warning I don't know if this is an option for you, but why don't you just create another batch script that contains the arguments. That way you can leave the working code working and configure another batch script. Mehdi On 2 February 2011 20:01, Roberto Cahanap rcaha...@bioreference.com wrote: Yes, but is there a way to place the -c conf\fop.xconf inside this batch file. Our software runs the FOP.BAT, I don't really know how this software tells it where the XSL and XML is located. I'm just wondering how I can hard code this inside the batch file. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 3:01 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Those are arguments. The bat accepts arguments as a pass value. So it's just Fop.bat -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:52 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming this user like most is running from a command line. Finding the fonts correctly is a lot easier from embedded code. It's even easier if I can compile the fonts into a jar and reference them internally so they never have a path. The second easiest way is if you can reference them with a path relative to the path of the fop.jar. Users frequently expect remote debugging but unless you have remote access to view their machine instructions look like Step 1: Does your screen show
RE: font missing warning
To everyone! I emailed the software group that's responsible for calling FOP.BAT (shoutout for Intersystems Cache/Zen software!), and they responded that there's a variable that I can set that take the configuration file location. I set this variable, and it now works! Woohoo!!! I can now go home and shovel from this North East (U.S.) winter storm. Thank you again folks! -Roberto -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 3:09 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning If you can modify the batch file and you can't modify the line which calls the batch file just put the arguments into the batch file if you want to hardcode them. Just put your argument string in where it's accepting arguments. That would be the line ending with %1. Either that or put the Fop.bat statement as I described below (except start with fop2.bat) into a new file named fop.bat and rename fop.bat. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 3:02 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes, but is there a way to place the -c conf\fop.xconf inside this batch file. Our software runs the FOP.BAT, I don't really know how this software tells it where the XSL and XML is located. I'm just wondering how I can hard code this inside the batch file. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 3:01 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Those are arguments. The bat accepts arguments as a pass value. So it's just Fop.bat -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:52 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning I'm getting somewhere... On the Test server, I renamed conf.xconf. When I tried to create the pdf from the Test server, I get this: WARNING: Font 'Consolas,normal,400' not found. Substituting with 'any,normal,400' But when I renamed it back to conf.xconf, I am still getting this error. I read in the docs that you can specify the config, so I did this: C:\Program Files\Apache\fopfop -xsl \temp\roberto\test2.xsl -xml \temp\roberto\test2.xml -pdf \temp\roberto\test2c.pdf -c conf\fop.xconf It worked again. I did the same on the PRODUCTION server, adding the -c option at the end, it also worked. Now, I'm trying to figure out where to put this -c option in the FOP.BAT so that it can work within. Thanks again Eric and Jeremias. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 2:43 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Yes. If you're using FOP you're running Java. Somewhere you have a file fop.jar. To compile the fonts into a jar you would need a Java editor (Eclipse, Netbeans). To use them as such you'd have to write your own Java code. That's the path I'm going. Fop doesn't provide an easy way to do that, but embedding them in a jar puts them in with the programs so using embedded code you can reference them directly. The custom jar has to be on the Java classpath so you don't have to worry about hardcoded font paths or auto detection. If you got it to work with the config file telling it where your fonts are I wouldn't worry about it. Other advantages to embedding the specific fonts you need in a jar 1) You can load custom fonts and get them to work on any system. 2) You don't need a config file. 3) The fonts go with the programs so you wouldn't have to worry about different machines having different versions of the same file. We actually had a problem years ago running reports in Courier font on client PCs which were running Windows 98 and for some reasons some PCs had a different version of font so the same report using a font file of the same name produced different output. If I'm testing a program on my PC or a test server I'd rather not rely on the test machine having the same file as the production server or another client machine unless It's a file I specifically put there. -Original Message- From: Roberto Cahanap [mailto:rcaha...@bioreference.com] Sent: Wednesday, February 02, 2011 2:08 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning compile the fonts into a jar... Yikes! That's foreign language to me, that sounds like java talk. Still testing and getting advice... :-) -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Wednesday, February 02, 2011 1:48 PM To: fop-users@xmlgraphics.apache.org Subject: RE: font missing warning Remote debugging means assumptions or questions or both. I started by assuming
Re: AW: AW: AW: [FOP 1.0] Worse performance than with 0.20.5 !?
Sent from the Blackberry Tour - Original Message - From: Matthias Müller [mailto:pym...@yahoo.de] Sent: Friday, January 21, 2011 02:53 AM To: fop-users@xmlgraphics.apache.org fop-users@xmlgraphics.apache.org Subject: AW: AW: AW: [FOP 1.0] Worse performance than with 0.20.5 !? I almost forgot the most important point: If I split the table after the 20th page (or rather: after each 200th table rows (assuming ~10 rows per page)), how do I ensure that the page-sequence ends at the page bottom. The size of the rows also may vary. Matthias - Ursprüngliche Mail Von: Matthias Müller pym...@yahoo.de An: fop-users@xmlgraphics.apache.org Gesendet: Freitag, den 21. Januar 2011, 8:31:15 Uhr Betreff: AW: AW: [FOP 1.0] Worse performance than with 0.20.5 !? I temporarily disabled all images and special fonts in my fo file and still have the issue with the heap space. So i assume that i only have a chance to improve the rendering by splitting the document in multiple page-sequences. The thing is now, that the size of the single tables may vary extremely. There's also a case that i produce a table over 400+ pages !!! What about splitting the tables after each, let's say, 20 pages? Where's the best performance, less than 20? - Ursprüngliche Mail Von: Andreas Delmelle andreas.delme...@telenet.be An: fop-users@xmlgraphics.apache.org Gesendet: Dienstag, den 18. Januar 2011, 18:14:38 Uhr Betreff: Re: AW: [FOP 1.0] Worse performance than with 0.20.5 !? On 18 Jan 2011, at 12:07, Matthias Müller wrote: Hi Mathias indeed, in the document I only have one page-sequence over 500+ pages. There are approx. 10 tables that stretch about 1 - 150 pages each. There are also nested tables. There are 3 images ( 30kb) on each page's footer. Your idea is to rewrite the stylesheets that each table is enclosed by a separate page-sequence. Am I right? That would be the most important change, indeed, but that would only be possible if there is no requirement to keep them together (i.e. to create pages containing the last rows of one table plus some rows of the next). If it is OK to have each table start on a new page, splitting into multiple page-sequences is definitely the first thing that I would try. Your images, I think, do not contribute to the memory usage. I assume they are fo:external-graphics, so they would be cached by URI, and there should normally be only one instance for each distinct image in the document. Regards Andreas --- - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: AW: AW: AW: [FOP 1.0] Worse performance than with 0.20.5 !?
LL Sent from the Blackberry Tour - Original Message - From: Matthias Müller [mailto:pym...@yahoo.de] Sent: Friday, January 21, 2011 02:53 AM To: fop-users@xmlgraphics.apache.org fop-users@xmlgraphics.apache.org Subject: AW: AW: AW: [FOP 1.0] Worse performance than with 0.20.5 !? I almost forgot the most important point: If I split the table after the 20th page (or rather: after each 200th table rows (assuming ~10 rows per page)), how do I ensure that the page-sequence ends at the page bottom. The size of the rows also may vary. Matthias - Ursprüngliche Mail Von: Matthias Müller pym...@yahoo.de An: fop-users@xmlgraphics.apache.org Gesendet: Freitag, den 21. Januar 2011, 8:31:15 Uhr Betreff: AW: AW: [FOP 1.0] Worse performance than with 0.20.5 !? I temporarily disabled all images and special fonts in my fo file and still have the issue with the heap space. So i assume that i only have a chance to improve the rendering by splitting the document in multiple page-sequences. The thing is now, that the size of the single tables may vary extremely. There's also a case that i produce a table over 400+ pages !!! What about splitting the tables after each, let's say, 20 pages? Where's the best performance, less than 20? - Ursprüngliche Mail Von: Andreas Delmelle andreas.delme...@telenet.be An: fop-users@xmlgraphics.apache.org Gesendet: Dienstag, den 18. Januar 2011, 18:14:38 Uhr Betreff: Re: AW: [FOP 1.0] Worse performance than with 0.20.5 !? On 18 Jan 2011, at 12:07, Matthias Müller wrote: Hi Mathias indeed, in the document I only have one page-sequence over 500+ pages. There are approx. 10 tables that stretch about 1 - 150 pages each. There are also nested tables. There are 3 images ( 30kb) on each page's footer. Your idea is to rewrite the stylesheets that each table is enclosed by a separate page-sequence. Am I right? That would be the most important change, indeed, but that would only be possible if there is no requirement to keep them together (i.e. to create pages containing the last rows of one table plus some rows of the next). If it is OK to have each table start on a new page, splitting into multiple page-sequences is definitely the first thing that I would try. Your images, I think, do not contribute to the memory usage. I assume they are fo:external-graphics, so they would be cached by URI, and there should normally be only one instance for each distinct image in the document. Regards Andreas --- - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font embed-url...
Hello Jeremias, We want to upgrade to FOP 1.0, but we would like to test it out first on a test machine before we put it into a live machine. Right now we are using version 0.95 and it is working well. We just have now a requirement that we want to embed the font in some documents. I am new to FOP so I will definitely be sending a lot of beginner questions to this mailing list. I have also been looking at the archive mailing list for this group in a website that I found online. Thanks for your help Jeremias. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com -Original Message- From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] Sent: Wednesday, December 15, 2010 4:32 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font embed-url... Hi Roberto, if you update to FOP 1.0, you can do away with the XML font metrics files (metrics-url attribute) and you can use the instructions found at the following URL to specify which fonts shall not be embedded. http://xmlgraphics.apache.org/fop/1.0/fonts.html#embedding (look for referenced-fonts) On 15.12.2010 16:53:19 Roberto Cahanap wrote: Hello! I am new to this mailing list, so thank you in advanced for helping. We have in the fop.xconf a setting like this: font metrics-url=file:///c:/Program Files/Apache/fop/fonts/luci.xml kerning=yes embed-url=file:///c:/Windows/Fonts/lucon.ttf encoding-mode=single-byte font-triplet name=Lucida Console Print style=normal weight=normal/ /font Which seems to work fine. This font declaration embeds this font into the PDF document. What we would like is the option of NOT embedding this also. So for some docs we would embed, while others we do not. Is this possible? Thank you. Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
RE: font embed-url...
Oh Ok. If I create 2 fop.xconf, then what I want to do should work. How do I tell FOP which one to use though? Is there a switch in the FOP.BAT that I can use to tell this? I see an option: -c cfg.xml in the documentation. Do I do it through this? Thanks Mehdi. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Thursday, December 16, 2010 4:50 AM To: fop-users@xmlgraphics.apache.org Subject: Re: font embed-url... Hi Roberto, Ok well the best way to do that, is to have two separate fop.xconf files, one that you use for your office use and one that you use for customer use. If you go to the URL that both myself and Jeremias sent you'll learn how to reference fonts rather than embedding them. As Jeremias said, the metrics XML file is deprecated and no longer necessary. Mehdi On 15 December 2010 21:31, Roberto Cahanap rcaha...@bioreference.com wrote: Hello Mehdi! Thank you for responding. What I mean by embedding is that I would like to have the fonts embedded when we are going to email the PDF to our customers. We want to embed because we want the recipient of the email to have the actual intended font when they are viewing and printing the PDF. But when we are printing the PDF here in the office, I would like the font to not be embedded in the PDF and have the PDF reader/printer look for the font during opening of the file. We want to not embed the font for this purpose so that it is a smaller file and can be copied faster to the print server. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Wednesday, December 15, 2010 4:26 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font embed-url... Hi Roberto, I assume by option of NOT embedding you mean that it would be configured in the FO, if so, then FOP doesn't support that directly. In that, there's no way for the FO to tell FOP whether to embed the font or not. However, one way to do this (though I haven't tried) would be to use a non-standard font name to embed and a standard one to reference. You can see how to reference fonts from the URL (http://xmlgraphics.apache.org/fop/1.0/fonts.html) but if you call the font you want to reference by a non-standard name i.e. Lucida Console Embed then that may do the trick. That would mean in each FO that you want the Lucida font embedded you'd use Lucida Console Embed and the standard name otherwise. I'm not sure if that would work, but its worth a go, I can't see why it wouldn't work. Mehdi On 15 December 2010 15:53, Roberto Cahanap rcaha...@bioreference.com wrote: Hello! I am new to this mailing list, so thank you in advanced for helping. We have in the fop.xconf a setting like this: font metrics-url=file:///c:/Program Files/Apache/fop/fonts/luci.xml kerning=yes embed-url=file:///c:/Windows/Fonts/lucon.ttf encoding-mode=single-byte font-triplet name=Lucida Console Print style=normal weight=normal/ /font Which seems to work fine. This font declaration embeds this font into the PDF document. What we would like is the option of NOT embedding this also. So for some docs we would embed, while others we do not. Is this possible? Thank you. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons
RE: font embed-url...
Thanks Jonathan! I'll try this example. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com -Original Message- From: Jonathan Levinson [mailto:jonathan.levin...@intersystems.com] Sent: Thursday, December 16, 2010 9:47 AM To: fop-users@xmlgraphics.apache.org Subject: RE: font embed-url... Here is an example: c:\fop-0.95\fop -c c:\fop-0.95\conf\fop.xconf -xml MyReport.xml -xsl MyReport.xsl -pdf MyReport.pdf Best Regards, Jonathan Levinson -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Thursday, December 16, 2010 9:24 AM To: fop-users@xmlgraphics.apache.org Subject: Re: font embed-url... Hi Roberto, In all honesty I haven't used the FOP.BAT but yes, the -c parameter sets the configuration file so it'll probably do the job. If that doesn't work, let me know. Thanks Mehdi On 16 December 2010 14:03, Roberto Cahanap rcaha...@bioreference.com wrote: Oh Ok. If I create 2 fop.xconf, then what I want to do should work. How do I tell FOP which one to use though? Is there a switch in the FOP.BAT that I can use to tell this? I see an option: -c cfg.xml in the documentation. Do I do it through this? Thanks Mehdi. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Thursday, December 16, 2010 4:50 AM To: fop-users@xmlgraphics.apache.org Subject: Re: font embed-url... Hi Roberto, Ok well the best way to do that, is to have two separate fop.xconf files, one that you use for your office use and one that you use for customer use. If you go to the URL that both myself and Jeremias sent you'll learn how to reference fonts rather than embedding them. As Jeremias said, the metrics XML file is deprecated and no longer necessary. Mehdi On 15 December 2010 21:31, Roberto Cahanap rcaha...@bioreference.com wrote: Hello Mehdi! Thank you for responding. What I mean by embedding is that I would like to have the fonts embedded when we are going to email the PDF to our customers. We want to embed because we want the recipient of the email to have the actual intended font when they are viewing and printing the PDF. But when we are printing the PDF here in the office, I would like the font to not be embedded in the PDF and have the PDF reader/printer look for the font during opening of the file. We want to not embed the font for this purpose so that it is a smaller file and can be copied faster to the print server. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Wednesday, December 15, 2010 4:26 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font embed-url... Hi Roberto, I assume by option of NOT embedding you mean that it would be configured in the FO, if so, then FOP doesn't support that directly. In that, there's no way for the FO to tell FOP whether to embed the font or not. However, one way to do this (though I haven't tried) would be to use a non-standard font name to embed and a standard one to reference. You can see how to reference fonts from the URL (http://xmlgraphics.apache.org/fop/1.0/fonts.html) but if you call the font you want to reference by a non-standard name i.e. Lucida Console Embed then that may do the trick. That would mean in each FO that you want the Lucida font embedded you'd use Lucida Console Embed and the standard name otherwise. I'm not sure if that would work, but its worth a go, I can't see why it wouldn't work. Mehdi On 15 December 2010 15:53, Roberto Cahanap rcaha...@bioreference.com wrote: Hello! I am new to this mailing list, so thank you in advanced for helping. We have in the fop.xconf a setting like this: font metrics-url=file:///c:/Program Files/Apache/fop/fonts/luci.xml kerning=yes embed-url=file:///c:/Windows/Fonts/lucon.ttf encoding-mode=single-byte font-triplet name=Lucida Console Print style=normal weight=normal/ /font Which seems to work fine. This font declaration embeds this font into the PDF document. What we would like is the option of NOT embedding this also. So for some docs we would embed, while others we do not. Is this possible? Thank you. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright
font embed-url...
Hello! I am new to this mailing list, so thank you in advanced for helping. We have in the fop.xconf a setting like this: font metrics-url=file:///c:/Program Files/Apache/fop/fonts/luci.xml kerning=yes embed-url=file:///c:/Windows/Fonts/lucon.ttf encoding-mode=single-byte font-triplet name=Lucida Console Print style=normal weight=normal/ /font Which seems to work fine. This font declaration embeds this font into the PDF document. What we would like is the option of NOT embedding this also. So for some docs we would embed, while others we do not. Is this possible? Thank you. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
RE: font embed-url...
Hello Mehdi! Thank you for responding. What I mean by embedding is that I would like to have the fonts embedded when we are going to email the PDF to our customers. We want to embed because we want the recipient of the email to have the actual intended font when they are viewing and printing the PDF. But when we are printing the PDF here in the office, I would like the font to not be embedded in the PDF and have the PDF reader/printer look for the font during opening of the file. We want to not embed the font for this purpose so that it is a smaller file and can be copied faster to the print server. Roberto Cahanap Developer, Reporting Department Bio-Reference Laboratories, Inc. Phone: 800-229-5227 x8499 Cell: 201-693-0132 Fax: 201-475-0344 Email: rcaha...@bioreference.com -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Wednesday, December 15, 2010 4:26 PM To: fop-users@xmlgraphics.apache.org Subject: Re: font embed-url... Hi Roberto, I assume by option of NOT embedding you mean that it would be configured in the FO, if so, then FOP doesn't support that directly. In that, there's no way for the FO to tell FOP whether to embed the font or not. However, one way to do this (though I haven't tried) would be to use a non-standard font name to embed and a standard one to reference. You can see how to reference fonts from the URL (http://xmlgraphics.apache.org/fop/1.0/fonts.html) but if you call the font you want to reference by a non-standard name i.e. Lucida Console Embed then that may do the trick. That would mean in each FO that you want the Lucida font embedded you'd use Lucida Console Embed and the standard name otherwise. I'm not sure if that would work, but its worth a go, I can't see why it wouldn't work. Mehdi On 15 December 2010 15:53, Roberto Cahanap rcaha...@bioreference.com wrote: Hello! I am new to this mailing list, so thank you in advanced for helping. We have in the fop.xconf a setting like this: font metrics-url=file:///c:/Program Files/Apache/fop/fonts/luci.xml kerning=yes embed-url=file:///c:/Windows/Fonts/lucon.ttf encoding-mode=single-byte font-triplet name=Lucida Console Print style=normal weight=normal/ /font Which seems to work fine. This font declaration embeds this font into the PDF document. What we would like is the option of NOT embedding this also. So for some docs we would embed, while others we do not. Is this possible? Thank you. The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain BioReference Laboratories proprietary information, which is privileged, confidential, or subject to copyright belonging to BioReference Laboratories. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org