Hi All,
I have few PDF files(reference attached), when I am trying to replace some text using below code, generated PDF is being corrupted where many of the files is working fine. Please help me our why attached files are being corrupted.
Note : Scroll down up to the bottom to see the error.(“Original.pdf” is the original one and “Corrupted.pdf” is the corrupted pdf against Original.pdf )
Code :
pdfContentEditor.ReplaceText("<<OSE_VERS>>", “ose vers”);
pdfContentEditor.ReplaceText("<>", “insert1”);
pdfContentEditor.ReplaceText("<>", “insert2”);
Observation :
Facing problem with the below segment
pdfContentEditor.ReplaceText("<<LHD_VERS>>", “lhd vers”);
pdfContentEditor.ReplaceText("<<OSE_VERS>>", “ose vers”);
pdfContentEditor.ReplaceText("<>", “insert1”);
pdfContentEditor.ReplaceText("<>", “insert2”);