Skip to content

missing required resource subdict: ColorSpace #932

@zollybig

Description

@zollybig

test.zip
win 10
github.com/pdfcpu/pdfcpu v0.8.0

src:
err := api.CollectFile(pdfToProcess, SplitByFormatFileName(strings.TrimSuffix(pdfToProcess, filepath.Ext(pdfToProcess)), fmtName, &fmtList), getPageListForFormat(&fmtList), nil)

almost all pages are processed normally but on some pages I got
pdfcpu: page 2: missing required resource subdict: ColorSpace
PageResourceNames:
Font: C2_0
Pattern:
Properties:
Shading:
XObject: Im0, Fm0
ColorSpace:
ExtGState:

pdfcpu --vv "1 A2 2 roll 610 mm.pdf" > crash.log gets

validating(mode=relaxed) 1 A2 2 roll 610 mm.pdf ...
validation ok

I tried to move pages inside file (it was page 15, now 28), resave file from Adobe Acrobat, save with optimisation, extract pages from file - with same result.
File perfectly visible in Acrobat DC, PDF-XChange, PDF24 reader.

I read issue #494 but I got Error on latest release 0.8.0
Example file has Error is on page 2, page 1 has no problem

Do You have any solution or workaround? Thanks

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions