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]