We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Extracting images from PDF

Thread ID:

Created:

Updated:

Platform:

Replies:

97127 Oct 30,2010 01:45 PM Nov 24,2010 06:33 AM Windows Forms 7
loading
Tags: PDF
FeliceR
Asked On October 30, 2010 01:45 PM

Hi,
I'm trying to extract images from the attached PDF with the following code:

Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument(name)

' Loading Page collections
Dim loadedPages As PdfLoadedPageCollection = ldoc.Pages

' Extract Image from PDF document pages
For Each lpage As PdfLoadedPage In loadedPages

n += 1

Dim img As Image() = lpage.ExtractImages()
If img Is Nothing Then Continue For

For Each img1 As Image In img
img1.Save("Image.png", ImageFormat.Png)
Next img1

Next lpage

ldoc.Dispose()

but i get no images. The ExtractImages function return an empty Image array.

Can You give any hints?

Regards.




12_1004_AAPPL_0035_e887a43d.zip

Geetha M [Syncfusion]
Replied On November 1, 2010 07:20 AM

Hi FeliceR,

Thank you for your continued interest in Syncfusion products.

I was able to see the problem. But the images in the file use "CCITTFaxDecode" filter which Essential PDF currently does not support.

Please let me know if you have any questions.

Regards,
Geetha


FeliceR
Replied On November 1, 2010 01:07 PM

Hi Geetha,

Is there a way for extracting the data stream from PDF so I can treat it with a custom tiff library such the following:

http://stackoverflow.com/questions/2641770/extracting-image-from-pdf-with-ccittfaxdecode-filter

Regards,
Geetha



Geetha M [Syncfusion]
Replied On November 2, 2010 04:08 AM

Hi FeliceR,

Currently it is not possible to read data stream from PDF.

Please let me know if you have any questions.

Regards,
Geetha


FeliceR
Replied On November 20, 2010 11:41 AM

Hi,

I'm currently using Your library for handling PDF files.
So, Do I need to evaluate another PDF library such iTextSharp for handling these files? Replacing Your library.

Do You have a time line for embedding CCITT images?

Regards.


Priyadharshini J [Syncfusion]
Replied On November 23, 2010 05:08 AM

Hi FeliceR,

Thank you for your interest in syncfusion products.

We are able to see that the images in the PDF document are encoded using CCITTFaxDecode filter. Currently, Essential Pdf supports only extraction of images that are DCTDecoded. We have already added a feature request to extract CCITTFaxDecoded images. We will let you know once this feature is added to the library.

Please let us know if you have any queries.

Regards,
Priyadharshini



FeliceR
Replied On November 23, 2010 07:42 AM

Hy,

I have tryed to extract images with the attached PDF files and Your library seems do not return images.
...or better, it has found images, but the handle of the image isn't available.

Have You any hint?

Regards,
Felice



CODBARRE_2d544ab4.zip

Priyadharshini J [Syncfusion]
Replied On November 24, 2010 06:33 AM

Hi FeliceR,

Thanks for the details.

We are able to see that the barcode in the pdf is not an image and they are made up of graphical elements(series of lines). Since there is no image in the Pdf document, it was not extracted while using our API.

Please let us know if you have any queries.

Regards,
Priyadharshini



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;