Home > Software design >  Convert ppt to pdf and protect the file
Convert ppt to pdf and protect the file

Time:10-28

The below is the line of code I'm using it currently which converts ppt to pdf, however I want to protect pdf , Is there any possibility

PowerPointapp.ActivePresentation.SaveAs path & pdffileNm & ".pdf", 32

CodePudding user response:

This is not possible with the default vba functions available!

See this, not tested by me, example of using an external library to save pdf with password in the past.

CodePudding user response:

Protecting a PDF is not permanent, once the file is opened (using the users decryption key provided by handing over the password), the contents are available to the new owner to add comment or fill forms or otherwise modify by print or text edit or remove watermarks.

Adobe reader will use different parts of those keys to reduce user writes, but no other editor has to.

Browsers need to edit PDF in exactly the same way so my Firefox pdf reader allows me to correct / change web page content or the embedded pdf contents, exactly the same as any other browser or pdf viewer or editor can. The only protected PDF is an unpublished one.

  • Related