GeneralIncreasing file size of a latex document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ballchri
Posts: 4
Joined: Wed Jul 22, 2009 4:01 am

Increasing file size of a latex document

Post by ballchri »

I need to increase the file size in a LaTeX document, without changing the visual appearance or structure of the document. Ideally
1) The increase is spread over every page of the document evenly
2) The increase is spread over the page evenly (so it is not clustered at the top or bottom of the page)
3) No visual changes to the document
The increase in file size also needs to be arbitrary. Any help appreciated

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Increasing file size of a latex document

Post by frabjous »

ballchri wrote:I need to increase the file size in a LaTeX document, without changing the visual appearance or structure of the document. Ideally
1) The increase is spread over every page of the document evenly
2) The increase is spread over the page evenly (so it is not clustered at the top or bottom of the page)
3) No visual changes to the document
The increase in file size also needs to be arbitrary. Any help appreciated
I think you need to be a little clearer about what you want. Increasing "file size" suggests to me that you want it to take up more space on your hard drive. I can't imagine why you'd want that.

I suppose what you're really after is to make the text bigger, but you didn't make it clear whether you wanted the page size increased too, or just reduced margins.

Assuming the latter, probably what I'd do is just compile the file as is (to pdf), then create a separate latex document that calls the pdfpages package with the scale option to include the original pdf but scale it larger, e.g.:

Code: Select all

\documentclass{article}
\usepackage{pdfpages}
\begin{document}
    \includepdf[scale=1.2,pages=-]{inputfile.pdf}
\end{document}
scale=1.2 is of course blowing it up by 120%. scale=1.5 would blow it up 150% and do so on. Check the pdfpages manual for options if it's necessary to offset the page, etc.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Increasing file size of a latex document

Post by localghost »

ballchri wrote:I need to increase the file size in a LaTeX document, without changing the visual appearance or structure of the document. [...]
The increase in file size also needs to be arbitrary. Any help appreciated
You have chosen very misleading expressions in the title of this thread to describe what you wanna do. When I think of file size, terms like kilobytes or megabytes come to my mind. In the case that you mean modifications to the page geometry (type area), the suggestion of frabjous goes into the right direction.


Best regards and welcome to the board
Thorsten
ballchri
Posts: 4
Joined: Wed Jul 22, 2009 4:01 am

Re: Increasing file size of a latex document

Post by ballchri »

I do actually want to increase the file size of the document. I am required to submit an electronic copy of a document which I do not want to be easy to distribute electronically. A free paper reference copy will be available and the current regulations allow for a much larger file size than I am currently using.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Increasing file size of a latex document

Post by frabjous »

I really don't think adding to the file size is the best way to achieve your goal. If there were no protection on it, people could always extract the core anyway. If you have the Full version of Adobe Acrobat, you can encrypt or set security settings on your document. There are shareware tools that will do so as well.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Increasing file size of a latex document

Post by localghost »

If you are not in possession of such software like frabjous mentioned, you can take a look at PDFtk. For Windows there exists a GUI with PDFtkb.
Post Reply