Code Monkey home page Code Monkey logo

pdftilecut's People

Contributors

0xflotus avatar oxplot avatar pysco68 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pdftilecut's Issues

I'm not sure what pdftilecut can or can't do...

I see that you can use pdftileccut to take a pdf coded for a certain page size, and split it into multiple pages coded for another size.

I don't see if I could take pdftilecut and use it to split a pdf of whatever input size, and split each input page into 4 pages 2-by-2, 6 pages 3-by-2, 6 pages 2-by-3, 9 pages 3-by-3, etc...

If it can do that, I think the readme should cover how.

If it can't, I think the readme should clarify that.

Page size is wrong

Hi,

Thanks for this wonderful program.

I wonder what I am doing wrong here?

I have a PDF which is A1 (594 x 840mm) and when I run it through it through pdftilecut the resulting pages are 19.94 × 26.08 cm. I would expect the page size to be 210 x 297mm.

The command I using is:

pdftilecut -in "Live Music A1.pdf" -out out.pdf

image

Specifying -tile-size A4 doesn't change anything:

pdftilecut -in "Live Music A1.pdf" -out out.pdf -tile-size A4

Nor does -tile-size "210mm x 297mm".

I don't know which version I am using (I didn't see a -version flag), but I installed on Mac OS using homebrew.

Edit: I think I have figured out the problem. I guess tile-size is the maximum page size, so it will produce pages smaller than this sometimes. If you print without scaling, it should just result in a larger margin. Is that right?

Second edit: I wonder whether (in light of #23) it might be better to product pages at the requested size, and simply have the additional margin on the page? It seems like there would be less opportunity for confusion with scaling.

Remove generated "headers" completly

The tool nicely split my A3 scan to A4 pages. However the tool always put some markers in each corner (page number, lines, tool logo etc.).
This means that I cannot print the resulting document, because it includes these markers. How can we remove these markers?

Preserve scale

Thanks a lot for this nice little tool!

I have a large PDF that I would like to print onto individual A4 pages. The original is exactly 50x50cm, but when I put the tiles together (making sure to print at 100% scale) the resulting width is slightly over 58cm. It seems that the splitting is done in a way to maximise the size for the given pages, but it would be nice to have an option to preserve the scale.

The file “out.pdf” could not be opened.

"It may be damaged or use a file format that Preview doesn’t recognize."

Hi. I'm getting the above error message when I try to open the resulting PDF.

I've installed pdftilecut from homebrew on macOS 11.4. There were no errors during the install.

I have a sample "in.pdf" file on ~/Desktop. It is 1.7MB.
Here is a link to that in.pdf file

From ~/Desktop, I run:
pdftilecut -tile-size A4 -in in.pdf -out out.pdf

This message is produced:
2021/06/06 14:14:58 cannot find MediaBox for page:
/Contents 6 0 R
/Parent 3 0 R
/Resources 8 0 R
/Type /Page

An "out.pdf" file is created that is 660 bytes. When I attempt to open it, I get the titled error.
Here is a link to that out.pdf file

Here is my use case:
I have PDFs that are exported from Safari (both iOS and macOS) that end up being one, long PDF page, rather than split/paginated. Yes, I could simply Print to PDF, but these long PDFs are what results when you choose "Annotate" in Safari on iOS. I find it easier to read/work on PDFs that are in A4 format, but, I digress.

Can you advise on the above?

Thank you,

John

Do less string replace

A lot of s = strings.Replace(s, ... is in the code which eats up memory is slow on larger files.

Should have some slices of new objects and only write them up at the end.

Use path clipping

Instead of the white margin to hopefully increase the rendering speed on viewers.

Landscape A4?

I'd like to print the following PDF to A4 oriented in landscape, then join the sheets together along the short sides.

github_sample.pdf

I tried this command:

./pdftilecut -tile-size '297mm x 210mm' -in github_sample.pdf -out github_sample_A4.pdf

Which produced this PDF:
github_sample_A4.pdf

As you can see, the top half of each page is cropped. Is it possible to achieve what I want with pdftilecut? Thanks

Tiles are not to scale

I just tried using this to print a sewing pattern and, after hours of cutting and taping, we noticed that it was about 12% larger than it should be. Fortunately we spotted this before we started cutting fabric.

Is it possible to adjust the margin size?

Hey, thanks for this great application.

I am trying to print A1 (841mm x 594) using four sheets of SRA3 (450 x 320mm).

This allows for 46mm overlap horizontally and 59mm overlap vertically.

I think my printer should be able to manage this, since it can do borderless printing at this size.

When using pdftilecut as follows:

pdftilecut -in Live\ Music\ A1.pdf -out "out.pdf" -tile-size "320mm x 450mm"

The resulting page size is 24.89 × 33.08 cm and so requires 9 pages.

I wonder if this is due to the space required for the margin? Could we possibly have an option to adjust margin size, which could mean using fewer pages?

cannot find MediaBox for page

pdftilecut -tile-size A4 -in Homework\ 32.pdf -out Homework_32_a4.pdf
2023/10/11 10:38:16 cannot find MediaBox for page:
/Contents 5 0 R
/Parent 3 0 R
/Resources 7 0 R
/Type /Page
Homework 32.pdf

Wrong dimensions for A4

I converted this PDF to A4 tiles: github_sample.pdf

./pdftilecut -tile-size A4 -in github_sample.pdf -out github_sample_A4-2.pdf

output PDF: github_sample_A4-2.pdf

But the output seems to be not A4. Loading that PDF into Gimp produces images that are 737x885 pixels (I would expect 595x842)

Output Page Sizes

Hey, first of all thank you for the amazing software!
Now, once I used it I noticed that the pages of the output PDF are actually not A4 size but are actually smaller.
This leads to my printer printing some extra white borders.

Is there a possibility to enforce A4 format on the output pages?

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.