Re: Croatian characters in fop created pdf
On Fri, 2002-12-13 at 08:35, Adis Katkic wrote: > Hi, > croatian characters are of type ISO-8859-2 (latin 2) > The unusual characters are: . Whatever the characters are, all I can see is a "." I don't know if I said it before, but Fop doesn't use the fonts from you platform, apart from the default fonts you need to embed the fonts. > Thanks Keiron but I'm still stack with my problem. If you look at the docs/examples/fo/fonts.fo it has all the characters for the inbuilt fonts. If the characters you need are not there then you will need another font that has the characters, if they are there you need to use the correct encoding or character reference. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Croatian characters in fop created pdf
Hi, croatian characters are of type ISO-8859-2 (latin 2) The unusual characters are: è æ ð . Thanks Keiron but I'm still stack with my problem. From: Keiron Liddle <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: FOP <[EMAIL PROTECTED]> Subject: Re: Croatian characters in fop created pdf Date: 12 Dec 2002 11:17:35 +0100 > The default pdf fonts only have a certain set of characters. I just found on this page: http://partners.adobe.com/asn/developer/technotes/fonts.html the CMAPS of the core fonts (down the bottom). Does anyone know if they correspond (with data) to our xml font files. Also is there anywhere that shows a list of the glyphs for these fonts, preferably with a picture. So that it is easier to find if a font has the characters needed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Croatian characters in fop created pdf
> The default pdf fonts only have a certain set of characters. I just found on this page: http://partners.adobe.com/asn/developer/technotes/fonts.html the CMAPS of the core fonts (down the bottom). Does anyone know if they correspond (with data) to our xml font files. Also is there anywhere that shows a list of the glyphs for these fonts, preferably with a picture. So that it is easier to find if a font has the characters needed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Croatian characters in fop created pdf
Hi, I'll try to clarify the FAQ entry. The short answer is that you need to configure it to embed the required font and/or use the correct encoding for the characters in the XML. The default pdf fonts only have a certain set of characters. I don't know anything about croatian characters so I might need some more help from you. btw this is more of a user question. Keiron. On Thu, 2002-12-12 at 08:46, Adis Katkic wrote: > Hi > I have created I java class that takes xml file and xsl file and creates > pdf. > > Now my xml has croatian character and those are showen as #. > I read documentation and it says that fonts must be avaliable on the > platform. > Now I don't understand this since I have croatina locale set and I can view > pdf files that have > croatian characters. > I have tried to use different font familises for fo:block tag. (Arial, > Symbol etc ...) > > > What should I do to make it work. If you can explain it to me step by step I > would be very thankful. > > My method is - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Croatian characters in fop created pdf
Hi I have created I java class that takes xml file and xsl file and creates pdf. Now my xml has croatian character and those are showen as #. I read documentation and it says that fonts must be avaliable on the platform. Now I don't understand this since I have croatina locale set and I can view pdf files that have croatian characters. I have tried to use different font familises for fo:block tag. (Arial, Symbol etc ...) What should I do to make it work. If you can explain it to me step by step I would be very thankful. My method is public void createPdf(String xml, String xslPath, String outputPdfPath) throws TransformerConfigurationException, TransformerException, FileNotFoundException, FOPException, IOException { Logger log = new ConsoleLogger(ConsoleLogger.LEVEL_WARN); MessageHandler.setScreenLogger(log); FileOutputStream fos=new FileOutputStream(outputPdfPath); //Options options = new Options(new File("c:\\Adis\\MedicSoft\\MedicsoftClient\\GUI\\config\\print\\userconfig.xml")); Driver driver=new Driver(); driver.setLogger(log); driver.setOutputStream(fos); driver.setRenderer(Driver.RENDER_PDF); StreamSource xmlStreamSource=new StreamSource(new StringReader(xml)); Transformer transformer=TransformerFactory.newInstance().newTransformer(new StreamSource(xslPath)); transformer.transform(xmlStreamSource, new SAXResult(driver.getContentHandler())); fos.close(); } and xsl that is used for fop is very easy xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format";> http://www.w3.org/1999/XSL/Format";> page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm"> font-family="sans-serif" line-height="24pt" space-after.optimum="15pt" background-color="blue" color="white" text-align="center" padding-top="3pt"> font-family="Symbol" line-height="15pt" space-after.optimum="3pt" text-align="justify"> _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]