Skip to main content

Questions tagged [pdf-format]

Questions relating to the importing, exporting, and extraction of data from PDF files

Filter by
Sorted by
Tagged with
114 votes
6 answers
30k views

Exporting graphics to PDF - huge file

I want to draw some basic surfaces, export them to PDF and include them in a LaTeX file. I create a simple 3D graphics object, for instance with ...
Matthew Leingang's user avatar
45 votes
3 answers
6k views

Avoiding white lines inside filled area in RegionPlot exported as PDF or PS

Bug introduced in 8.0 or earlier and fixed in 13.2 or later When doing a RegionPlot and then exporting (or saving from the front end) as PDF or EPS, there are ...
celtschk's user avatar
  • 19.1k
45 votes
5 answers
6k views

Saner alternative to ContourPlot fill

I am producing a large number of ContourPlot objects, which when exported generate notoriously large PDF files because it basically generates lots of little ...
F'x's user avatar
  • 10.8k
31 votes
2 answers
6k views

Export Plot3D in Mathematica 10.1 is Rasterized by default

When I use Export to export Plot3D to PDF format, I get different behaviour in Mathematica 10.1 compared to 10.0. In particular, ...
LBogaardt's user avatar
  • 1,595
33 votes
2 answers
1k views

Graphics elements do not line up perfectly in exported PDFs

Bug introduced in version 9.0 and persisting through 10.4 Graphics elements do not always line up perfectly in exported PDFs using "Save As..." method. Take, for example: ...
Szabolcs's user avatar
  • 235k
52 votes
4 answers
5k views

Saving a notebook as PDF, preserving syntax highlighting

Currently, one may save notebooks as PDFs from the menu by Save As... and then selecting PDF (on a Mac, I imagine it is similar on other OSs). However, the ...
acl's user avatar
  • 19.8k
10 votes
3 answers
3k views

Avoiding grid lines inside filled area in RegionPlot exported as PDF

Basically the same question as here, but now with regions which have opacity. ...
Maikel's user avatar
  • 185
23 votes
2 answers
4k views

Some tutorials on formatting notebook for exporting to pdf

I love the way that Mathematica allows me to type in of formulas. It is really easy to type complicated expressions with shortcuts on the keyboard. It would be great if I could use Mathematica ...
balboa's user avatar
  • 683
23 votes
5 answers
2k views

PDF export on macOS Mojave produces bold fonts

I have updated my OS to macOS 10.14 Mojave. I found whenever I export a plot into a PDF file, the font of the label and ticks are automatically replaced into a bold font. I use Mathematica 11.3. Any ...
user60517's user avatar
  • 231
14 votes
2 answers
4k views

Combine multiple PDF files into one document

I have multiple single page PDFs I'd like to join together into a single file. (Obviously I mean the file format and not the probability distributions here!) I'm aware of free online services such as ...
fizzics's user avatar
  • 791
8 votes
3 answers
2k views

Trouble with fonts when exporting a 2D-plot to vector formats

I've set up my plot to look exactly how I like it. At least it does so on screen. Upon export though, only the bitmap formats look the same. For PDF and EPS, the FontSize seems to get ignored and the ...
Phantrast's user avatar
  • 293
30 votes
3 answers
2k views

Save as pdf broken in version 10.0.2?

Fixed in 10.1 It looks like the save as pdf is broken after I update to version 10.0.2. The labels in the plot become a mess. Are there ways to fix it? The Export ...
xslittlegrass's user avatar
7 votes
2 answers
490 views

Default styles for Exporting to PDF, EPS and SVG

By default for on-screen display, Rasterize and Exporting to raster formats FrontEnd uses styles defined on the Notebook level ...
Alexey Popkov's user avatar
7 votes
4 answers
1k views

Problem with exporting RegionPlot as PDF

I have the following RegionPlot (which code I don't present since it comes from a long expression): When I right click on it (within the notebook) and try to save ...
sam wolfe's user avatar
  • 4,693
17 votes
3 answers
2k views

PDF exports of ArrayPlot's are fuzzy (OS X)

This is fixed for in version 10.3 by disabling interpolation in the PDF (see Romwell's answer). However, Preview.app on OS X simply ignores this flag. Thus, in practice, the problem remains for all ...
kjo's user avatar
  • 11.7k
10 votes
2 answers
612 views

Exporting an image so that the PlotRange has a fixed size in the output

I am writing a document that involves a table of plots, of an array of quantities ($f$ and $g$, say) against an array of variables ($x$ and $y$, say), and which I would like to present in the ...
Emilio Pisanty's user avatar
17 votes
1 answer
2k views

Exporting 2D & 3D graphics for use in Adobe Illustrator

I have recently (perhaps since Mathematica Version 10?) encountered a change in how PDF images are saved and how they behave after being loaded into Adobe Illustrator (v16.0.4 under Mac OS X 10.10.5). ...
Joseph O'Rourke's user avatar
11 votes
1 answer
1k views

How can I scale a plot in vector graphic or PDF form?

I am not at all a computer graphics expert, but it seems that portable document format (PDF) files have a "native size," even though they may (and usually do!) contain vector graphics that can be ...
Andrew's user avatar
  • 10.6k
11 votes
2 answers
2k views

Rasterized density plot with vector axes

I'm wondering if there is an easy way to get the plot below exported in a small PDF file? The plot below is made in the following steps: Create a StreamPlot ...
Nick's user avatar
  • 437
8 votes
3 answers
594 views

PDF export of polygons: How to get rid of polygon boundary lines?

I have the following polygon: generated using this code (extracted from my previous question): ...
Felix's user avatar
  • 3,871
53 votes
0 answers
1k views

Hyperlinks not preserved when saving in PDF format in MMA V10

Bug introduced in 10.0 or earlier and fixed in 11.0.0 I usually create my course contracts in Mathematica and then save them in PDF format. The notebooks include hyperlinks and these have ...
John McGee's user avatar
  • 2,538
22 votes
2 answers
1k views

PlotRangeClipping not working correctly with small ImageSize and PDF-export

Bug introduced in 8 or earlier and fixed in 13.0.1 Although Mathematica has some nice plotting capabilities, there are some things which are annoying me. I like to export a ...
grbl's user avatar
  • 1,042
20 votes
2 answers
5k views

Export to PDF - scaling grids of plots and text size

Sometimes I have occasion to make big grids of plots. As a toy example: ...
wxffles's user avatar
  • 14.2k
17 votes
2 answers
2k views

Export list elements each to it's own page in a multi-paged PDF document

I have a list, myList, of let's say 20 (different) objects myList = Table["object", {20}] I know would like to export every ...
Gabriel's user avatar
  • 1,877
15 votes
2 answers
6k views

Difficulties with Importing PDFs in Mathematica

I am trying to import a group of PDFs that I have downloaded (it is in the realm of 1,000+). They are a group of doctoral dissertations that I'm trying to automatically extract bibliographic ...
canadian_scholar's user avatar
14 votes
3 answers
1k views

Export MatrixPlot graphics to PDF

I am trying to export a plot generated by MatrixPlot to PDF but am having problems with the way the exported PDF is rendered. ...
darXider's user avatar
  • 273
2 votes
1 answer
646 views

Remove artifact of PDF images

I have a PDF figure created with Export[] in Mathematica 11.0.1.0 on Mac OSX The figure has these improper white-lines when I zoom-out and make the image smaller (...
user1993416's user avatar
27 votes
1 answer
5k views

How to control the page size when exporting as a PDF?

When I used Mathematica under Windows, I could control the page size of the pdf files created by Export[...,"PDF"] by setting the paper size in the print menu to ...
Chris Grant's user avatar
11 votes
2 answers
689 views

Sqrt disappeared when exporting plot to PDF in version 10

Bug introduced in 10.0.1 or 10.0.2 and fixed in 10.1.0 In version 10, if we plot with Sqrt in y-axis, and export to PDF, the square root disappears in the PDF file....
Yi Wang's user avatar
  • 7,347
9 votes
1 answer
878 views

Export to PDF on OS X, font missing on Windows

Here is another problem with Mathematica plots and PDF. I have Mathematica 9.0.1 on Mac OS X. I want to export my plots to PDF to include them in a LaTeX document. If I export the plot with the ...
Pincopallino's user avatar
9 votes
0 answers
2k views

How can I export 3D plots as vector graphics? [duplicate]

Consider the following simple example code: plot3D = ListPlot3D[{{0, 0, 1}, {1, 0, 0}, {0, 1, 0}}, Mesh -> All]; Export["plot3D.pdf", plot3D] As clearly seen, ...
glS's user avatar
  • 7,623
8 votes
2 answers
16k views

Custom fonts show as boxes when opening Mathematica-made PDFs with Illustrator

If I export a PDF from Mathematica, then open it with Illustrator, the font glyphs will sometimes appear as boxes, depending on what font was used. Why does this happen? Is there a workaround? I ...
Szabolcs's user avatar
  • 235k
7 votes
1 answer
282 views

Layout: Images and Text

I have a lot of images and text that goes with each image. Now I would like to automatically generate the following handout for each pair of image and text: The image is on top. The text should be ...
james's user avatar
  • 3,093
6 votes
1 answer
322 views

Change the default font in all plots and legends, even when exporting to PDF

This is a followup to: How can I change the default font used in ALL plots and legends in Mathematica? Carl Woll gave a great answer there: change the "Graphics" ...
Szabolcs's user avatar
  • 235k
5 votes
2 answers
202 views

Exporting Plot with Filling creates unwanted Outline around Filling

Bug introduced in 12 or earlier and persisting through 13.1.0 [CASE:4899765] The following code generates a plot that has a faint outline around the top, left, and right boundaries of the filling. ...
A.Z.'s user avatar
  • 580
1 vote
1 answer
218 views

How does pdf export compute the size of the bounding box of Inset?

It does not seem to be using Rasterize[Text[...], "RasterSize"] nor ImageDimensions[ImageCrop[Graphics[Text[...]]]] nor ...
Jason Gross's user avatar
1 vote
1 answer
199 views

Pdf export is heavily flawed for simplest possible notebook such as a=b+c

File > save As ... > pdf (or print as pdf) gives me extremely bad results even for the most basic simplest possible Mathematica notebooks. Here a simple example where I can reproduce the problem....
Jakob's user avatar
  • 141
24 votes
2 answers
711 views

How can I export graph as PDF with metadata such as Title and Author fields

I want to export a figure from Mathematica in PDF format. Moreover, I want to fill Author and Title fields of the PDF. For example, to fill Author field, I use the following code: ...
Dmitry Kabanov's user avatar
18 votes
1 answer
714 views

Is there any way to export vector graphics with shading?

Bug introduced in 8.0 or earlier and persisting through 13.2.0 or later This has irked me for a while as I really feel its a significant shortfall in Mathematica's abilities but maybe I am missing ...
Quantum_Oli's user avatar
  • 7,964
12 votes
5 answers
2k views

PDF Export in 11.3

I have some Mathematica notebooks that have text, code, plots, and hyperlinks in some text cells. The notebooks use a custom stylesheet that I've used for a number of years. Up until version 11.3 ...
user avatar
12 votes
1 answer
2k views

How to avoid font substitution with Mathematica fonts?

When I export a Plot to PDF, a journal publisher complains that they do not have the Mathematica fonts. I believe there is a way ...
abwatson's user avatar
  • 1,919
9 votes
2 answers
601 views

Exporting BarChart3D as PDF produces artifacts

So I think the following image already shows the problem, similar to Avoiding white lines inside filled area in RegionPlot exported as PDF or PS the pdf export of the chart creates thin lines in the ...
MrMuh's user avatar
  • 295
9 votes
2 answers
2k views

Cropped pdf file after export

I have plot generated by Plot[] function that I want to export to pdf file. The problem is that Export[] function somehow cuts a ...
qoqosz's user avatar
  • 193
8 votes
2 answers
958 views

Running external pdflatex command and importing the generated PDF document

There have been a couple of questions about incorporating labels and equations that were typeset in $\LaTeX$ into a Mathematica notebook. Ideally, this requires running ...
Jens's user avatar
  • 97.3k
7 votes
2 answers
777 views

Mathematica-exported PDFs placed in Illustrator documents keep disappearing

This question is regarding interoperability between Adobe Illustrator and Mathematica. Illustrator has a File → Place... function which can insert complete figures inside Illustrator documents. "...
Szabolcs's user avatar
  • 235k
7 votes
1 answer
503 views

Color ramp banding in PDFKit when exporting Raster image Inset to PDF

Here I produce a Raster image with large uniformly colored rectangles and put it in an Inset: ...
Jens's user avatar
  • 97.3k
5 votes
1 answer
507 views

generating pdf using UseFrontEnd

I run mathematica on a remote server and run it in batch mode using /math -noprompt -script 'scriptname.m' & Now, I use ssh -X to connect to the server. The server is linux based and my computer ...
preeti's user avatar
  • 833
5 votes
0 answers
206 views

Mathematica can't export $\sqrt{}$ [duplicate]

Fixed in version 10.1.0 It looks like version 10 can't export to pdf correctly with square root. For example: ...
xslittlegrass's user avatar
5 votes
1 answer
248 views

How to export a 3D circle as a single piece PDF vectorial object? [duplicate]

I need to export a circle drawn in 3D with a specific point of view to a PDF file. This is easy to do. However, the exported circle is made of tons of non-connected small bits. I need the whole ...
Cham's user avatar
  • 4,093
5 votes
2 answers
634 views

exporting nb to pdf without images being cropped?

I want to export the whole notebook to pdf. The notebook contains some rather large images. When I choose Save As then choose pdf, I find that the resulting pdf do ...
Physicist's user avatar
  • 987