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
General ⇒ Increasing file size of a latex document
NEW: TikZ book now 40% off at Amazon.com for a short time.

Increasing file size of a latex document
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.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 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
Code, edit and compile here:
\documentclass{article}\usepackage{pdfpages}\begin{document}\includepdf[scale=1.2,pages=-]{inputfile.pdf}\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Increasing file size of a latex document
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.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
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Increasing file size of a latex document
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.
Re: Increasing file size of a latex document
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.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Increasing file size of a latex document
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.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10