Questions tagged [file-size]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 (...
ACCakut's user avatar
  • 31
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 ...
timedt's user avatar
  • 101
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 ...
SampleTime's user avatar
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 ...
Timo Kuronen's user avatar
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....
phald's user avatar
  • 105
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....
Foad's user avatar
  • 851
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 ...
Michael Levy's user avatar
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 ...
crateane's user avatar
  • 2,187
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=...
zetaeffe's user avatar
  • 633
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 ...
Skylion's user avatar
  • 131
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 ...
user26372's user avatar
  • 1,676
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 ...
Joe Healey's user avatar
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 ...
Ondrian's user avatar
  • 1,536
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 ...
Vorac's user avatar
  • 753
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 ...
Tom-Tom's user avatar
  • 891
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 -...
Frank Breitling's user avatar
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?
principal-ideal-domain's user avatar
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 ...
GregH's user avatar
  • 3,499
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 ...
antmw1361's user avatar
  • 1,256
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, ...
Nico Schlömer's user avatar
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 ...
Peter Ebelsberger's user avatar
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 ...
WG-'s user avatar
  • 2,850
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 ...
saldenisov's user avatar
  • 2,475
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 ...
Sunit_gupta's user avatar
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{\...
Özgür's user avatar
  • 3,262
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+ ...
kbau's user avatar
  • 193
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 ...
len71's user avatar
  • 577
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 ...
Bruno Le Floch's user avatar
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 ...
ClintEastwood's user avatar
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 ...
neXus's user avatar
  • 173
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 ...
User X's user avatar
  • 503
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 ...
han-tyumi's user avatar
  • 1,142
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) ...
NanisTe's user avatar
  • 125
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 ...
NanisTe's user avatar
  • 125
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 ...
alfC's user avatar
  • 14.2k
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 ...
Akshaj Kadaveru's user avatar
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 ...
nathan glass's user avatar
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. \...
Colas's user avatar
  • 6,648
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. ...
Amait's user avatar
  • 187
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} \...
kiss my armpit's user avatar
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 ...
E.P.'s user avatar
  • 1,425
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} \...
pluton's user avatar
  • 16.4k
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 ...
user17106's user avatar
  • 907
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 ...
Yves's user avatar
  • 2,825
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 ...
kiss my armpit's user avatar
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 ...
Scribblemacher's user avatar
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 ...
gablin's user avatar
  • 16.9k
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 ...
Droid-Bird's user avatar
  • 1,485
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 ...
andrea_crotti's user avatar
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?
Marin's user avatar
  • 8,029