IAP GITLAB
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
RemovePDFPageGroups
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ralf Ulrich
RemovePDFPageGroups
Commits
f26f1b8d
Commit
f26f1b8d
authored
May 11, 2020
by
Ralf Ulrich
☄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add README.md
parents
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
README.md
README.md
+25
-0
No files found.
README.md
0 → 100644
View file @
f26f1b8d
If PDF files are edited with inkscape, or generated with matplotlib, it is a
typical scenario that PageGroups are part of those files. If multiple such
PDFs are included, e.g. in latex. Only one of those PageGroups is used (there
can only be one at least per page). It is not clear if this is a misbehaviour
of inkscape, latex or just a general problem in working with both of them.
Latex will produce warnings/errors in such cases pointing to the PageGroups.
With this script here, PDF files can be edited automatically to remove
PageGroups. The internal structure of the PDFs is kept consistent, if needed
the xref tables are updated and fixed.
Use this tool with great care, do not trust its output blindly. Make sure the
generated files are completely OK for the purpose they are indendet for.
I tested this on files editor with inkscape and generated by matplotlib with
excellent results. Thus a workflow for files, where the normal application of
the script does not result in good results, it is worth trying to first import
in inkscape, re-export as pdf, the apply this script, check output.
This tool helped me to write and review papers for the CMS Collaboration
where no errors on latex are allowed in the final step.
Ralf Ulrich
May 2020
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment