Problems trying to extract an image of a pdf file
Posted: Sat Dec 07, 2019 1:45 pm
Hello ORPALIS Team,
I've attached for you a PDF with strange behaviour.
This PDF was created with GDPicture v14.1.35 from .jpg files.
After that, there was the need to ultra-compress the file.
We do this with approx. 3.000 files day by day - we have big problems then with the MRC engine, but I will post this under the MRC topic.
The problem with the linked pdf file here is, that page 3 cannot be extracted.
Neitehr with this command
If urGdPicturePdf.IsPageImage Then
ImageID = urGdPicturePdf.ExtractPageImage(1)
nor with this one
Else
ImageID = urGdPicturePdf.RenderPageToGdPictureImage(200, True)
I recreated the PDF from the same .jpg files and the problem persists.
http://alt.Infoscan.de/Download/g011i00 ... 55v001.pdf
For test purposes I removed the pages 5 to 100 and tried to MRC compress the remaining 4 pages.
Now page 3 can be extracted but produces a memory leak when trying to add the image to a new pdf page wit this command:
status = oGdPicturePdf.AddImageFromGdPictureImage(ImageID, AdvancedCompression)
http://alt.Infoscan.de/Download/g011i00 ... esOnly.pdf
Hope that helps to find a bug and improve your product.
Greetings
Reini
I've attached for you a PDF with strange behaviour.
This PDF was created with GDPicture v14.1.35 from .jpg files.
After that, there was the need to ultra-compress the file.
We do this with approx. 3.000 files day by day - we have big problems then with the MRC engine, but I will post this under the MRC topic.
The problem with the linked pdf file here is, that page 3 cannot be extracted.
Neitehr with this command
If urGdPicturePdf.IsPageImage Then
ImageID = urGdPicturePdf.ExtractPageImage(1)
nor with this one
Else
ImageID = urGdPicturePdf.RenderPageToGdPictureImage(200, True)
I recreated the PDF from the same .jpg files and the problem persists.
http://alt.Infoscan.de/Download/g011i00 ... 55v001.pdf
For test purposes I removed the pages 5 to 100 and tried to MRC compress the remaining 4 pages.
Now page 3 can be extracted but produces a memory leak when trying to add the image to a new pdf page wit this command:
status = oGdPicturePdf.AddImageFromGdPictureImage(ImageID, AdvancedCompression)
http://alt.Infoscan.de/Download/g011i00 ... esOnly.pdf
Hope that helps to find a bug and improve your product.
Greetings
Reini