[Date Index]
[Thread Index]
[Author Index]
Re: Creating a PDF graphic with Mathematica
*To*: mathgroup at smc.vnet.net
*Subject*: [mg127207] Re: Creating a PDF graphic with Mathematica
*From*: R Martinez <rm.tech at mac.com>
*Date*: Sun, 8 Jul 2012 18:58:48 -0400 (EDT)
*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com
*Delivered-to*: mathgroup-newout@smc.vnet.net
*Delivered-to*: mathgroup-newsend@smc.vnet.net
*References*: <jsefao$i9l$1@smc.vnet.net> <201206290849.EAA13269@smc.vnet.net>
Thanks to Jens and DanW for their suggestions.
Here's the outcome.
1. There was no problem with the Opacity setting. But I'll keep this in mind for the future. It's a great tip as it would never occur to me to check this.
2. Jens's code
> outlinedGraphics = First@ImportString[
> ExportString[graph, "PDF"], "PDF", "TextMode" -> "Outlines"]
>
> Export["graphic.pdf", outlinedGraphics]
solved my problem. All the non-standard fonts are embedded in the graphic and display correctly in Adobe Reader. Moreover, the IEEE graphic checker no longer complains about missing fonts.
I have to say that I am amazed by this code. Although I'm an experienced Mathematica user, it would not occur to me to do this to export a graphic to PDF.
The fact that Jens's code works better than Mathematica's built-in graphics export command is troubling. It suggests that Mathematica's export-to-PDF code is deficient. Embedding non-standard fonts in the exported graphic should be standard procedure in Mathematica, but my experience with Jens's code says otherwise.
Incidentally, Jens's web page "Creating and Post-Processing Mathematica Graphics in Mac OSX" (http://pages.uoregon.edu/noeckel/MathematicaGraphics.html#OutlineFonts) is an amazing resource, which I have bookmarked.
Thanks again.
Raul Martinez
On Jun 29, 2012, at 1:49 AM, JUN wrote:
> On Wednesday, June 27, 2012 1:13:12 AM UTC-7, R Martinez wrote:
>> Hello,
>>
>> I created a PDF graphic that contains one character (the letter A ) from the TeX Gyre Chorus font. I created the graphic using Mathematica 8.0.4.
>>
>> Then I included the PDF graphic in a LaTeX document, and typeset the document correctly as a PDF file. I plan to submit the paper to an IEEE journaI.
>>
>> I'm having a problem because the PDF graphic fails to pass the test of the IEEE's online graphics checker. The graphics checker complains that the PDF graphic contains a non-standard font that is not embedded in the PDF file. The graphic displays correctly in Preview. Adobe Reader displays everything correctly except the TeX Gyre character, for which Reader substitutes a Roman A. The fact that Reader displays incorrectly the TeX Gyre character incorrectly suggests that the font is not embedded in the PDF graphic. On the other hand, Preview's correct rendering suggests that the font is embedded in the graphic.
>>
>> The IEEE graphics checker also complains that other fonts such as Symbol and Times Bold are not embedded in the PDF graphic. But the Adobe Reader displays these fonts correctly.
>>
>> To confuse things even more, the IEEE has a separate online "PDF checker" where one uploads the entire typeset PDF document (including all the plots). So I uploaded (1) the entire document, and (2) just the PDF graphic. Both passed the tests of the PDF checker and were approved as correct.
>>
>> I tried converting the PDF graphic to EPS using an online converter to which one uploads the PDF graphic. The online converter works only with the graphics/font data contained in the PDF graphic. So all information used by the PDF -> EPS converter must reside in the graphic itself. The conversion worked well for everything except the TeX Gyre character, for which it substituted a plain A, as Adobe Reader did. This suggests that the TeX Gyre character was not embedded in the PDF graphic.
>>
>> After creating a graph with the standard Mathematica Plot[ ] command, I used two methods to create the PDF graphic:
>>
>> (1) Export["graphic.pdf", graph], where graph is the name of the variable I gave to the output of Plot, i.e., graph = Plot[ ];
>>
>> (2) Selected the graphic image on the notebook page, then used Menu > File > Save Selection As... > select the PDF format.
>>
>> Both methods produced the same results.
>>
>> Has anyone had a similar experience? If so, how did you resolve the issue?
>>
>> How do I make sure that all the fonts are embedded in the PDF graphic?
>>
>> I welcome all advice and suggestions.
>>
>> Thanks in advance.
>>
>> Cheers,
>>
>> Raul Martinez
>
>
> What I almost always do for such cases is this:
>
> outlinedGraphics = First@ImportString[
> ExportString[graph, "PDF"], "PDF", "TextMode" -> "Outlines"]
>
> Export["graphic.pdf", outlinedGraphics]
>
> For more details, see my web page:
> http://pages.uoregon.edu/noeckel/MathematicaGraphics.html#OutlineFonts
>
> Jens
>
Prev by Date:
**Re: Integration result depends on variable name / problem with BesselJ**
Next by Date:
**Re: polarplot with arrow bearing tickmarks**
Previous by thread:
**Re: Creating a PDF graphic with Mathematica**
Next by thread:
**Re: Integration result depends on variable name / problem with**
| |