# How to upload LaTeX-generated pdf paper to arXiv without LaTeX sources

arXiv is smart enough to detect whether your PDF is generated by LaTeX. If it is, arXiv asks for the sources of the PDF instead of the PDF file itself. This is really annoying and inconvenient.

I ask a way to fool the arXiv and avoid PDFs being detected as generated by LaTeX (even if they were indeed).

I have tried this: http://www.hrstc.org/node/62: "create a pdf from word and then simply insert pages from your article, and delete the word's page".

And it did not work.

• What's wrong with uploading the sources? It's much better from an archival point of view.
– Alex
Jun 22, 2014 at 18:40
• @Alex The arXiv doesn't always have the most up to date versions of packages, meaning that a document using new features might not compile. So it's not necessarily about not uploading the sources, but ensuring that the arXiv doesn't actually try to compile those sources. Jun 22, 2014 at 19:34
• @Alex From my point of view, it is much more convenient by just uploading the pdf rather than the source. arXiv lets me feel word is better than latex. That is it. Jun 22, 2014 at 20:58
• @Alex Some of us think that publishers are as outdated as LaTeX 2.09 ... Seriously, once a publisher agrees to publish my paper then I'll downgrade it (and I have done this: I downgraded one paper from TikZ to xy). Before that, I'm not going to anticipate something that might not happen and so I'll take advantage of the latest features to make my paper as nice to read as possible. Jun 22, 2014 at 21:28
• I would appreciate to know how to upload PDF files directly to arXiv for the simple reason that my PDF files are created by omega or luatex and contain special fonts. If arXiv wants us to upload TeX code then it must give us the means to compile this code. If it doesn't, then it is clearly arXiv's fault. Twice already I had to ask for special permission to upload a PDF, permission was granted but I find it unacceptable to have to beg for a PDF file to be accepted and to have to justify why it is necessary. If somebody knows how the arXiv filter works, please let me know! Feb 28, 2016 at 22:06

Update 2018-11-26: According to the comment from Andrew MacFie, this method no longer works: the arXiv have put in place a check specifically for this. Whether or not they have solved the underlying problem, I have no idea. Whether or not a variation of this solution would work, I have no idea.

I strongly advise uploading the source code to the arXiv for archival purposes. Once the document itself is made public, there is no reason I can think of for not making the source code public. That said, there can be reasons for avoiding the arXiv's own compiler if it doesn't have up to date versions of packages that you use and, for example, uploading the entirety of TikZ/PGF with your document seems a little excessive. (NB For TikZ/PGF specifically, the external library is a big help here.)

Include a PDF copy of the article with your submission (with a slightly modified filename), and at the top of the document put the following (suitably edited):

\documentclass[a4paper]{article}
\pdfoutput=1
\usepackage{hyperref}
\hypersetup{
pdfinfo={
Subject={If you want to put something here, do so},
Keywords={Add some keywords if you feel so inclined}
}
}
\usepackage{pdfpages}

\begin{document}
\includepdf[pages=1-last]{the_real_article.pdf}
\end{document}

<rest of source code goes here>


I think that to comply with the spirit of the arXiv, in that you're making stuff generally available, then if you are doing this then you should go the extra mile and include something like the list of packages used with their versions so that someone who downloads the source will know what they need in order to compile it.

I can attest to the fact that this has worked in the past.

• This didn't work for me -- the processing proclaimed success but I ended up with a blank one-page document. Still trying to get my submission working... Feb 6, 2015 at 23:49
• add \pdfoutput=1 in the second line Jun 11, 2015 at 14:53
• Note that you lose all hyperref (linking) information when using this approach. PAX is a program designed to help with this, but it didn't work for me. Aug 4, 2015 at 16:03
• @JoshuaGrochow Simple: remove all comments before uploading. You can do that with a straightforward script - assuming you haven't changed the catcode of %. After all, comments don't affect the output so it is completely safe to remove them. (To forestall nitpickers: the script should do s/%.*/%/gm if I have my modifiers right.) Nov 26, 2015 at 18:31

The solution is simple. Open your PDF using some PDF viewer/editor. For instance using Foxit Reader. Then print the file using a virtual printer, for example Foxit PDF printer. The printed version of your PDF would be image-based. However, to increase the quality you can choose a higher resolution, such as 300 dpi. The printed PDF file can be easily uploaded into arXiv.org.

• For some reason most pdf readers don't allow you to print to pdf anymore. Dec 1, 2018 at 3:30
• There are a lot of free Print2PDF software you can install that integrate with your computer as a virtual printer. For example, CutePDF, Win2PDF, CUPs-PDF and a lot more.
– NKN
Dec 7, 2018 at 15:50
• I have tried this technique, but am getting the message that my submission is on hold because the output from pdf to text conversion was too small to allow further processing. I have printed to PDF virtually, but seems to be some issue with the resolution?
– Tom
Jul 19, 2019 at 5:28
• The size of my .pdf file has increased 100x with this solution and I get the error message: Total submission size 100862.70 KB exceeds maximum allowed size 50000 KB Mar 26, 2021 at 17:29

Since several other methods didn't work (e.g. resetting the PDF producer metadata via hyperref or a PDF editor, or trying a Print As PDF hack through a web browser or Google Drive), here's a simple one that's worked for me in Nov 2019. It's specific to command-line users, though, but that also means that it can be conveniently automated as part of your document build process.

Just process your PDF to Postscript with pdf2ps, and then back again with ps2pdf:

pdf2ps mydoc.pdf
ps2pdf mydoc.ps


That's it.

This seems to reset enough that arXiv doesn't detect the TeX origin of the document, but I don't see any significant detriment to the output. In particular I wanted to upload in this form for a special document -- not a paper, but of interest to the arXiv community -- where I was using custom fonts and XeLaTeX, and those fonts were preserved by the PDF/PS/PDF round-trip.

Here's a sample Makefile to automate this along with the rest of the build (for a simple 2-pass, standalone XeLaTeX compilation):

.PHONY = all clean
BASENAME = mydoc

all: $(BASENAME).pdf$(BASENAME)-arxiv.pdf

clean:
rm -f $(BASENAME).pdf$(BASENAME).aux $(BASENAME).log$(BASENAME).out $(BASENAME)-arxiv.*$(BASENAME).pdf: $(BASENAME).tex xelatex$< && xelatex $<$(BASENAME)-arxiv.pdf: $(BASENAME).pdf cp$< $@ && pdf2ps$@ && ps2pdf \$(@:.pdf=.ps) && rm *.ps


Needless to say -- I hope -- this is to be used for exceptional cases where you really want/need features unsupported by arXiv's AutoTeX processing.

It would be nice if it were possible to also provide the source without it being compiled, but my attempt to include the .tex file in the anc subdirectory for ancillary material itself led to a processing error, because currently "Please note that ancillary files are not supported with PDF submissions at this time." on https://arxiv.org/help/ancillary_files . This may be fixed by the time you're reading this.

• it's 2020, and it didn't work for me yet.
– JWL
May 9, 2020 at 15:04
• does not work for me either, and in addition, kills all hyperlinks (URLs, references, etc.) May 16, 2020 at 10:16
• arXiv seem to have guarded against it now. Annoying, since imho there are valid reasons to post rendered PDFs... but it's their platform, their rules May 16, 2020 at 13:22
• I disagree that this does not cause a detriment to the output -- it removes all the hyperlinks!
– E.P.
Jul 30, 2020 at 10:38

Arxiv detected my PDF (made using MS Word!) to be sourced from a TEX file and kept asking me to upload the source file and kept rejecting my PDF submission. Eventually I figured out that MS Word 2016 uses a number of TEX identifiers in their equation editor which gets flagged by Arxiv. After scouring the internet for fixes with no success, I serendipitously found out that if you save your Word manuscript in 'Word 97-2003' format, it removes those TEX identifiers and converts all equations to images. You can then safely Save As PDF and upload to Arxiv without any red flags.

• Excuse me. Is it a comment or an answer? Jan 4, 2019 at 22:13
• @Sebastiano To me this sounds like a valid answer.
– user121799
Jan 4, 2019 at 22:45
• @marmot My question was only to understand as to apply the answer of the OP. My best regards. Jan 5, 2019 at 12:57

November 2021: arXiv accepted my xelatex-generated PDF after:

exiftool -all:all= -overwrite_original FILE.pdf


The Arxiv LaTeX compiler is a pain in the ass and never compiled my paper correctly. That is the reason why I wanted to upload my own PDF w/o source.

Arxiv is identifying the LaTeX pdf based on some meta information and based on the embedded fonts.

Following these steps, I tricked the pdf check:

1) Create an empty pdf, such as with Word. Insert your Latex PDF into the Word-generated PDF. I used Mac Preview. Any other software such as Adobe Acrobat would work too.

2) Open your generated pdf with Adobe Acrobat. Go to: File > Save > Save as Other > Optimized PDF... > Fonts > unembed the troubling fonts (CMR10 & rsfs10). If this did not work, try to also remove other fonts.

(worked on 18th of August 2019)

This worked for me 06 November 2019.

1. Convert your pdf to a .docx or similar. I used this one, maybe there are some better options.
2. Use MS Word or equivalent and check the file (I noticed this conversion wreaks havoc on .eps images) and replace them with .png or similar where necessary.
3. Export as .pdf with MS Word or the program you are using.

I really hope they at some point either make their auto-compiler more user-friendly or at least make the generated error messages more informative. I tried all the tips I could find on this site and really wanted to upload it as .tex but nothing seemed to work. The help desk was also no help at all.

• This wrecked havoc on my equations unfortunately
– Tom
Jun 28, 2020 at 20:24
• Yes, it also messed up my .eps figures which I had to change to png. Generally it is still a pain. Jun 30, 2020 at 4:23

The best way to do is to upload PDF to the google docs and then issue print command and then save the file as PDF. Then upload this new PDF on the arxiv. This works as on 7 august 2019 and if you want to know more, read the documentation on https://arxiv.org/help/submit_pdf

• If you want to feed google with all datas do it; I think it is better to omit this doing as possible as you can do ... And there are other answers with valid ways to this question. Aug 7, 2019 at 17:14
• I tried this, but the import to GDocs resets the custom fonts etc. which was my reason for wanting to exceptionally submit this (not a normal paper) as PDF rather than TeX sources. Trying a print-as-PDF from the original as viewed in a browser doesn't seem to overwrite enough information to bypass arXiv's tests. Nov 7, 2019 at 11:48
• I tried this and it did not work for me either.
– Tom
Jan 6, 2020 at 17:29

It is super easy if you have Adobe Acrobat XI Pro (try it with other versions). In Adobe Acrobat XI Pro, go to "Create" --> "Combine Files into a Single PDF" --> upload your Latex-generated .pdf file and combine this .pdf file, then save it. Thats it. (worked on 6th of August 2020)

The good thing about this approach that the quality of the original Latex-generated .pdf file is not altered compared to other approaches, which require uploading the file to google then downloading it again.

• Welcome to TeX.SE! Aug 6, 2020 at 9:04
• This fails for me Aug 18, 2020 at 19:47
• @GeorgHeiler, Oh I am sorry to hear that. Sep 7, 2020 at 7:41