Comments (6)
The xtrans/ytrans features are perfect for me!!! It now lets me move the content when resizing and rescaling. In my case I expect to bind the pages on the left so I can make my content off-center with a larger border for the binding. Thank you so much!
from pdfscale.
Hi!
Seems like you basically need to edit your PDFs before anything else.
Without having the actual PDF file it is hard to know for sure, but it seems like it was malformed and the visual data does not sit where it should or is sized the way it should. How was the file created? Maybe the settings were wrong when the file was exported to PDF?
I would probably automate that on Photoshop or Illustrator or something else, unless you are consistently receiving data in that "weird" format.
Anyways, seems like solving #4 would also present a solution to this problem, since you could then just scale using top-left (instead of center) to fill the paper.
Edit: In this case it may actualy be better to offer a flag that disables the translation
call, which is what reposition everything centered. This would probably require a new GS call or at least refactoring the current one.
from pdfscale.
Hi again,
I was wondering here.
Can you please post the info about you PDF and then do a little experiment for me?
Get PDF Info:
pdfScale -i PDFFILE.pdf
Then try to run a resize without changing the size, we can use wildcard source
for that:
pdfScale -r source -s 1.0 PDFFILE.pdf
You may change 1.0
to something else if you also want to resize/expand.
Say you want it scale +50%:
pdfScale -r source -s 1.5 PDFFILE.pdf
The script runs gs
with fit-to-page
when in resize mode
, which MAY actualy fix your PDF placement problem (unless the white part is considered to be actual content).
You may also want to play with flip-detection
and auto-rotation
options to fine tune it.
Use pdfScale --help
to get more info, examples also on the readme file.
Please let me know how it goes.
Cheers!
Gus
from pdfscale.
Hi!
I have pushed some changes on a new release - v2.2.0
This one makes possible to reposition the PDF:
- top/bottom/center
- left/right/center
- xoffset to move horizontally
- yoffset to move vertically
Please let me know if that solves your problem.
The release notes and the --help
option explain the new functionality.
Edit: v2.2.1 is out!
Cheers!
Gus
from pdfscale.
The PDFs are generated from a program called Finale which is for musical notation. I am unsure how it is formatted or anything since I am simply the recipient of these files. I will look at your new version. I am not a PDF expert nor a GhostScript expert but have worked with both for a number of years.
I think PDFScale is great and really appreciate all the work you've done.
from pdfscale.
Thanks for the feedback!
I have pushed yet another version (2.3.0).
First one that can auto-update.
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.