From 399865e9f3b0965de60b1b90e22bd8b7bc070c3b Mon Sep 17 00:00:00 2001 From: Simon Segerblom Rex Date: Thu, 16 May 2019 22:54:44 +0200 Subject: [PATCH] Cleanup of comments --- pdflayers.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pdflayers.py b/pdflayers.py index f30333d..6c6071a 100644 --- a/pdflayers.py +++ b/pdflayers.py @@ -1,16 +1,11 @@ #!/usr/bin/env python3 """Script for editing PDF to change layer (OCG) visibility. -The output should display correctly in the PDF viwer in google-chrome, +The output should display correctly in google-chrome, evince, okular, and Adobe Reader (with JavaScript disabled). pdf.js in firefox might not work: https://github.com/mozilla/pdf.js/issues/4841 -Requirements: -Install pikepdf: - pip3 install --user pikepdf -and run the script with python3. - References: https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdf_reference_archive/PDFReference16.pdf https://pikepdf.readthedocs.io/ @@ -49,7 +44,7 @@ def set_layer_visibility(pdf, layers_to_show): OCGs=ocgs, ) - # Needed for the PDF viwer in google-chrome (at least): + # Needed for google-chrome (at least): for ocg in ocgs: if '/View' in ocg.Usage: del ocg.Usage.View