Giter Club home page Giter Club logo

Comments (6)

BryanEllis avatar BryanEllis commented on August 16, 2024 1

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.

tavinus avatar tavinus commented on August 16, 2024

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.

tavinus avatar tavinus commented on August 16, 2024

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.

tavinus avatar tavinus commented on August 16, 2024

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.

BryanEllis avatar BryanEllis commented on August 16, 2024

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.

tavinus avatar tavinus commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.