astefanutti / decktape

PDF exporter for HTML presentations
MIT License
2.19k stars 176 forks source link

Resulting PDF is editable in Acrobat Pro #146

Open utdrmac opened 6 years ago

utdrmac commented 6 years ago

I used a PNG image, CSS, and a DIV tag to create an image-based watermark:

#watermark {
      background: url(../../share/images/do-not-distribute-watermark.png) no-repeat;
      top: 400px;
      left: 75px;
      width: 750px;
      height: 200px;
      position: absolute;
    }
...
<div id="watermark"></div>

The resulting PDF can be opened in Acrobat pro and the div/text can simply be deleted and re-saved.

I was expecting the option --screenshots to save each slide as a PNG and then create a PDF of all those PNGs. But that is not the functionality you get.

Does anyone have insight to create PDFs that are un-editable in this way with Acrobat Pro?

astefanutti commented 6 years ago

The --screenshots option is to export slides as images and does not change the PDF output.

The produced PDF does not have any protection so it is expected it is possible to edit it.

It may be possible to add the ability to set the protection level and / or the document metadata, though it may be argued to be outside of the scope of Decktape.