I keep getting an error while trying to use the ReplaceText function in Aspose.
I have a console app where I only setup a server connection that I am planning to later use to retreive certain elements to insert into the pdf. I have tried the PDFCreation code and it works fine, but the ReplaceText gives me:
LNK2019
unresolved external symbol “__delspec(dllimport) public: bool __thiscall Aspose::Pdf::Facades::PdfContentEditor::ReplaceTextW(class::System::String,class::System::String)” (_imp?ReplaceTextW@PdfContentEditor@Facades@Pdf@Aspose@@QAE_NVString@System@@0@Z) referenced in function _main
This is the function code I used(I am using he same sample pdf as the one provided in the github testing package)
// ExStart:ReplaceText
auto ce = MakeObject<Facades::PdfContentEditor>();
ce->BindPdf(u"C:/Users/hlahl/Desktop/Badr/docs/new.pdf");
auto options = MakeObject<TextReplaceOptions>(TextReplaceOptions::Scope::REPLACE_FIRST);
ce->set_TextReplaceOptions(options);
ce->ReplaceText(u"example", u"file");
ce->Save(u"C:/Users/hlahl/Desktop/Badr/docs/output.pdf");
// ExEnd:ReplaceText
Console::WriteLine(u"Text replaced successfully in a pdf file.");