Comments (2)
In situation like these always validate your input files before merging: pdfcpu val test.pdf
Your input file is violating the PDF spec:
13: offset= 6628 generation=0 types.Dict type=Page
<<
<Contents, ()>
<Parent, (2 0 R)>
<Resources, (4 0 R)>
<Type, Page>
>>
Content
is supposed to be a stream dict or an array.
An empty string literal is not allowed!
from pdfcpu.
In situation like these always validate your input files before merging:
pdfcpu val test.pdf
Your input file is violating the PDF spec:
13: offset= 6628 generation=0 types.Dict type=Page << <Contents, ()> <Parent, (2 0 R)> <Resources, (4 0 R)> <Type, Page> >>
Content
is supposed to be a stream dict or an array. An empty string literal is not allowed!
Thanks, I'll go back and look at the pdf spec.
from pdfcpu.
Related Issues (20)
- Documentation error HOT 2
- "Expected a dict object" - blank pages appearing in PDF HOT 3
- support for tagged PDFs (PDF/UA, PDF/A) HOT 5
- Throw errors instead of os.Exit of invalid fonts HOT 11
- Working with bytes (slices or buffers) instead of files HOT 6
- PDF optimization corrupts certain PDF documents HOT 2
- Parsing document with large ObjectStreams uses lots of memory
- Error Merge: dict=formFieldDict required entry=Subtype missing HOT 4
- pdfcpu validate xxxx.pdf report error(dict=outlineItemDict entry=C: unsupported in version 1.3) HOT 2
- Github actions checksum mismatch HOT 10
- Fatal: dict=fileSpecDict entry=UF: unsupported in version 1.3 HOT 2
- Merging PDFs - Merged file does not open HOT 1
- AddWatermark returns error on PDF with empty page HOT 6
- Inconsistent configuration HOT 6
- Latest wasm build doesn't work with latest wasm_execs HOT 3
- About the version of xRefTable HOT 3
- US Letter has incorrect size HOT 2
- `pdfcpu images list` command can not get output HOT 1
- import images default command and help info mistake HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfcpu.