How can I set the density of a pdf file in dpi?
Hi How can I set the density in dpi for a generated pdf file? Thanks Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SVG to PDF: CMYK conversion / Can't open PDF in Adobe Illustrator
Hi It seems I'm not the only one with this problem. Have a look in the Adobe user to user forum for the Illustrator (Win). There is a message with the topic File opens in all PDF viewers except Illustrator 10.. Forum: http://www.adobeforums.com/cgi-bin/webx?14@@.ee6b328 Hans Jeremias Maerki [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] On 11.03.2003 16:04:00 Hans Stoessel wrote: If I convert the SVG file with the version of FOP, the PDF file is much bigger (about 5 times). And a font I use (Arial) in the SVG file is changed in the PDF file. With the version 0.20.5 works this correct. I think I use the old version for the moment... Probably safe. The reason for these two problems is the lack of configuration (no compression, no custom fonts), I think. This will be addressed for the first release of the PDF transcoder. Monitor this mailing list for announcements. One more question: Can I change the size (widht and height) of the generated PDF file? There's something about that here: http://xml.apache.org/fop/dev/svg.html The test.svg and the resulting PDF you sent are pretty simple. I've cross-checked most elements in the PDF with the PDF spec and I can't see anything strange. Without access to Adobe Illustrator and/or a better error message from it I can't do anything else. Probably best if you sent the PDF to Adobe support. The PDF, by the way, opens nicely in GhostScript/GhostView and CorelDraw. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SVG to PDF: CMYK conversion / Can't open PDF in Adobe Illustrator
Hi I convert an SVG file into a PDF file using FOP: //-- // Save as PDF //-- boolean saveAsPDF() { try { Configuration.put(strokeSVGText, Boolean.FALSE); // create a JPEG transcoder PDFTranscoder t = new PDFTranscoder(); // set the transcoding hints // create the transcoder input String s = new File(C:\\Temp\\Chart.svg).toURL().toString(); TranscoderInput input = new TranscoderInput(s); // create the transcoder output OutputStream ostream = new FileOutputStream(C:\\Temp\\Chart.pdf); TranscoderOutput output = new TranscoderOutput(ostream); // save the image t.transcode(input, output); // flush and close the stream then exit ostream.flush(); ostream.close(); } catch (FileNotFoundException e) { return false; } catch (IOException e) { return false; } catch (TranscoderException e) { return false; } return true; } The conversion works fine, but I have 2 problems: - The SVG file is in RGB colorspace, the PDF should be in CMYK. How can I convert RGB to CMYK? - I can open the PDF in Adobe Reader, but not in Adobe Illustrator. What could be wrong? Has anybody the same effect? Thanks for help Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SVG to PDF: CMYK conversion / Can't open PDF in Adobe Illustrator
Hi Thanks for your answer. Update in CVS: ...I suggest you update to the one in CVS because it's improved and nearing a release. ...and we could use some testers. :-) I have downloaded the latest version and built it. But it doesn't work. The class org.apache.fop.configuration.Configuration is missing. I removed it from my code and tried to transcode the SVG to PDF. But in the method transcode in the class PDFTranscoder the error ClassNotFoundException occured in URLClassLoader. I suppose a class isn't available. CMYK conversion: The PDF transcoder contains some code to pass CMYK color to the PDF if it's specified as CMYK in the SVG. If you can convert your SVGs to CMYK colorspace you have some (!) chance of sucess. I can't convert my SVg to CMYK because SVg doesn't support CMYK, only RGB. Can't open PDF in Adobe Illustrator: But doing a quick search in the archives I found this: http://marc.theaimsgroup.com/?t=10221860971r=1w=2 I have a look in this group and changed PDFStream.java like discribed. But it doesn't work. The PDF transcoder would have to be extended to provide RGB-to-CMYK conversion functions. As another option: there maybe some PDF tool around that can do the conversion for you. Do you know such a tool? Or a lib for Java? ignore xml:lang=de_CH_LUVele Dank ond au e Gruess! :-)/ignore Hans Stössel -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SVG to PDF: CMYK conversion / Can't open PDF in Adobe Illustrator
Sorry, attachment forgotten... Hans Jeremias Maerki [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] On 11.03.2003 12:05:43 Hans Stoessel wrote: Hi Thanks for your answer. Update in CVS: ...I suggest you update to the one in CVS because it's improved and nearing a release. ...and we could use some testers. :-) I have downloaded the latest version and built it. But it doesn't work. The class org.apache.fop.configuration.Configuration is missing. I removed it from my code and tried to transcode the SVG to PDF. But in the method transcode in the class PDFTranscoder the error ClassNotFoundException occured in URLClassLoader. I suppose a class isn't available. Setting the strokeSVGText property is not necessary anymore because the PDF transcoder decides itself if it can use the PDF TextPainter or if the text must be stroked because there is some complex transformation. Can you post a complete stacktrace and maybe a little SVG file that is failing in your application? CMYK conversion: The PDF transcoder contains some code to pass CMYK color to the PDF if it's specified as CMYK in the SVG. If you can convert your SVGs to CMYK colorspace you have some (!) chance of sucess. I can't convert my SVg to CMYK because SVg doesn't support CMYK, only RGB. Learn something new every day. Thanks for pointing this out. Can't open PDF in Adobe Illustrator: But doing a quick search in the archives I found this: http://marc.theaimsgroup.com/?t=10221860971r=1w=2 I have a look in this group and changed PDFStream.java like discribed. But it doesn't work. Can you try to find the smallest SVG example that works with Illustrator (if that exists) and then add features again (text, lines, shapes...) until you experience the bug in Illustrator. That should help narrowing down the problem point. Maybe you could also send the PDF to Adobe support and ask them to analyze what's wrong with it. That feedback could also help us to find the problem. The PDF transcoder would have to be extended to provide RGB-to-CMYK conversion functions. As another option: there maybe some PDF tool around that can do the conversion for you. Do you know such a tool? Or a lib for Java? Searching for pdf rgb cmyk conversion shows quite a few promising links. http://www.pdfstore.com/details.asp?ProdID=215, for example. Jeremias Maerki begin 666 Temp.zip [EMAIL PROTECTED](`'5O:RXVC.)'^SL``']!```11F5H;5R;65L9'5N9RYP M9:EO [EMAIL PROTECTED]@E)([EMAIL PROTECTED]C*!=2H4B'3WT-W2W8QT M=\S_1A^?]YSSG._]ONOZ[XN+=:[EMAIL PROTECTED],P,KD7KZL'J M9O;AE\'6=C06$!/([EMAIL PROTECTED]/QAK:FON; %B!DA*($9Q2[SJ2/PC9T-A4U M-;8S,04)* Y.3N:[EMAIL PROTECTED]H4*L,8DC22\O34[^2ZU6D[D9B\/'IW[[ M):WZ09Q\O^K@:2^[BGW7P^\82'^53\Y1C.U-?EK//#N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,STY
Re: SVG to PDF: CMYK conversion / Can't open PDF in Adobe Illustrator
OK, I can transcode my SVG file now with the new FOP version. The PDF is much bigger than before, but I can't still open it in Adobe Illustrator. With the Reader it works. Hans Jeremias Maerki [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] That's easy. See below. On 11.03.2003 14:31:19 Hans Stoessel wrote: In the attachment, you'll find a zipfile who contains the following files: test.svg - svg file chart.pdf - created from test.svg, can't open in illustrator, only in Adobe Reader fehlermeldung.pdf - error message if I try to open chart.pdf in adobe illustrator 10 (mac) test big.svg - bigger svg file The problem with the ClassNotFoundException occurs only if I try to convert test big.svg. With test.svg it works. And here the stacktrace: Hit Unbehandelte Exception java.lang.ClassNotFoundException Hit Unbehandelte Exception java.lang.ClassNotFoundException java.lang.NoClassDefFoundError: org/apache/avalon/framework/ValuedEnum That's a class from avalon-framework.jar. Please put it in your classpath. This fact will be documented before we make the initial release of the PDF transcoder. snip/ Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SVG to PDF: CMYK conversion / Can't open PDF in Adobe Illustrator
If I convert the SVG file with the version of FOP, the PDF file is much bigger (about 5 times). And a font I use (Arial) in the SVG file is changed in the PDF file. With the version 0.20.5 works this correct. I think I use the old version for the moment... One more question: Can I change the size (widht and height) of the generated PDF file? Thanks and have a nice evening Hans Jeremias Maerki [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] That's easy. See below. On 11.03.2003 14:31:19 Hans Stoessel wrote: In the attachment, you'll find a zipfile who contains the following files: test.svg - svg file chart.pdf - created from test.svg, can't open in illustrator, only in Adobe Reader fehlermeldung.pdf - error message if I try to open chart.pdf in adobe illustrator 10 (mac) test big.svg - bigger svg file The problem with the ClassNotFoundException occurs only if I try to convert test big.svg. With test.svg it works. And here the stacktrace: Hit Unbehandelte Exception java.lang.ClassNotFoundException Hit Unbehandelte Exception java.lang.ClassNotFoundException java.lang.NoClassDefFoundError: org/apache/avalon/framework/ValuedEnum That's a class from avalon-framework.jar. Please put it in your classpath. This fact will be documented before we make the initial release of the PDF transcoder. snip/ Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting SVG files to different file formats
Thomas E Deweese [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] HS == Hans Stoessel [EMAIL PROTECTED] writes: HS I try to do that on different ways, f.e. with Batik, FOP HS and Image Magick, but the results are bad. I guess we need to understand what 'results are bad' means, please elaborate, what specifically is bad about them? Bad quality means that the text (fonts) is bad looking (rasterd, gray not black, ...). It seems to be the resolution or something like that. The latest versions of FOP should do a good job of PDF generation. Do you have a code example how I can convert SVG to PDF using Batik/FOP? Thanks Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Converting SVG files to different file formats
Hi I have a Java (JDK 1.4.1) standalone application which generates SVG files (Charts with JFreeChart). This charts should be converted into different file formats like JPG, PDF and maybe EPS. The converted files must be high quality files for printing media. I try to do that on different ways, f.e. with Batik, FOP and Image Magick, but the results are bad. I use Windows 2000 as OS. - How can I do that? - Does anybody know a good way to convert files form SVG into different formats with a high quality? - Has anybody sample code how to improve the quality when I use Image Magick or Batik? - Has anybody sample code how I can convert an SVG file into high quality PDF using FOP? - Is there an another good tool or Java library to do that? Thanks a lot Regards Hans PM Medici AG Hans Stössel Maihofstrasse 63 CH-6006 Luzern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]