Sign In  Sign Up Live-Chat

problem with pdfContent.replaceText

Last post 06-29-2008, 7:21 PM by forever. 3 replies.
Sort Posts: Previous Next
  •  06-17-2008, 2:08 AM 131545

    problem with pdfContent.replaceText

    I have problem with using yours library in this simple code

    import com.aspose.pdf.kit.*;
    public class M238pdfCompress {
    public static void main(String[] args) throws Exception {

    PdfContentEditor pdfContent = new PdfContentEditor();
    try{
    pdfContent.bindPdf("c:\\rtf.pdf");
    pdfContent.replaceText("a","b");
    pdfContent.save("c:\\kk.PDF");
    }catch(Exception ex){
    ex.printStackTrace();
    }

    }
    }


    I have this message at console:

    java.lang.NullPointerException
    at com.aspose.pdf.kit.f4.a(Unknown Source)
    at com.aspose.pdf.kit.PdfContentEditor.replaceText(Unknown Source)
    at M238pdfCompress.main(M238pdfCompress.java:28)


    But this code works correct

    import com.aspose.pdf.kit.*;
    public class M238pdfCompress {
    public static void main(String[] args) throws Exception {

    PdfContentEditor pdfContent = new PdfContentEditor();
    try{
    pdfContent.bindPdf("c:\\rtf.pdf");
    pdfContent.createBookmarks();
    pdfContent.save("c:\\kk.PDF");
    }catch(Exception ex){
    ex.printStackTrace();
    }

    }
    }


    This message was posted using Email2Forum by ShL77.
     
  •  06-17-2008, 4:58 AM 131582 in reply to 131545

    Re: problem with pdfContent.replaceText

    Hello Michal,

    Thanks for considering Aspose.

    We apologies for in convenience that you have faced in this reagard. I am sorry to inform that Replace text dose not work well and its a known issue in Aspose.Pdf.Kit

    As soon as we have solution to this problem, we would be pelased to udpate youl.


    Nayyer Shahbaz
    Support Developer
    Aspose Changsha Team
    About Us
     
  •  06-29-2008, 8:55 AM 133542 in reply to 131582

    Re: problem with pdfContent.replaceText

    whether the term is known to repair this mistake?
    Best regards
    Michal
     
  •  06-29-2008, 7:21 PM 133554 in reply to 133542

    Re: problem with pdfContent.replaceText

    Hi Michal,

    I am afraid we can't resolve this problem in short time. Sorry for the inconvenience.


    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML