pdfunite 0.55 damage files with Optional Content Groups
Submitted by Valerio Messina
Assigned to poppler-bugs
Link to original bug (#101449)
Description
Created attachment 131980 two files of 1 page with layers, and the result of pdfunite
pdfunite 0.55 damage files with Optional Content Groups (layers).
For example see the attach.
PDFlayers_pag1.pdf:pag.1_layers:
- Information , on page:YES, visibile:NO
- Layout D , on page:YES, visibile:YES
- Kopf D , on page:YES, visibile:YES
- LOGO EDI BFS D , on page:YES, visibile:YES
- Layout F , on page:YES, visibile:NO
- Kopf F , on page:YES, visibile:NO
- LOGO EDI BFS F , on page:YES, visibile:NO
- LOGO EDI BFS I , on page:YES, visibile:NO
- Hilfslinien und Raster, on page:NO , visibile:NO
PDFlayers_pag2.pdf:pag.1_layers:
- Information , on page:NO , visibile:NO
- Layout D , on page:YES, visibile:YES
- Kopf D , on page:NO , visibile:YES
- LOGO EDI BFS D , on page:NO , visibile:YES
- Layout F , on page:YES, visibile:NO
- Kopf F , on page:NO , visibile:NO
- LOGO EDI BFS F , on page:NO , visibile:NO
- LOGO EDI BFS I , on page:NO , visibile:NO
- Hilfslinien und Raster, on page:NO , visibile:NO
$ pdunite PDFlayers_pag1.pdf PDFlayers_pag2.pdf PDFlayers_PDFunite0.55.pdf
PDFlayers_PDFunite0.55.pdf:pag.1,2_layers: pag.1
- Information , on page:YES, visibile:NO
- Layout D , on page:YES, visibile:YES
- Kopf D , on page:YES, visibile:YES
- LOGO EDI BFS D , on page:YES, visibile:YES
- Layout F , on page:YES, visibile:NO
- Kopf F , on page:YES, visibile:NO
- LOGO EDI BFS F , on page:YES, visibile:NO
- LOGO EDI BFS I , on page:YES, visibile:NO
- Hilfslinien und Raster, on page:NO , visibile:NO pag.2
- Information , on page:NO , visibile:NO
- Layout D , on page:NO , visibile:YES
- Kopf D , on page:NO , visibile:YES
- LOGO EDI BFS D , on page:NO , visibile:YES
- Layout F , on page:NO , visibile:NO
- Kopf F , on page:NO , visibile:NO
- LOGO EDI BFS F , on page:NO , visibile:NO
- LOGO EDI BFS I , on page:NO , visibile:NO
- Hilfslinien und Raster, on page:NO , visibile:NO
On resulting file, pag.1 is right, but pag.2 has no layer on page, and all layers are always visible.
Results checked with: Acrobat Reader 11.0.20 on Windows 7 64 bit Evince 2.32.0.145 on Windows 7 64 bit Evince 3.18.2 on Ubuntu 16.04 64 bit
Attachment 131980, "two files of 1 page with layers, and the result of pdfunite":
PDFlayersTest.7z