Aspose PDF Kit problem : Unable to load PDF

Last post 03-12-2009, 6:23 AM by forever. 5 replies.
Sort Posts: Previous Next
  •  12-09-2008, 8:54 AM 155773

    Aspose PDF Kit problem : Unable to load PDF

            Hi

    Hello, we have a problem with the PDF content editor with some PDF files.
    Here a simple code that throws error :

    public class AsposeTest {
        
        public static void main(String[] args) throws Exception {
            PdfContentEditor editor = new PdfContentEditor();
            
            FileInputStream in = new FileInputStream("C:\\LOCALAPP\\singapour_in\\SIFMAG1G213.pdf");
            editor.bindPdf(in);    // Error is here
            
            editor.replaceText("test", "test1");
            
            editor.save("C:\\LOCALAPP\\singapour_in\\test.pdf");
        }

    }


    And the error :

    java.io.IOException: Wrong dictionary declaration
        at com.aspose.pdf.kit.nh.do(Unknown Source)
        at com.aspose.pdf.kit.nh.for(Unknown Source)
        at com.aspose.pdf.kit.j.n(Unknown Source)
        at com.aspose.pdf.kit.j.m(Unknown Source)
        at com.aspose.pdf.kit.gl.a(Unknown Source)
        at com.aspose.pdf.kit.PdfContentEditor.bindPdf(Unknown Source)
        at com.dexia.lndm.AsposeTest.main(AsposeTest.java:17)
    java.lang.NullPointerException
        at com.aspose.pdf.kit.fs.a(Unknown Source)
        at com.aspose.pdf.kit.PdfContentEditor.replaceText(Unknown Source)
        at com.dexia.lndm.AsposeTest.main(AsposeTest.java:19)


    The PDF File is not corrupted because I am able to read it with Acrobat Reader without problem.
    Where can come the error?

    Thanks in advance for your precious help.

    Best regards,

    Gildas Cuisinier

     
  •  12-09-2008, 9:29 AM 155778 in reply to 155773

    Re: Aspose PDF Kit problem : Unable to load PDF

    Hi,

    Thank you for considering Aspose.

    Could you please attach the source pdf(SIFMAG1G213.pdf) in this thread to let us check it? 

    Thanks,

    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  12-10-2008, 1:54 AM 155862 in reply to 155778

    Re: Aspose PDF Kit problem : Unable to load PDF

    Attachment: Present (inaccessible)
    Sure, here it is
     
  •  12-10-2008, 6:58 AM 155891 in reply to 155862

    Re: Aspose PDF Kit problem : Unable to load PDF

    Hi,

    Thanks for your reporting. I am able to reproduce the error and have logged it as PDFKITJAVA-6849 in our issue tracking system. We will try to resolve it ASAP.

    Thanks,

    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  12-14-2008, 10:35 PM 156389 in reply to 155891

    Re: Aspose PDF Kit problem : Unable to load PDF

    Attachment: Present (inaccessible)

    Hi,

    The issue PDFKITJAVA-6849 has been resolved, please download the attached Beta version(v2.2.0.1) of aspose.pdf.kit.jar and try it.

    And please note that your attached pdf file could not be support well (would lose infomation after replacing text). It is because that the font used for some characters of the pdf  is very special, which induce an known but unresolved issue of font substitution. We will try to resolve that issue in our next version. Sorry for the inconvenience.

    Thanks,


    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  03-12-2009, 6:23 AM 169426 in reply to 155773

    Re: Aspose PDF Kit problem : Unable to load PDF

    The issues you have found earlier (filed as 6849) have been fixed in this update.


    This message was posted using Notification2Forum from Downloads module by forever.
     
View as RSS news feed in XML