Free Support Forum - groupdocs.com

PDF cannot be previewed


#1

Here is an example of a pdf that cannot be viewed:

http://www.richardpoynder.co.uk/Interview_Royster.pdf

Aparently this is due to a missing font.
Doesn’t group docs rely on some default fonts? What is the list of fonts that groupDocs has support for?

StackTrace:
class com.groupdocs.viewer.internal.c.a.pd.c.d: Font Times New Roman,Bold can not found.
com.groupdocs.viewer.internal.c.a.pd.f.fD.s.m27(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.f.dD.a.a(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.f.dD.e.a(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.f.bV.l.c(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.f.bV.l.b(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.f.bV.l.a(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.f.bV.l.a(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.g.a(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.dO.a(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.a.a(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.O.a(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.a.a(Unknown Source)
com.groupdocs.viewer.internal.c.a.pd.O.a(Unknown Source)
com.groupdocs.viewer.b.a.i.O(Unknown Source)
com.groupdocs.viewer.b.a.i.bE(Unknown Source)
com.groupdocs.viewer.handlers.ViewerHandlerBasic.viewDocument(Unknown Source)
com.groupdocs.viewer.handlers.ViewerHandler.viewDocumentHandler(Unknown Source)


#2
Hello ,

Thank you for your inquiry.

Our library uses the fonts stored in the OS and if the library doesn't find required fonts, then it throws this exception. From your stack-trace we can assume that in your OS is missed "Times New Roman" font, so you should install it.

Please check this article for how to install the required TrueType Fonts .

If you will have more questions please feel free to contact us.

------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+


#3

Thanks for your answer.

Which fonts are we allowed to install? Does the groupDocs license cover any fonts?
Or should we have licenses for the fonts used?

Thanks


#4
Hello,

As I said you earlier , that our library uses the fonts installed on the OS. If the document has any fonts ,which are not installed in the OS, then the library will change such missed fonts with the existing fonts.

As you can see from the stack trace, that was missed "Times New Roman" font and we can assume that you run the library on the Linux or Mac OS . The "Times New Roman" is the free font and belongs to Windows fonts, so I will share with you the link on the documentation , for how to install other fonts on Linux or Mac OS.

Note: If your documents will include licensing fonts, then such fonts should be installed on your OS.

If you will have more questions please feel free to contact us.

--------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+