Skip to main content
Spectrum Writing
Inspiring
August 6, 2021
Question

Display of imported PNGs

  • August 6, 2021
  • 7 replies
  • 470 views

I have an equation-laden document that I am writing. The equations are being created in a Word doc (.docx) using Word's native equation editor. The .docx file is then saved as an .htm/.html file and all the equations in the document are automatically saved as .pngs in a separate folder named as image.(n), where n is the image number.  I double-click an equation in this folder to automatically open the equation in my image editor (SnagIT - I don't need anything as heavy as Photoshop as I am not doing any modifications to the equations) and save the equation without any changes to it whatsoever with a new name. I then import the image into Framemaker byreference.   I don't mess w/ the dpi of the image when I select it for

import - any image in the folder that was created during the saving of the Word file shows a dpi of 96 in the Imported Graphic Scaling dialog box when I select it for import and although this seems nutty to me (because none of the images are over-sized). . . they look clear and crisp in the source FM file (The Advanced Properties of any image in SnagIT is also showing a resolution of 96 dpi);  however, upon generation of the PDF, it goes to h*ll in a handbasket. The equation looks almost as if the font is almost bold and therefore much darker than the text in the FM source file, and it's not nearly as crisp and clear as in the source FM document - it actually looks blurry/pixelated

 

Initially, the font that was  being used in the equations is Cambria Math, Size 14 with a default color of black without any lightening of the color.(The font that is being used in the book is also set to a default color of black without any lightening of the color.) I tried lightening the font color by different percentages in the Word document and then regenerated the equations as graphics, and that helps a bit, but overall, these graphics are just not nearly as crisp as they need to be in the final PDF.  Any other graphics that were taken as a capture and then imported by reference as  PNG are as crisp as I am used to in FM.

 

I am just at a loss for how to get this cleared up, but it's absolutely mandatory that I get this problem resolved because the whole focus of the book is the equations.

 

Where is Dov, the "fontnipotent" God when you need him?

 

TIA,

 

TVB

This topic has been closed for replies.

7 replies

Bob_Niland
Community Expert
Community Expert
August 16, 2021

Spectrum Writing continued this thread in a new one (due to unexpected forum behavior):
https://community.adobe.com/t5/framemaker/display-of-pngs-part-ii/td-p/12320765

Matt-Tech Comm Tools
Community Expert
Community Expert
August 6, 2021

Hi Tammy,

If the equation is appearing as you like in SnagIt, one thing you can rule out are the font issues. At that point, there are no fonts used, just pixels within the PNG.

Question: Why are you opening the images in SnagIt? In your current workflow, I would just import the PNG that was exported from MS Word. 

 

Now for the free advice (worth precisely what you've paid for it...): If the direct import of the PNG doesn't clear up the issue, I would recommend doing a direct screen grab of the content from the source, before exporting to HTML. Then go to Fm and directly paste into your content. Since you aren't modifying the screen grab, there is no reason to Import by Reference unless you're reusing the equations in a number of separate places. (also see below for recommendation on importing vectors, rather than bitmaps for your equations)

 

For reference, I had a career in commercial printing; managing screen shots this way results in the best possible quality, and with a minimal file size. The method has 2 things to be aware of:

  • If you reuse images in multiple locations, you need to track where each instance is placed if/when you update the graphic. If importing by reference, then updating the source image would update all instances in your docs. This hasn't been an issue for me or my clients.
  • When pasting, the placed image size will be dependent on the magnification of your Fm doc. Odd, but true. For whatever reason, viewing my docs at 160% gives me a perfect balance of size and clarity in my screenshots. 
    • Tammy: since your screenshots would be of MS Word content, you'd also need to be consistent with your magnification in MS Word.

 

So, if you "only use" equations in a single location, and don't want to use Fm's equation editor (I know you've had issues with the equation fonts not supporting what you need to do), try using the MS clipping tool or SnagIt (or other, like RoboScreenCapture, still included with Fm) to copy/paste.

 

Of course, since your scientific writing focuses on equations, I'd prefer you were using something (optimally, SVG) that produced vectors in the PDF, rather than bitmaps. SVG would also produce vectors for the HTML. This would provide the best rendering on screen and in the PDF/print.

 

-Matt

 

-Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant
Bob_Niland
Community Expert
Community Expert
August 7, 2021

Matt: I'd prefer you were using something (optimally, SVG) that produced vectors in the PDF, rather than bitmaps. SVG would also produce vectors for the HTML.

Concur; crushing to raster is just asking for trouble, and makes it impossible for the document user to copy-out content for discussion.
Importing-by-reference as PDF would be very straightforward. Because there would likely be a need to crop around the equation, the balance of the page could include metadata recording where the master equation came from.

EPS would also preserve the vector & font content.
SVG will at some point be ideal, as it could further flow to HTML or XML as-is.

LinSims
Community Expert
Community Expert
August 6, 2021

Just for giggles, I tried saving a Word file with an equation in it as an RTF and then using Frame to open the file. The equation came over okay, and when I save the file to PDF, it looks the same in the PDF file as in the Frame or Word files.

 

Perhaps what you can do is save the Word file with all the equations as RTF, then open it in Frame and just copy the relevant equations into place as you go? You won't be able to update them as they get imported as PNGs, but they look crisp enough to me.

 

Note: I am using Word 365 and FrameMaker 2020, fully patched. I do not know how or if this will work in earlier versions, but it surely can't hurt to try.

Jeff_Coatsworth
Community Expert
Community Expert
August 6, 2021

Ah, I was thinking that the equations get saved as images inside the Word doc - sorry about that. Your joboptions choices are probably the better ones. OR, you could use FM equation editor to produce the output OR capture actual images of the equations (which would take out any issues with fonts in them).

frameexpert
Community Expert
Community Expert
August 6, 2021

Try different Job Option settings when you create the PDF. Try High Quality Print or Press Quality.

Spectrum Writing
Inspiring
August 6, 2021

First to Jeff:

 

I am sorry for being so dense, but I am so stressed by this, I am not thinking clearly. The equations aren't PNGs in the Word doc.They have no extension/attribute for lack of a better way of stating this.  I have to save the Word doc to make them PNGs and get them extracted that way. I just followed your instructions - I made a copy of the doc., renamed it .zip and then extracted it and I got nothing for PNGs at all. I have folders named _rels, customXml, docProps, and word in all these folders and sub-folders, there is not a folder with any PNGs of the equations. Did I misunderstand you?

 

And Ric, I have a custom job option because on top of all of this, I have to embed the client's required fonts (all flavors of Roboto) into the PDF for proper display. I guess I need to select High Quality Print or Press Quality and modify those to embed the fonts as well. Will that mess up these options?

 

Thanks!

 

TVB

Community Expert
August 6, 2021

Hi Tammy,

 

The graphics files in a Word docx/zip file are in word\media.

However, formulas aren't graphics files. Therefore you will not find them there.

When other Distiller joboptions work better, then you should adapt your joboption.

However, Standard, High Quality Print, Press Quality embed the fonts. The Never Embed list is empty. However, they all embed only the needed subset.

 

Best regards

 

Winfried

 

LinSims
Community Expert
Community Expert
August 6, 2021

Dov left Adobe a few months ago. We all miss him.

Jeff_Coatsworth
Community Expert
Community Expert
August 6, 2021

How do the png's look if you just extract them direct from the .docx using the old "make a copy of the doc, rename it .zip & extract to folder" method to get the \media\ images out?