Hi,
we have problems converting the attached pdf document to jpg images using Aspose.PDF for Java. Most of the convertion works correct, but not for all pages:
- On the cover page (page 0), the caption texts at the bottom have some artefacts around it, making it “look strange”.
- Pages 3 and 4 have a dotted vertical line in the middle of the page, which is shown, but on the wrong location.
Can you reproduce this behaviuor and hopefully fix it?
Thanks,
Alexander
Hi Alexander,
Hi,
I tested it using the ersion 9.7.0, but this didn’t help …
Here is a code-snippet of my code for converting a single page:
JpegDevice jpegDevice = this.pdfJpegDevicefactory.build(dpi);
jpegDevice.process(pageCollection.get_Item(pageIndex), path);
I have attached the converted images, the cover with the artefacts around the captions and the 2 pages having a vertical dotted line at the wrong place.
Best regards,
Alexander
Hi Alexander,
Hi,
thanks for your quick answers!
I just extracted the whole code in a seperate, standalone main class, and when I tested it the problem wasn’t there anymore … So it isn’t a bug in Aspose, it has to be a wrong configuration in our code, I will search for it and fix it.
The thread can be closed now.
Regards,
Alexander
Hi Alexander,
Hi,
I investigated the problem deeper and found out, that the problem really is on Aspose side …
My sourcecode s simply:
String filePath = “DATEV_Magazin.pdf”;
int page = 4;
String outputPath = filePath + “_” + page + “.jpg”;
Document doc = new Document(filePath);
Resolution res = new Resolution(150);
JpegDevice jpegDevice = new JpegDevice(res, 90);
jpegDevice.process(doc.getPages().get_Item(page), outputPath);
In a standalone Java program, this is working properly.
But when I use it in our Java webservice, the problems mentioned above happen …
Regards,
Alexander
Hi Alexander,
have logged an investigation ticket in our issue tracking system as PDFNEWJAVA-34624. We will investigate this
issue in details and will keep you updated on the status of a correction.
We apologize for your inconvenience.
Hi,
has this issue been investigated?
Hi Alexander,