Tiling PDF
Divide large PDF into tiles on multiple page to allow print on small-size paper, suit for map and civil drawing
Tiling, PDF, Enlarge, Divide large file, Web app
--by Captdam @ Nov 2, 2024Also on GitHub: https://github.com/captdam/TilingPDF
I wrote this web app to help me print large-size drawings on small-size paper to allow me to work with the drawing.
Some drawings are created with large sizes to contain more information on one page. For example, the dimension of ANSI E paper is 34” by 44”. Large drawing is convenient if it can be printed on the designated paper size. However, most home printers can only work with letter size (11” by 8.5”) paper (or similar size like A4); some office printers can handle Ledger size (11” by 17”) paper. To print larger, one must get a professional printer, which is expensive; or go to a print shop, which is inconvenient.
Let me use the City of Windsor’s map as an example. When I try to print it, I can only print it on one page. As the screenshot below shows, the text will be extremely small on the paper; hence, unreadable.
I can select a large paper in the print dialog but load my printer with small-size paper. In this way, I can rely on the printer to tiling the large file into multiple small-size papers. Definitely, this is not an elegant solution. I cannot preview the result on my screen, it requires some guess-and-try to print the file correctly.
Another way is to use software to pre-process the file. The software will divide the large file into multiple smaller ones first. Then, we can print the result as normal files. One example is to use the convert
command that comes with imagemagick to tiling the image, for example: convert -extract 4800x3600+4800+7200 src.png tile2x3.png
. However, this solution requires Linux (or WSL) and installing the software on the computer.
It is also possible to use some online tools. It is convenient because no software is installed, it works for both computer and phone (or anything that has a web browser and has internet access). However, this solution may be prohibited if the file has confidential content, such as engineering drawing.
Therefore, I decided to write this software myself. This software uses PDF-Lib (which I used in my previous project Titleblock Editor) to tile PDF files on a user's computer in an internet browser.
- It works on any platform with a web browser: Web app.
- It requires no install: Web browser is already installed.
- No upload: The conversion is performed on the user's machine.