Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Problem with ReplaceText function in PdfContentEditor

Last post 04-21-2009, 1:55 AM by Felix.Liu. 13 replies.
Sort Posts: Previous Next
  •  11-14-2008, 10:35 AM 152662

    Problem with ReplaceText function in PdfContentEditor

    Attachment: Present (inaccessible)
    Hi,
    I have newest version of Aspose.Pdf.Kit Demo (3.3.0.0) and I have a problem when I try using ReplaceText function in C#. Here is a code I use:

                PdfContentEditor ced = new PdfContentEditor();
                try
                {
                    ced.BindPdf(path1 + @"northwind.pdf");
                    ced.ReplaceText("Chai", "dddd");
                    ced.Save(path2 + @"test_1.pdf");
                }
                catch (Exception ex)
                { MessageBox.Show(ex.StackTrace);}
    When I try to open created file (test_1.pdf) I get an error: Not found Token "483,674".

    I attach source and resultant files.

    My company consider to buy Aspose.Pdf.Kit so it's important to work properly. I'll be grateful for quick response.
     
  •  11-14-2008, 6:21 PM 152730 in reply to 152662

    Re: Problem with ReplaceText function in PdfContentEditor

    Attachment: Present (inaccessible)

    Hello Bartosz,

    Thanks for considering Aspose.

    I have tested the scenario using the code snippet and the Pdf file that you have shared and I am unable to reproduce the problem. I have tested it using Aspose.Pdf.Kit 3.3.0.0. The resultant Pdf after replacing text is in attachment, please take a look.

    Please share some more information regarding your project.

    FYI: This is Beta version of ReplaceText. The feature may not be supported well for some PDF files and we may be not able to fix it in short time.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  11-17-2008, 4:17 AM 152858 in reply to 152730

    Re: Problem with ReplaceText function in PdfContentEditor

    Hello,
    This error, I mentioned earlier, was appearing when I test on Windows Server 2003 R2 and Visual Studio 2008. Today I tested the same code on Windows Vista and Visual Studio 2008 and I got error trying opening the file: "Too few operands" and the pages are blank. I added also this code to your WinFormDemo2005 and it doesn't work yet.
     
  •  11-17-2008, 2:39 PM 152945 in reply to 152858

    Re: Problem with ReplaceText function in PdfContentEditor

    Hello Bartosz,

    I am not sure why you are facing this problem. Windows Server 2003 & Windows Vista are supported with Aspose.Pdf.Kit. Please make sure you are using the correct updated version of Aspose.Pdf.Kit 3.3.0.0, secondly please share if you are using 32 Bit architecture or 64 Bit architecture.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  11-18-2008, 2:00 AM 153015 in reply to 152945

    Re: Problem with ReplaceText function in PdfContentEditor

    Hello,
    Honestly I have no idea what's is wrong. I am using 32-bit architecture.
     
  •  11-18-2008, 7:15 AM 153072 in reply to 153015

    Re: Problem with ReplaceText function in PdfContentEditor

    Hi,

    I have reproduced this error by the language to non English like Spanish. I have logged this issue as PDFKITNET-6518. We will try to fix it soon.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  11-20-2008, 3:41 AM 153386 in reply to 153072

    Re: Problem with ReplaceText function in PdfContentEditor

    Hi,
    Please let me know when you fix this error because we very need this function.
     
  •  11-20-2008, 4:09 AM 153393 in reply to 153386

    Re: Problem with ReplaceText function in PdfContentEditor

    Hello Bartosz,

    Our development team is working hard to get this issue resolved, and soon you will be updated with the ETA for the resolution of this problem. Your patience in this regard is greatly appreciated.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  11-20-2008, 6:06 AM 153414 in reply to 153393

    Re: Problem with ReplaceText function in PdfContentEditor

    Attachment: Present (inaccessible)

    Hi,

    The issue PdfKitNet-6518 has been resolved. Now the function of replacing text could work properly in different language environment. Please download the attached Beta version of Aspose.Pdf.Kit.dll (v3.3.0.1) and try it.

    Thanks,


    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  11-24-2008, 3:18 AM 153837 in reply to 153414

    Re: Problem with ReplaceText function in PdfContentEditor

    Attachment: Present (inaccessible)
    Hello,
    Thank you for fixing this bug, I've checked and it's working for most pdf's except one. I think the problem is with text in pdf but I don't know exactly what is wrong. I'll be grateful if you can check this pdf.
    Greetings
     
  •  11-24-2008, 6:21 AM 153872 in reply to 153837

    Re: Problem with ReplaceText function in PdfContentEditor

    Hi,

    We have checked the pdf and noticed that only the evaluation-info in that file could be replaced with other words. It is because the pdf uses a special operator to show text strings, dislike most PDF files do; moreover, the text strings take some transformation... Anyway, it is an known issue to us and we will try to resolve it before our next release(2 or 3 months later). Your patience will be appreciated.

    Thanks,

    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  03-24-2009, 11:30 PM 171368 in reply to 152662

    Re: Problem with ReplaceText function in PdfContentEditor

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


    This message was posted using Notification2Forum from Downloads module by forever.
     
  •  04-20-2009, 8:00 AM 175590 in reply to 171368

    Re: Problem with ReplaceText function in PdfContentEditor

    Hi,

    I tried yout update and it still not replacing the text in test.pdf file, which I've attached lately.
     
  •  04-21-2009, 1:55 AM 175711 in reply to 175590

    Re: Problem with ReplaceText function in PdfContentEditor

    Hi,

    Sorry for the inconvenience.

    The update resolves the issue PDFKITNET-6518 but, your lately attached file is really a hard problem to us...We will inform you in this thread when it could be resolved ( I feel shamed to say that to you after months and hope the issue would be resolved soon).

    Thanks,


    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML