Bug 101449 - pdfunite 0.55 damage files with Optional Content Groups
Summary: pdfunite 0.55 damage files with Optional Content Groups
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: utils (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-15 13:13 UTC by Valerio Messina
Modified: 2018-08-21 10:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
two files of 1 page with layers, and the result of pdfunite (91.47 KB, application/x-7z-compressed)
2017-06-15 13:13 UTC, Valerio Messina
Details
PDF1.5 with layers: test 2 (2.69 KB, application/x-7z-compressed)
2017-09-07 23:36 UTC, Valerio Messina
Details
expected generated two page layered PDF (3.54 KB, application/pdf)
2017-09-08 21:25 UTC, Valerio Messina
Details

Description Valerio Messina 2017-06-15 13:13:05 UTC
Created attachment 131980 [details]
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
Comment 1 Valerio Messina 2017-08-25 21:46:20 UTC
tested with poppler-0.57.0
checked with Acrobat Reader 9.5.5 on Linux 64 bit
same behavior
Comment 2 Valerio Messina 2017-09-04 23:00:06 UTC
tested with poppler-0.59.0
checked with Acrobat Reader 9.5.5 on Linux 64 bit too
same behavior
Comment 3 Valerio Messina 2017-09-07 23:36:55 UTC
Created attachment 134058 [details]
PDF1.5 with layers: test 2

Here a simpler example:
'PDFlayers_tst2_pg1.pdf' has one page with two layers:
             ON PAGE    VISIBLE
Layer 1     : YES       YES
Background 1: YES       YES

'PDFlayers_tst2_pg2.pdf' has one page with two layers:
             ON PAGE    VISIBLE
Layer 2     : YES       YES
Background 2: YES       YES

Results 'PDFlayers_tst2_pdfunite0.59.pdf' has two pages with no layers.

Test made with just compiled poppler 0.59
Check made with Evince and Acroread
Comment 4 Valerio Messina 2017-09-08 21:25:24 UTC
Created attachment 134097 [details]
expected generated two page layered PDF

this is generated with Scribus 1.5.3, exporting in PDFv1.5 and ticking Layer
Comment 5 GitLab Migration User 2018-08-21 10:52:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/398.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.