Jump to content
You must now use your email address to sign in [click for more info] ×

Import math equations from PDF results in question marks


Recommended Posts

When you look into the PDF, the font is called Cambria Math. Illustrator complains about Cambria%20Math missing. Attached you will find a SVG with the equation and editable text.

Someone interested on how to convert the equation? Maybe interesting for those having only the PDF.

cambria.jpg

 

equationtext-designer.svg

Edited by Joachim_L
Originally attached SVG was a bit messy inside

------
Windows 10 | i5-8500 CPU | Intel UHD 630 Graphics | 32 GB RAM | Latest Retail and Beta versions of complete Affinity range installed

Link to comment
Share on other sites

Thanks for @Joachim_L the SVG  file. It worked.

@DWright, I kinda figured it out, and it's a font issue. In word there is a "Normal text" function that allows you to use non-math text in equations. If that is enabled, affinity designer will just import fine, but the equation look less "math". Not sure what changed with that function. BTW i don't know why you saw Calibri. It was Cambria Math from my side in the PDF I uploaded.

Link to comment
Share on other sites

21 hours ago, Joachim_L said:

Someone interested on how to convert the equation? Maybe interesting for those having only the PDF.

Noone? I will tell you anyway, because the below told procedure saved my lower back a few times. ;)

1. Go to mupdf.com and download the command line tool. Currently only for Windows and Linux, but there is also an old version for Mac (don't know if it still works).

2. If you want to convert a PDF to SVG keeping the text (there is also an option for converting text to curves) you have to type the following into you command line:

mutool convert -O text=text -o nameofoutputfile.svg nameofinputfile.pdf

3. Still we have a little work to do, as the converted SVG has too many curves and groups inside. 1.12 seems to produce fewer curves than the latest 1.16. Remove the unnecessary curves / groups, otherwise the SVG will be rasterised.

A lot of work I know, but in the end you get a file that plays nicely. So this is just a workaround until import of those "weird" PDF gets improved by Serif.

------
Windows 10 | i5-8500 CPU | Intel UHD 630 Graphics | 32 GB RAM | Latest Retail and Beta versions of complete Affinity range installed

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.