
PowerShell alone cannot edit PDF files. Your best bet would be a 3rd-party library. A product that has a "community " (i.e., "open-source") license is iText: itextpdf.com. It has a .Net version of its code that PowerShell can easily use.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi there
What PowerShell command can edit the text inside a PDF document (hosted on SharePoint Online document library) to replace a text string with another text string?
Thanks.
PowerShell alone cannot edit PDF files. Your best bet would be a 3rd-party library. A product that has a "community " (i.e., "open-source") license is iText: itextpdf.com. It has a .Net version of its code that PowerShell can easily use.
PowerShell command can edit the text inside a PDF document
Hello Frob,
By default there is no Powershell command of script oriented to editing PDF files, however you can use Power Automate (such as power-automate-replace library) or 3rd Party tools like iText.
For PowerAutomate information you can post directly in the PowerAutomate community at:
https://powerusers.microsoft. com/t5/Microsoft-Power-Automate/ct-p/MPACommunity
Reference: https://learn.microsoft. com/en-us/answers/questions/908635/is-there-a-powershell-script-to-edit-a-document-on.html
---------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--