Jump to content
YM77

Import math equations from PDF results in question marks

Recommended Posts

Hi

I was trying to import a math equation from PDF, which I made with MS word (see attachment). And it ends up in all question marks. Did i messed up some setting? or it's a know problem form pdf/word?

1835366439_Screenshot(17).thumb.png.e4cb30268daf47aa8c3bc3181eecfe6d.png

MM_Equa2.pdf

Share this post


Link to post
Share on other sites

This is being caused by an issue reading the font Calibri I have passed this along to our QA team in the meantime if you use the font Ariel for the equation the PDF will import correctly, I have attached a converted version of your PDF file

MM_Equa2 ariel.pdf

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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.


×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.