Sign In  Sign Up Live-Chat

Wrong conversion, please check your pdf - error with a normal PDF file

Last post 10-25-2008, 7:47 AM by codewarior. 20 replies.
Page 1 of 2 (21 items)   1 2 Next >
Sort Posts: Previous Next
  •  08-19-2008, 7:31 AM 140407

    • DTZ is not online. Last active: Mon, Nov 24 2008, 6:59 AM DTZ
    • Top 500 Contributor
    • Joined on 07-08-2004
    • Posts 40
    • Issues: PDFKITNET-5786

    Wrong conversion, please check your pdf - error with a normal PDF file

    Attachment: Present (inaccessible)

    Hi,

    I'm using Aspose.Pdf.Kit to convert a pdf file to jpeg images and when I call pdfConverter.HasNextImage() the following exception is thrown:

    System.IO.IOException: Wrong conversion, please check your pdf.
       bij x30a678191d9b1780.x573da502a3364b6b.x5b81632e5b71b64c(Int32 x1de68a531466236f)
       bij Aspose.Pdf.Kit.PdfConverter.xb8c119fb5d79b3c7()
       bij Aspose.Pdf.Kit.PdfConverter.HasNextImage()

    Attached is the pdf file that is producing this problem. We're currently using Aspose.Pdf.Kit 2.7.0 but the problem also occurs in Aspose.Pdf.Kit 3.1.0.

    Gr.

    Lokhan Wong

    DTZ Zadelhoff

     
  •  08-19-2008, 1:46 PM 140477 in reply to 140407

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Hello Joeri,

    I have tested the issue and I am able to reproduce the same problem. In fact conversion of complex pdf files into image format is not supported properly. We would investigate the issue in detail, and will keep you informed with the status of correction. We apologize for the inconvenience that you have experienced in this regard.


    Nayyer Shahbaz
    Support Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-20-2008, 2:45 AM 140542 in reply to 140407

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Hello Joeri,

    I have discussed the issue with development team, and for the sake of its resolution, we need to look into the details of this matter. I have also logged it in our issue tracking system as PDFKITNET-5786. Soon we will update you with the status of correction.


    Nayyer Shahbaz
    Support Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-21-2008, 4:28 AM 140736 in reply to 140542

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    It seems there is problem with the image in your PDF. I tried extracting it with Acrobat and the resulting image is bad. We will try our best but I am afraid this problem can't be resolved in short time.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-28-2008, 1:17 PM 141664 in reply to 140736

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Attachment: Present (inaccessible)
    I am experiencing the same error ... attached is the pdf that I am trying to work with. Please note that this pdf was generated by the Aspose.Pdf.Pdf component. I am running this on Windows Server 2003 Standard 64-bit ... it runs fine on Windows XP Sp3. I would love to be able to use your components in our solution, but 64-bit is a MUST.
     
  •  08-28-2008, 2:34 PM 141677 in reply to 141664

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Hi,

    I am sorry to inform you that this feature is not supported in 64 bit OS environment. Our development team is working hard to support it over 64 bit, but I am afraid it’s hard to accomplish in short time. It is also mentioned at Features not supported

     

    We apologize for your inconvenience.


    Nayyer Shahbaz
    Support Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-29-2008, 9:33 AM 141774 in reply to 141677

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Thanks for the update. Any timeline on when you may have a fix for this?

    Phil

     

     
  •  08-29-2008, 1:38 PM 141794 in reply to 141774

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Hello Phil,

    I am afraid I cannot provide you the time lines, in which we can support this feature. I will contact the development team, and they will update you with the status of implementation for this requirement.


    Nayyer Shahbaz
    Support Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  08-29-2008, 7:51 PM 141824 in reply to 141774

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Dear Phil,

    We are working on this issue but we can't support it in short time. I hope we can support it at December.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-01-2008, 3:31 AM 141890 in reply to 140736

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Hi,

    I'm glad to hear that you're working on the problem and it's fine if it takes some time to solve it. Related to this problem is the issue that memory seems to be corrupted after an attempt was made to convert the erroneous pdf. So attempts made to convert valid pdf's, which have been successfully been converted before, will throw the following exception:

    [AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory has been corrupted.]
       System.Diagnostics.StackTrace.GetStackFramesInternal(StackFrameHelper sfh, Int32 iSkip, Exception e) +0
       System.Diagnostics.StackTrace.CaptureStackTrace(Int32 iSkip, Boolean fNeedFileInfo, Thread targetThread, Exception e) +54
       System.Diagnostics.StackTrace..ctor(Exception e, Boolean fNeedFileInfo) +38
       System.Web.UnhandledErrorFormatter.get_ColoredSquare2Content() +586
       System.Web.UnhandledErrorFormatter.PrepareFormatter() +45
       System.Web.ErrorFormatter.GetHtmlErrorMessage(Boolean dontShowSensitiveInfo) +56
       System.Web.HttpResponse.WriteErrorMessage(Exception e, Boolean dontShowSensitiveErrors) +590
       System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute) +225
       System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) +383

    And this is very annoying and is causing more problems for us than the failed conversion problem itself. So we'd like to see this problem solved first if possible.

    I have to add that we're running Aspose.Pdf.Kit in an Asp.Net environment.

    Gr.

    Lokhan Wong

    DTZ Zadelhoff

    P.S.: To reproduce the problem, take the erroneous pdf and try to convert it. After it failed, try to convert a valid pdf. It may take several attempts and we only tried this in an Asp.Net environment.

     
  •  09-01-2008, 5:18 AM 141917 in reply to 141890

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Hi,

    Thanks for your reporting. We will try to resolve the memory-corruption-issue ASAP and I hope we could sent you the fix this week.

    Thanks,


    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-24-2008, 3:57 PM 145408 in reply to 141917

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Attachment: Present (inaccessible)
    I am seeing the same issue : although we are getting a 'bogus memory allocation' error following with a Exit(1) hence killing the process.  Completely outside the control of the CLR, so any fix would be great.

    Attached the offending PDF, and sorry to post twice -- would like the memory protection issue fix as well.

    This will kill the process immediately:

                PdfConverter converter = new PdfConverter();
                converter.BindPdf(File.OpenRead(@"0fce1ad7-6b0d-4e3b-b75f-4b0e1bb12856.pdf"));
                converter.DoConvert();

                // generate an image for each page in the pdf
                //
                MemoryStream outputStream = new MemoryStream();

                while (converter.HasNextImage())  // <-- line which dies
                {
                  // PROCESS DIES IN WIN32 LAYER SO NO CLEAN SHUTDOWN FOR THE CLR

    Cheers,

    Robert

     
  •  09-24-2008, 5:52 PM 145420 in reply to 145408

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Hi Robert,

    The query has been answered in 145355


    Nayyer Shahbaz
    Support Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-24-2008, 8:37 PM 145432 in reply to 145420

    Re: Wrong conversion, please check your pdf - error with a normal PDF file


    Thanks and sorry for the dual post, was a long night finding out what killed the application.

    Cheers,

    Robert
     
  •  09-25-2008, 3:17 AM 145484 in reply to 145432

    Re: Wrong conversion, please check your pdf - error with a normal PDF file

    Attachment: Present (inaccessible)

    Hi,

    Please download the attachment and replace the two .res files(Aspose.Pdf.Kit.res, which could be found in "..\Bin\net1.1\"&"..\Bin\net2.0\" in the install path of Kit) with the attached one. Note that this fix may not work on x64 system.

    Thanks,


    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
Page 1 of 2 (21 items)   1 2 Next >
View as RSS news feed in XML