# Tag Info

5

On OS X, a simple workaround is to re-save the Mathematica-exported PDF with Preview.app before placing it. Simply open it in Preview and press ⌘-S. I did try processing the PDF through several other programs, but Preview was the only one that worked with all files I tried without destroying them. Some others worked only with PDFs containing no ...

4

You can apply a strategy I learned from @Jens. Add the following to your notebook: Map[SetOptions[#, Prolog -> {{EdgeForm[], Texture[{{{0, 0, 0, 0}}}], Polygon[#, VertexTextureCoordinates -> #] &[{{0, 0}, {1, 0}, {1, 1}}]}}] &, {ParametricPlot}]; Give your plot a name: im1 = PlotU2Treh = ParametricPlot[ ...

4

Actually, the problem is with Mathematica's export, at least with Version 10. I have been saving a file wit MatrixPlot (using Save As...-> PDF), and have encountered the same problem. Turns out, MatrixPlot (and similar) data is being exported as a bitmap, which gets blurred in Adobe Reader 9 (which I have), even if "Smooth line art" and "Smooth images" is ...

4

The problem seems to be when the label is rotated. Check this: Export["test.pdf", ListPlot[{1, 2, 3}, Joined -> False, Frame -> True, FrameLabel -> {Rotate["\!$$\*SqrtBox[\(x$$]\)", \[Pi]/2], "\!$$\*SqrtBox[\(y$$]\)"}]] however if you accept unrotated label, you can use: Export["test.pdf", ListPlot[{1, 2, 3}, Joined -> False, ...

3

Update 2015-05-14 I contacted WRI support and they confirmed that this is a known issue with Export (support case: 3206586). Summary @ChenStatsYu seems to have found an unexplained behavior of the Export function for PDF files that looks like a bug. Detailed results 1) I generated two graphics similar to those in the OP's original question, then ...

3

As there has not been any further input so far, I shall try to expand my latest edits into a complete answer. As mentioned before, Mathematica's apparent behavior is that ImageSize is given in units equal to 1/72 of an inch. The default resolution when outputting to a raster format is also 72dpi. So it should come as no surprise, that ...

3

A similar problem is being discussed in this thread. I'll copy my method of going around it here, in case someone stumbles on this thread through searches. I have been saving a file wit MatrixPlot (using Save As...-> PDF), and have encountered a similar problem. Turns out, MatrixPlot (and similar) data is being exported as a bitmap, which gets ...

3

As confirmed by WRI, it is a bug, which is specific to Linux and which was introduced in version 10.0.2. No workaround known yet except for two possible recommendations, especially when it comes to plot labels: Avoid using commas or other short symbols like ":", ";" or maybe even "|". Try renaming your variables so that string sequences before the short ...

2

It is easier to create a notebook object and set options. For example, if I want a PDF with some plots and an equation and save it as a PDF in Landscape form (so its not cut off): newbook = CreateDocument[{plot1, plot2, plot3, equations1}] SetOptions[newbook, PrintingOptions -> {"PaperOrientation" -> "Landscape"}] Export[NotebookDirectory[] ...

2

Edit I was thinking about some automation of your request. With the the following approach you can create a new notebook, show your tables and graphs and save a new notebook as PDF. SetDirectory@NotebookDirectory[]; some Code ... some Code List all global variables, see here: names = Select[Names["Global`*"], Head@Symbol[#] =!= Symbol && ...

2

I can confirm that neither Mathematica 10, nor Mathematica 9 will import this file. Your installation is not broken. There is (very likely) nothing you can do to make Mathematica read this file. Your best best is transforming the PDF without changing it visually, then trying to import it again. There are many programs that can do this, including Adobe ...

2

AFAIK, the only documented options to Export pdf files are "ImageSize", "ImageResolution" and "AllowRasterization", so my answer would be no, natively. You could down-convert the Mathematica pdf file using Ghostscript (I haven't tried that myself) Run["gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -dCompatibilityLevel=1.4 -sOutputFile=output.pdf ...

2

You need to set the size of the elements of the scorecard. Have a look at Histogram's ImageSize option. Also you can set your tables in Grid or TableForm wrapped in a Pane or Panel to get them the size you want as well. They have ImageSize options as well. To help with the ImageSize parameters make use of UnitConvert to convert from your know dimensions in ...

1

Analysis I have taken a look at your misbehaving PDF file generated by Mathematica 10.2 on Mac OS X and here are my observations: Your PDF file should use 83 different fonts which names are listed in it. But the pdffonts utility (a part of Poppler utilities version 0.34) lists only 80 fonts (the listing is here). The missing fonts are: "Bookshelf Symbol ...

1

It looks like setting Compatibility: Acrobat 4 (PDF 1.3) in the Save Adobe PDF dialog in Illustrator solves the issue (checked with Illustrator 17): In the resulting PDF file the transparency is flattened without rasterization (here "Untitled-1.pdf" is PDF file generated by Illustrator from blank document where the Exported file "pl.pdf" was Placed): (* ...

1

It is not really an answer, but if you select this expression and go to Menu/Evaluation/EvaluateInPlace you will repair your formula. May be this helps. You might also want to define a simple function to apply it to each your expression to prevent any its unwanted reformatting. like this, for example: rE[expr_] := Rasterize[Evaluate[expr] // ...

1

(per Mike's comment). In Mathematica 9, the save as pdf produces more reasonable results after selecting: File -> Printing Settings -> Printing Environment -> Printout

1

If you want an overall page title and a different label on each subfigure: Column[ {Text[Style["Here are all my graphs", 24, Bold, Blue]], Grid[ Partition[ Table[ ListPlot[RandomInteger[{0, 10}, 10], ImageSize -> 400, PlotLabel -> "Figure number " <> ToString[i]], {i, 9}], 3]]}, Alignment -> Center]

1

This may be a workaround : Export["test.pdf", Plot[0, {x, 0, 1}, Frame -> True, FrameLabel -> {"c", ToString[\!$$\*FractionBox[\(a$$, $$b$$]\)]}]] Simply wrap ToString around and you will get the correct output.

1

Seems to export well (v10.0.2 OSX) this way : plot = Plot[x, {x, -1, 1}, Frame -> True, FrameLabel -> {"x", Rasterize[Style[OverBar[Pane@x], 14, FontFamily -> "Helvetica"], RasterSize -> 200]}]

1

Downgrade from Mathematica 10.0.2 back to 10.0.1. This can be done using a Time Machine backup if you have one on Mac OS. That fixed it for me, and there is nothing particular in 10.0.2 that I need, as far as I know.

Only top voted, non community-wiki answers of a minimum length are eligible