Sign In  Sign Up Live-Chat

Replace text in PDF

Last post 09-26-2007, 11:04 AM by seawolf. 20 replies.
Page 2 of 2 (21 items)   < Previous 1 2
Sort Posts: Previous Next
  •  09-22-2007, 8:34 PM 95837 in reply to 95836

    Re: Replace text in PDF

    Can you please attach your pdf document and code and let us check it?

    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-25-2007, 8:44 PM 96165 in reply to 95837

    Re: Replace text in PDF

    Attachment: Present (inaccessible)

    Hello.

    Yes sure.

    I will attach the file, and the code is as follows:

    PdfContentEditor ced = new PdfContentEditor();

    ced.BindPdf(@"\the\file\path\test1.pdf");

    ced.ReplaceText("<<APR1>>", "ABC12345");

    ced.Save(@"\the\file\path\test1_out.pdf");

    Thats all. And also i have tryed to optimised the input pdf for lower versions of pdf formats ,but the problem is still there.

    But I noticed that the output pdf get broken only when a replacement is about to be done. I mean, when I enter some matching string that I know it exists in the input PDF and it has to be related , the output file gets broken. otherwise, it gets OK, as a copy of the input file.

     

    Thank You

     
  •  09-25-2007, 10:01 PM 96173 in reply to 96165

    Re: Replace text in PDF

    Hi,

    Can you please provide us with the input file as well so that we can more accurately determine the cause of the problem.

    Thanks.

     
  •  09-26-2007, 4:59 AM 96221 in reply to 96173

    Re: Replace text in PDF

    Attachment: Present (inaccessible)
    Hi,
    Yes sure. I somehow missed to provide it.
    Here it is.
    Thank You
     
  •  09-26-2007, 10:16 AM 96270 in reply to 96221

    Re: Replace text in PDF

    Hi,

    I have been able to reproduce this error. I have logged this issue as PDFKITNET-3790 into our issue tracking system. Our developers will try their best to rectify this problem as soon as possible.

    Thanks.

     
  •  09-26-2007, 11:04 AM 96281 in reply to 96221

    Re: Replace text in PDF

    Hi,

    you can go to the page (http://www.aspose.com/Community/Forums/thread/96008.aspx )

    to download the new dll to test. this problem has been solved in the new fix version.

    but until now, the function of replacing text is not perfect, for some special document, it may exist some problems. we will try best to improve this function.


    Allen Wen
    Developer
    Aspose Changsha Team

     
Page 2 of 2 (21 items)   < Previous 1 2
View as RSS news feed in XML