Sign In  Sign Up Live-Chat

PdfContentEditor.Save - pdf head signature is not found

Last post 02-28-2007, 11:57 PM by GeorgieYuan. 6 replies.
Sort Posts: Previous Next
  •  02-18-2007, 5:37 AM 68143

    PdfContentEditor.Save - pdf head signature is not found

    Hi,

    I´m evaluating the library and after browsing it in the object browser, I'm really eager to make some tests. I tried PdfContentEditor ReplaceText but got an exception when saving the result.

    After minimizing the code to the following, I still get the exception:

    Dim pdfEditor As New PdfContentEditor
    pdfEditor.BindPdf(pdfFile)
    pdfEditor.Save(Server.MapPath(
    "Templates/result3.pdf"))

    The exception message:

    [IOException: Invalid pdf format:pdf head signature is not found!]
       .... Aspose.Pdf.Kit.PdfContentEditor.Save(Stream outputStream) +65 Aspose.Pdf.Kit.PdfContentEditor.Save(String outputFile) +58
       ...

    So, just to test that my setup is correct, I altered the code to use PdfPageEditor as follows:

    Dim pdfEditor As New PdfPageEditor
    pdfEditor.BindPdf(pdfFile)
    pdfEditor.Save(Server.MapPath(
    "Templates/result3.pdf"))

    This code works fine and generates an output pdf, identical to the input file with the evaluation info added.

     

     
  •  02-18-2007, 6:30 PM 68150 in reply to 68143

    Re: PdfContentEditor.Save - pdf head signature is not found

    Hi,

    Thank you for considering Aspose.

    I have reproduced the error. I will discuss this with the developers and we will let you know as soon as a solution is found.

    Thanks.

     
  •  02-22-2007, 5:19 PM 68572 in reply to 68150

    Re: PdfContentEditor.Save - pdf head signature is not found

    Hi,

    We are still working on this issue and might need more time.

    Thanks.

     
  •  02-23-2007, 8:45 AM 68646 in reply to 68572

    Re: PdfContentEditor.Save - pdf head signature is not found

    FYI - this looks almost identical to what I reported a couple of days ago

    http://www.aspose.com/Community/forums/thread/68374.aspx

    James

    //save breaks with full exception thrown

    PdfContentEditor editor = new PdfContentEditor();

    editor.BindPdf("Aspose.Pdf.Kit.pdf");

    // no replace call

    editor.Save("out.pdf");

    -----------------------------------------------

    The exption message is:

    "Invalid pdf format:pdf head signature is not found!"

     
  •  02-27-2007, 11:36 PM 69040 in reply to 68572

    Re: PdfContentEditor.Save - pdf head signature is not found

    Hi,

    I'm still cosidering to order Aspose total.

    The ability to search an replace text in pdf document is importent to my project and a main reason to consider the Apose library.

    Do you estimate that this bug will be fixed within reasonably time, or do you advice me to try to find an alterative solution for this function?

    Regards

     

     

     
  •  02-28-2007, 12:47 AM 69045 in reply to 69040

    Re: PdfContentEditor.Save - pdf head signature is not found

    Our developers are still stdudying this issue and they will give a ETA ASAP.
    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  02-28-2007, 11:57 PM 69180 in reply to 69045

    Re: PdfContentEditor.Save - pdf head signature is not found

    We have fixed the bug "pdf head signature is not found!" and hotfix will be released in serveral days.

    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML