I have a requirement to modify an existing PDF using UiPath:
1. If an old price is already present, I want to strike it out and show the new price.
2. In some parts of the PDF, there may be empty/unused areas where I need to add additional data (not necessarily on a separate blank page).
Is there a way to achieve this in UiPath (using built-in PDF activities or external libraries ?Any suggestions or sample approaches would be really helpful.
hi, @rbshindey UiPaths native Pdf activities only support reading and splitting not editing. For your case strike through old price and add new text… you will need an external library like iText7 or PdfSharp which let you overlay text/annotations at specific positions. Another workaround is to convert the PDF to Word make the edits there and save it back as PDF.
Read pdf text first and if it contains image then use OCR Activity then replace the existing price with you desired price in the text and then use word document package activities to write it into the document then save it as pdf again. Because pdf activities doesn’t provide way to edit the pdf.