Questions tagged [file-size]
The file-size tag has no usage guidance.
65
questions
2
votes
0
answers
215
views
Reduce file size of imported graphics and their fonts
I am looking to reduce the file size of the final version of my thesis as much as possible without real hassle and any loss of quality. At the moment it is around 7 MB. I read much about it (...
0
votes
0
answers
42
views
How to crop images without bloating file size
Creating image comparison graphics for my thesis, I have a few figures with some 50-100 pngs each.
Each of the images has a 1920 by 1080 resolution, but they are clipped to a 300 by 300 window.
The ...
0
votes
1
answer
169
views
Human readable content in PDF when opened as text file
When I open some PDFs (that were created with Tex) as text files I noticed that sometimes the content is more or less human readable. For some documents I can read almost everything, other documents ...
2
votes
1
answer
129
views
tex4ebook html file too large
This is my first ever question.
I use TeXLive:
tex4ebook -c config -l filename.tex
One of my LaTeX sources contain the text of a whole printed book (several hundred pages) without any parts, chapters ...
1
vote
1
answer
2k
views
Why does PDFSIZEOPT not reduce file size much?
I am using pdfsizeopt to try to minimise a large pdf document. The original size is 27.8 MB and contains around 120 images. Most are jpg, some are png.
I run the command pdfsizeopt/pdfsizeopt input....
1
vote
0
answers
755
views
Ghostscript PDF compression leads to "Output may be incorrect" errors [closed]
I'm following these instructions to compress PDFs generated from LaTeX. I run the commands:
gswin64 -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=foo-compressed....
1
vote
1
answer
72
views
how to avoid latex builds from blowing up in size
While in [1] the question is posed of how to make the pdfs produced by pdflatex smaller, and while answers are given therein. Here a different question is asked.
How can one avoid pdflatex from ...
4
votes
2
answers
585
views
Colorbar as included png instead of standard pgfplots output to avoid pdf viewer problems
pgfplots offers really nice surface plots as vector graphics, but file size can easily blow up. it is probably quite common (at least for me) to include a bitmap, which was obtained beforehand by ...
0
votes
0
answers
301
views
Include images with lower resolution [duplicate]
I need to include many JPG images in a LaTeX document. They are quite "heavy" (many MBs each), but in my document they will be printed in a very small size (~2x2 cm). Obviously
\includegraphics[width=...
3
votes
0
answers
505
views
How to flatten or postprocess a Latex generated PDF to crop image outside of viewport? [closed]
I have a large PDF document that includes lot of complex figures. To build these figures I used the viewport feature of the \includeGraphics command from Graphics package extensively. I am aware that ...
1
vote
0
answers
58
views
How are fonts included from included PDFs? (avoid redundancy in fonts) [duplicate]
I'm currently writing a larger LaTeX document with many included PDF files that are primarily generated from two sources: IPE and GNUPLOT.
IPE outputs .pdf directly.
GNUPLOT outsputs .tex and .eps ...
1
vote
1
answer
524
views
What's making my file large?
I'm working on a document which incorporates a lot of figures and tables etc. The PDF file size is creeping up and up, to the point that github complains about it now too.
I've already got a list of ...
2
votes
1
answer
201
views
why is pstool-psfrag reducing pdf file size?
I am using pstool & psfrag (with pdflatex) to replace text in eps files generated by Adobe Illustator. I noticed that the pdf files produced by pstool (using the \psfragfig command) are way ...
1
vote
2
answers
1k
views
Embedding images explodes generated PDF size
I am using
$ pdflatex --version
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian)
kpathsea version 6.2.3
to compile a 30-page pdf output. Twelve of the pages look like this (the rest are only ...
6
votes
2
answers
457
views
Size limit of an output file
I am designing a set of macros to have exercises in a book and write the answers at the end while typesetting the answers just after the questions in the exercise file. (See MWE for an example). (The ...
1
vote
1
answer
432
views
pdf file size of moderncv too large
When I pdflatex my moderncv.tex I obtain a file size of 150 kB.
This seems too big since I don't include any picture yet. And in fact after
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -dNOPAUSE -...
1
vote
1
answer
2k
views
Reduce quality of joined PDFs [duplicate]
I'm using the package pdfpages to join many PDF documents. Some of them are scanned. Is there an option to reduce quality of those documents in order to make the resulting file size smaller?
7
votes
0
answers
843
views
Using Ghostscript to compress pdf with 3D content
I have used Ghostscript to compress the pdf output of some large files as it seems to do a better job of getting rid of duplicate font information than Adobe Acrobat (which sometimes loses certain ...
1
vote
0
answers
250
views
Tips for making a lightweight long document [closed]
I wonder what tips should we keep in mind to keep a long document lightweight. I've written 3 chapters from my thesis with ~30 figs and some math, and document size is exponentially increasing (10MB ...
4
votes
0
answers
512
views
PDF optimization packages/options
I noticed that when compiling any document in TeX, the resulting PDF can be reduced in size by quite much. For example, take
\documentclass{article}
\begin{document}
Lorem ipsum dolor sit amet, ...
5
votes
2
answers
204
views
Filesize command amount dependent?
When writing a cv I decided to separate tex file from content. I copied the content to a csv file in order to load it with datatool.
But this greatly increases the size of the PDF:
Complete content ...
7
votes
1
answer
2k
views
Reduce pdf file size for large image produced by pgfplots
I created a plot using pgfplots. The plot is embedded in a document. The total size of the document is about 26 MB, while the plot is 12.5 MB.
The plot contains a lot of data which makes the pdf ...
1
vote
2
answers
9k
views
Is there a way to compress pdf file? [duplicate]
I am generating my PDF document (thesis) with LuaLaTeX. Almost all of my figures are made with the pgfplots package and do not exceed 40 kB. The document is 178 pages. The size of this document is 34 ...
1
vote
1
answer
3k
views
How to reducing EPS file size for document?
I have eps files of 10-15 MB that i have generated from matlab. These figures are basically data plots and because of that file sizes are so high.
When i am using these files for pdf then output pdf ...
2
votes
0
answers
139
views
Wrong file size of PDF [closed]
My code,
\documentclass[a4paper,11pt]{book}
\begin{document}
\IfFileExists{\jobname.pdf}
{\edef\Size{\pdffilesize{\jobname.pdf}}}
{\def\Size{0}} The file size is \Size~Byte\\
\edef\jobsize{\...
9
votes
5
answers
4k
views
Best LaTeX editor for LARGE documents
First of all, yes, I am aware of the question LaTeX Editors/IDEs.
The reason why I am asking this question is because I'm curious about people's experience with writing really large documents (100+ ...
11
votes
2
answers
2k
views
Large bibtex/biblatex database
I'm not sure if it is a good idea to maintain a single large bibtex database or if I should split it into multiple smaller ones. I have compiled a very large India-specific database (over 100,000 ...
28
votes
2
answers
8k
views
How to optimize pdf with many links and simple pages
So... I can play tic-tac-toe (naughts and crosses) in a pdf: each board configuration is one page, and each cell of the board is a link which goes to the page corresponding to playing that move. The ...
12
votes
1
answer
2k
views
Is there a limit to the size of a tex-file?
I've been writing a document for some time now. It is steadily growing and hopefully will continue to do so. Lately I realised that -- although I just recently bought a new MacBook -- when I work on ...
6
votes
1
answer
2k
views
How to decrease the file size of pdf with a lot of (clipped and downscaled) png images
I am writing a report that includes a results section with a lot of generated images. These images are .png files.
Judging by the file size of the resulting pdf, these images are included in their ...
1
vote
0
answers
109
views
How can I reduce the size of figures and/or the size of the final PDF document? [duplicate]
I usually include .pdf figures (vector graphics) in LaTeX files. The problem is that when I compile everything, the resulting file, which also has .pdf extension, is too large.
The size of the final ...
3
votes
1
answer
184
views
What's most important if I want to produce a lightweight document?
If for some reason I want to create the lightest document (in terms of the weight of the output file, not the font), what would be some good practices? Specifically in terms of:
Packages: do they add ...
1
vote
1
answer
390
views
Help to change svg package to include a 600dpi pdf instead of creating huge pdf with vector graphic. (Downgrade PDF)
I am using the svg package to include an svg file with transparent 3D graphic and latex code to be set at the right label positions. I tried many different methods to do that (matlab->eps+tex file) ...
3
votes
1
answer
3k
views
Matlab->plot2svg->Inkscape->pdf+latex->includesvg = slow rendering pdf + large file. How to solve that?
I have the following workflow. I use matlab to produce 3D plots with transparency and I want to use the workflow of setting the text inside the figure in latex. I am using Texniccenter and MikTex the ...
16
votes
2
answers
1k
views
Transparency vs image compression dilemma
I have a bunch of raster images that I want to include in a poster. For aesthetic reasons I want to replace the image background by a transparent one.
So far, I have been grabbing the images I had ...
0
votes
1
answer
381
views
Large document txt to pdf
I have about 2 million lines of LaTeX code in a .txt file, and my computer cannot copy and paste it into ShareLatex so that I could compile it. Is there a better way I could get the LaTeX document ...
1
vote
2
answers
2k
views
What size should MacTex be? I'm trying to download it and it's huge! [duplicate]
I'm totally new to LaTeX and similar programs. I'm actually trying to get started with LyX as I want something easy to use and basic.
I'm trying to download the MacTeX 'distribution' (I think that's ...
13
votes
1
answer
1k
views
Why does LuaLaTeX produce smaller files than pdfLaTeX in this example?
I am discovering LuaLaTeX...
I want to produce pdf files from my tex sources as small as possible.
If I compile the following code with LuaLaTeX, the size of the generated pdf is 9 kB.
\...
1
vote
1
answer
2k
views
Reducing File size
I am using XeTeX+bibTeX to compile my LaTeX file. I have around 34 pages, which includes over 20 high Quality images (Large size which are rescaled) and I am using a5paper for the book document class. ...
10
votes
0
answers
137
views
Why does compiling TikZ with latex-dvips-ps2pdf produce a much much bigger PDF than with pdflatex? [duplicate]
The following MWE simulates the problem. Compile it with pdflatex -shell-escape.
\documentclass[preview,varwidth,border=12pt]{standalone}
\usepackage{filecontents}
\begin{filecontents*}{common.tex}
\...
8
votes
2
answers
14k
views
Is there a pdf crop utility for windows that will give smaller files?
The answers to this question contain pdf cropping utilities that will give smaller files than Eric Doviak's original, but as far as I can tell they only work in Linux.
Is there a way to make them ...
4
votes
1
answer
390
views
On how double precision numbers are encoded in a pdf file
Imagine the following tikz/pgfplots code:
% compile as: lualatex --jobname=figname-f1 figname.tex
\documentclass[10pt]{book}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.6}
\...
8
votes
2
answers
3k
views
moderncv - filesize of pdf too big
I managed to work out how to create a job application that is entirely written in the moderncv style. I use the moderncv class itself for my CV and the attachments (making each document a section with ...
3
votes
1
answer
721
views
Is it possible to adjust natively the size of the PDF file during compilation with pdflatex?
I am a beginner in LaTeX, tentatively using it for industrial documents. I am working on a laboratory report containing little text and a large number of pictures. I prefer to leave the pictures at ...
7
votes
1
answer
1k
views
Is it possible to reduce the file size of generated PDF by clipping the included images with \includegraphics' viewport?
I noticed that clipping images with \includegraphics' viewport does not reduce the file size of generated PDF output. I might miss other settings.
Is it possible to reduce the file size of generated ...
10
votes
3
answers
3k
views
Embedding Type 1C fonts using LuaLaTeX
As pointed out in the answer to PDF file size with LuaLaTeX vs XeLaTeX, the difference between using Type 1 and Type 1C fonts in two documents made a big difference in file size.
File size is ...
17
votes
1
answer
2k
views
Why does TeX Live's pdflatex produce smaller PDFs than MiKTeX's pdflatex?
When building my master thesis, I've found that the size of the produced PDF differs if I use Tex Live on Ubuntu compared to MiKTeX on Windows; for the latter, the size is about 50% greater (from ...
5
votes
0
answers
172
views
Is it possible to reduce pdf file size by optimizing images in texniccenter? [duplicate]
Possible Duplicate:
How to make the PDFs produced by pdflatex smaller?
I have some images in PNG. Those are large in size. I am editing using texniccenter, utilizing this pdflatex.exe.
Now, my ...
2
votes
0
answers
154
views
Get a smaller pdf file out of pdflatex [duplicate]
Possible Duplicate:
How to make the PDFs produced by pdflatex smaller?
I'm using the moderncv package to create my CV.
Now I was wondering if there is a way to get a smaller output, because the ...
35
votes
4
answers
9k
views
pdfcrop generates larger file?
I use pdfcrop to remove margins from a 10MB PDF, 400pages. Margins are properly removed, but the resulting PDF is 51MB large? Any suggestions?