Export to PDF fails

Export to PDF fails

Mario-Villada
Advocate Advocate
1,085 Views
6 Replies
Message 1 of 7

Export to PDF fails

Mario-Villada
Advocate
Advocate

Hi there,

I have been using a macro to create PDFs from inventor drawings with the translator for many years now, I starrted in a new company and it is creating invalid PDF files. So when I try to create the PDF manually by clicking on Save copy As, I am getting this error :

 

   Published with a warning(s)     

Cannot create font

 

As you can see the font has no name so I can't install any missing font.

I found out that this error occurs only in drawings created from the company template wich I believe was created years ago. If I use any other template from inventor everything is ok.

 

Mi first thought was that there is something wrong in any text field on the title block, but I don't know what to look for.

 

Does anybody knows how to fix this?

0 Likes
Accepted solutions (1)
1,086 Views
6 Replies
Replies (6)
Message 2 of 7

adam.nagy
Autodesk Support
Autodesk Support

Hi,

 

Would it be possible for you to post a minimal sample document that enables us to reproduce the issue?

It sounds like you can reprouce it in the UI as well, so it might be worth posting it on the Inventor Product Support forum too to see if they can comment on it.

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 7

Mario-Villada
Advocate
Advocate

Thanks for your reply Adam,

I did have a response from on the othe forum. It helped soving part of the problem but still cannot get the PDF.

This was the response : RESPONSE

 

Thanks to Paul I fixed some problems on the text fields by changing the font, But I have also found out that there is a problem with the drawing views as well.

 

Please have a look a the attached file and try to save as PDF. you will see my issue.

 

It would be great if this can be solved since there are thousands of drawings like this one. We also detected the same problem when creating DWFs and even  Vault shows the same issue when previewing drawings.

 

Thanks again for your interest.

 

 

0 Likes
Message 4 of 7

adam.nagy
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

I've written a blog post that I hope will be of help: http://adndevblog.typepad.com/manufacturing/2013/09/remove-illegal-text-formatting.html

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 5 of 7

Mario-Villada
Advocate
Advocate
Fantastic! this will save heaps of time!
0 Likes
Message 6 of 7

Anonymous
Not applicable

Hello Adam. This is the exact problem that I am having. Could you help me get this running. When I run the this code in Inventor VB is doesn't like "RegExp". I get a complie error "User-defined type not defined". Can you help.

 

I am on Inventor 2013 64 bit, windows 7

 

Thanks

0 Likes
Message 7 of 7

adam.nagy
Autodesk Support
Autodesk Support

Hi Molly,

 

You'll have to add whatever Microsoft VBScript Regular Expressions library you have:

 

RegExp.png

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes