Sign In  Sign Up Live-Chat

Aspose.PDF.Kit - ExtractImage; blank image

Last post 09-25-2007, 9:07 PM by GeorgieYuan. 15 replies.
Page 1 of 2 (16 items)   1 2 Next >
Sort Posts: Previous Next
  •  05-21-2007, 5:07 AM 77334

    Aspose.PDF.Kit - ExtractImage; blank image

    Hi,

    Using the code sample on the site I have had mixed success extracting images - some PDFs work well, but one PDF in particular is saving and returning a completely black JPG where the image should be. Any thoughts?

    Barry Cranston


    This message was posted using Support 2 Forum
     
  •  05-21-2007, 7:51 AM 77352 in reply to 77334

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Hi,

    Thank you for considering Aspose.

    Can you please send your sample Pdf that is creating a problem, we will check and let you know.

    Thanks.

    Adeel Ahmad
    Support Developer
    Aspose Changsha Team
    http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

     
  •  05-24-2007, 4:46 AM 77924 in reply to 77352

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Attachment: Present (inaccessible)

    File attached,

     

    Thanks

     
  •  05-24-2007, 8:10 AM 77952 in reply to 77924

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Hi,

    I am unable to reproduce the error. I have checked it with version 2.5.1.0. Please make sure you are using the latest version of Aspose.Pdf.Kit. For your reference I used the following code:

    PdfConverter converter = new PdfConverter();

    converter.BindPdf("D:/AsposeTest/EnergyPerformanceCertificateSample_id1500761.pdf");

    converter.DoConvert();

    String prefix = "D:/AsposeTest/";

    String suffix = ".jpg";

    int imageCount = 1;

    while (converter.HasNextImage())

    {

    converter.GetNextImage(prefix + imageCount + suffix);

    imageCount++;

    }

    Thanks.

    Adeel Ahmad
    Support Developer
    Aspose Changsha Team
    http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html 

     
  •  05-30-2007, 4:30 AM 78525 in reply to 77952

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Hi,

    Thanks for that, however, it is the individual image extraction that is the problem, rather than the conversion of each page into an image.  See code snippet, which generates the problem, using version 2.5.0.0.

    Try

    'Set up licensing

    Dim myLicense As Aspose.Pdf.Kit.License = New Aspose.Pdf.Kit.License

    myLicense.SetLicense("Aspose.Pdf.Kit.lic")

    'Instantiate PdfExtractor object

    Dim extractor As PdfExtractor = New PdfExtractor()

    Dim inputfile As String = "C:\FileDrop\EPC.pdf"

    'Bind the input PDF document to extractor

    extractor.BindPdf(inputfile)

    'Set the Number of Page in PDF document from where to start image extraction

    extractor.StartPage = 1

    'Set the Number of Page in PDF document, where to end image extraction

    extractor.EndPage = 2

    'Extract images from the input PDF document

    extractor.ExtractImage()

    'A variable to store the prefix (First Part usually file name) of the image file name

    Dim prefix As String = "ImageFile"

    'A variable to count number of extracted images

    Dim suffix As String = ".jpg"

    'A variable to count number of extracted images

    Dim imageCount As Integer = 1

    'Calling HasNextImage method in while loop. When images will finish, loop will exit

    While extractor.HasNextImage()

    'Call GetNextImage method to store image as a file

    extractor.GetNextImage(prefix + imageCount.ToString + suffix)

    'Incrementing image counter variable

    imageCount = imageCount + 1

    End While

    Catch ex As Exception

    Console.WriteLine(ex.Message)

    Console.ReadLine()

    End Try

     
  •  05-30-2007, 8:41 AM 78549 in reply to 78525

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Hi,

    I am able to reproduce the error. I will discuss this with the developers and we will inform you of a solution as soon as possible.

    Thanks.

    Adeel Ahmad
    Support Developer
    Aspose Changsha Team
    http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

     
  •  06-14-2007, 9:48 AM 80555 in reply to 78549

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Any update on this?
     
  •  06-14-2007, 10:50 AM 80566 in reply to 80555

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Hi,

    This problem hasn't been resolved yet, our developers are working hard to find the root cause of this issue. We will let you know as soon as solution is found.

    Thanks for patience.

    Adeel Ahmad
    Support Developer
    Aspose Changsha Team
    http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

     
  •  07-16-2007, 10:14 AM 84276 in reply to 80566

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Its been another month - I'm less than impressed, and am now looking for alternate solutions, which I will be sure to share on the forums at every opportunity - this gives you a very small window in which to save this sale, and turn around a disatisfied customer.

     
  •  07-16-2007, 1:28 PM 84305 in reply to 84276

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Hi,

    I am very sorry about this, we will try to let you know by tomorrow about the progress on this issue. Sorry for inconvenience.

    Thanks.

    Adeel Ahmad
    Support Developer
    Aspose Changsha Team
    http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html
     
  •  07-16-2007, 10:01 PM 84355 in reply to 84305

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Hi,

    We have found the reason to cause this problem and working hard on this issue now. We hope it will be fixed in about 2 weeks.

    Best Regards.

    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-10-2007, 3:08 AM 90200 in reply to 84355

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Wondering if this issue has been resolved?

     

    Thanks,

     
  •  08-10-2007, 7:51 AM 90243 in reply to 90200

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Hi,

    We have meet some technology problem. We hope it will be fixed in the end of this month.

    Best Regards.

    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-25-2007, 2:27 AM 96003 in reply to 90243

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Please download hotfix 2.6.1.

    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-25-2007, 4:40 AM 96025 in reply to 96003

    Re: Aspose.PDF.Kit - ExtractImage; blank image

    Hello

    I have downloaded the hotfix and still get all black images.

    Thanks

     
Page 1 of 2 (16 items)   1 2 Next >
View as RSS news feed in XML