Code Monkey home page Code Monkey logo

Comments (5)

porjo avatar porjo commented on June 3, 2024 1

What I had in mind is output like this (plus margins):

Screenshot from 2021-05-21 08-09-53

Instead I got this:
Screenshot from 2021-05-21 08-09-53_2

from pdftilecut.

oxplot avatar oxplot commented on June 3, 2024

Your input's height is 6.86 inches. The output has 1 inch margin, so the height ends up being 8.86 inches. That's smaller than 11.6 inches of an A4, so that one's fine.

The width is not A4 because the size you specify isn't the output size, it's the "maximum output" size. And it's the size, including the margins.

The tiles are sized such that they all have the same size and they're all under the page size specified. Both of which are true in the output.

from pdftilecut.

oxplot avatar oxplot commented on June 3, 2024

Yep, as I explained in the other issue, to avoid having a final tile that's potentially 2mm wide (in your case) and unusable, the tile sizes are maximum, and not exact. pdftilecut then ensures that all tiles are the same size and under the maximum size specified.

from pdftilecut.

porjo avatar porjo commented on June 3, 2024

What about the seemingly arbitrary page overlaps - that seems like a bug?

I'd prefer to have the final page 2mm wide and simply discard it. Could that behaviour be added as an option?

from pdftilecut.

oxplot avatar oxplot commented on June 3, 2024

What about the seemingly arbitrary page overlaps - that seems like a bug?

If after trimming the output pages and stitching them together, you don't get the original content, then that's a bug. Otherwise, the amount of overlap is not something that's guaranteed or otherwise important at all.

I'd prefer to have the final page 2mm wide and simply discard it. Could that behaviour be added as an option?

I have no use for this, but PRs are definitely welcome.

from pdftilecut.

Related Issues (18)

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.