Comments (11)
The latest build gives this, slightly more specific, error:
feast:Downloads john$ cpdf scan.pdf -rotateby 90 -o out.pdf
cpdf encountered an error. Technical details follow:
No /Kids in page tree
I will take a look for the next release.
from cpdf-source.
Could you re-upload this example file -- I'm preparing a new release and would like to fix this, but Google docs says it's been downloaded too often...
from cpdf-source.
Fixed.
from cpdf-source.
I have also written a comment on the bug in iCopy's bug tracker.
from cpdf-source.
We have the same problem on current version cpdf. Problem file created by the Redmine. Maybe, this is probably Redmine fault or previous fix does not work
from cpdf-source.
OS X Preview says "The file could not be opened. It may be damaged".
The file claims to have two pages, but one of them (5 0 R) just points directly to a page stream, not a page object:
1 0 obj
<</Type /Pages
/Kids [3 0 R 5 0 R ]
/Count 1
/MediaBox [0 0 595.28 841.89]
>>
endobj
5 0 obj
<</Length 148324
/Filter /FlateDecode
/Length1 264072
>>
stream
You need to remove the "5 0 R". I'm not sure how it got in there. The space after "5 0 R" seems suspicious, because the file does not otherwise contain spaces before closing square brackets.
Here's the creation data:
26 0 obj
<<
/Producer (TCPDF via RFPDF 1.53.0.TC031 \(http://tcpdf.sourceforge.net\))
/Title <FEFF0045004D0053004F00570020002D002000420075006700200023003100340035>
/Creator (Redmine)
/CreationDate (D:20140731024726)
>>
Perhaps it was processed by a second program?
We try to make cpdf deal with broken files, especially if Acrobat opens them (which it seems to here) but it's hard to see what to do with this one -- it's just so broken.
from cpdf-source.
OS X Preview says "The file could not be opened. It may be damaged".
I tried on Windows and no problems wih opening file.
Also tried to open in Preview on Mac no problems found.
Perhaps it was processed by a second program?
no, file generated by Redmine, perhaps it is problem of Redmine, I dont' know, but file looks like valid.
I used identify utility from imagemagick for checking file.
from cpdf-source.
Thanks for the clarification. There's no question that the file is horribly malformed. Please open a ticket with Redmine, and link to it from this ticket.
The identify
utility just checks the first few bytes of the file.
from cpdf-source.
Perhaps we have old version of Redmine. We try to update it and reproduce case. I'll let you know about results. Thanks.
from cpdf-source.
Any update?
from cpdf-source.
we've updated, the problem is not reproduced, thanks
from cpdf-source.
Related Issues (20)
- Option to allow dot leaders in -table-of-contents
- Be more explicit about -trimbox etc in docs.
- JPEG reprocessing improvements
- Allow rectangles to be (minx, miny, maxx, maxy) as an option
- Do something with soft masks in -extract-images
- Allow reading language to be set or altered HOT 2
- Add detection of XFA (and whether dynamic or not) to -info
- XMP fixes
- Add -remove-dictionary-containing, and similar tools.
- Pdfannot.transform_annotations seems to work only on whole file
- Add -draw-jpeg2000 for parity
- Add reading/setting of -user-units
- -merge-add-bookmarks not working properly with PDFs created from JPEGs
- -jpg fails to read dimensions of JPEG which other programs can load
- Make sure -info show all open action stuff which can be set by cpdf, for symmetry's sake. HOT 1
- Now we have replace_chain, add -add-dict-entry /Chain
- Decide & Clarify rules on objstms in merge
- Merging regression
- Extended version of -print-dict-entry which follows indirects HOT 1
- Improve file attachments
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 cpdf-source.