Comments (2)
Awesome! Great to hear. Thanks so much @tavinus, this code rocks!
from pdfscale.
Hi there!
Sorry for the late answer.
Yes, that is kind of normal. What happens is that some PDFs do not have a MediaBox definition on its main container. On those cases the GREP method for getting the original page size will fail.
As you can see, the grep method failed and then it tried mdls and succeeded.
That is the main reason I created the "adaptive method" for getting the page size. So, unless you are forcing a method of detection, you are using adaptive and it should failsafe to one of the other methods. On MacOS it will try to use mdls
which reads the metadata from Spotlight and should always work (unless the file was just created and the system has not yet created the metadata for it).
In any case, if it says: Final Status: File created successfully
, you should have no problems.
Cheers!
Gus
from pdfscale.
Related Issues (20)
- Donation methods HOT 1
- Losing links HOT 3
- Issue with PDF output size HOT 20
- Resize and not preserve scale HOT 5
- Can you resize and fill the page instead of fitting the image? HOT 4
- Architectural paper size names in command line arguments rejected as invalid. HOT 1
- Licence missing HOT 1
- a specific png is being compressed into a jpeg... HOT 4
- Centering objects in resize mode seems to be broken HOT 2
- function isFloatBiggerThanZero() is broken HOT 3
- typo: milimeters -> millimeters HOT 1
- typo: used used -> used HOT 1
- misspelling: usefull -> useful HOT 1
- Unquoted $0 in basename $0 - basename: extra operand issues HOT 2
- How to decrease pdfscale execution time? HOT 1
- Export-Import PDF Metadata - Geospatial data not written to output HOT 5
- Ghostscript complains about the old PDF interpreter being deprecated HOT 4
- pdfscale custom resize appears to generate different flavor of pdf that interferes with gs PDFX (?) HOT 1
- what license? HOT 2
- [BUG]: `-dNEWDPF` deprecated?! Page drawing error! 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 pdfscale.