Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set PDF metadata using iLogic

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
magjal
1773 Views, 10 Replies

Set PDF metadata using iLogic

magjal
Explorer
Explorer

Hi,

I´ve found some iLogic code to print a drawing to a PDF document. After some minor modifications it works just fine, but I would like to add some code which allows med to set PDF properties (such as "title", "author", etc.) with values from iProperties. How can I do that? Is it possible? (I'm new to iLogic).

//Magnus

Regards, Magnus
0 Likes

Set PDF metadata using iLogic

Hi,

I´ve found some iLogic code to print a drawing to a PDF document. After some minor modifications it works just fine, but I would like to add some code which allows med to set PDF properties (such as "title", "author", etc.) with values from iProperties. How can I do that? Is it possible? (I'm new to iLogic).

//Magnus

Regards, Magnus
Tags (3)
10 REPLIES 10
Message 2 of 11
kmiller
in reply to: magjal

kmiller
Collaborator
Collaborator

Have you ever found anyone to reply to this or a way to do it?

-------------------------------------------------------------------------------------------------

If this response answers your question please click "Accept as Solution".
0 Likes

Have you ever found anyone to reply to this or a way to do it?

-------------------------------------------------------------------------------------------------

If this response answers your question please click "Accept as Solution".
Message 3 of 11
Curtis_Waguespack
in reply to: kmiller

Curtis_Waguespack
Consultant
Consultant

Hi kmiller,

 

I think will involve a bit of work from the Windows file side of things:

https://www.google.com/#bav=on.2,or.r_cp.r_qf.&fp=196e23fbed2912c1&q=vb.net+write+file+properties

 

I would search and/or ask this question on the Inventor Customization forum:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Hi kmiller,

 

I think will involve a bit of work from the Windows file side of things:

https://www.google.com/#bav=on.2,or.r_cp.r_qf.&fp=196e23fbed2912c1&q=vb.net+write+file+properties

 

I would search and/or ask this question on the Inventor Customization forum:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Message 4 of 11
kmiller
in reply to: kmiller

kmiller
Collaborator
Collaborator

Thanks - I was just going a google search and ran accross this forum first.  Guess i didn't go any further than that. 

 

-------------------------------------------------------------------------------------------------

If this response answers your question please click "Accept as Solution".
0 Likes

Thanks - I was just going a google search and ran accross this forum first.  Guess i didn't go any further than that. 

 

-------------------------------------------------------------------------------------------------

If this response answers your question please click "Accept as Solution".
Message 5 of 11
Curtis_Waguespack
in reply to: kmiller

Curtis_Waguespack
Consultant
Consultant

Hi kmiller,

 

Ooops, I ddin't mean to suggest you hadn't worked hard enough searching (but I can see where my post does come off that way),  Smiley Embarassed

 

I just meant that I think the solution will come from working with the Windows file hooks API , rather than the Inventor API. In either case the Customization Forum will be the place to find out.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

0 Likes

Hi kmiller,

 

Ooops, I ddin't mean to suggest you hadn't worked hard enough searching (but I can see where my post does come off that way),  Smiley Embarassed

 

I just meant that I think the solution will come from working with the Windows file hooks API , rather than the Inventor API. In either case the Customization Forum will be the place to find out.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Message 6 of 11
kmiller
in reply to: Curtis_Waguespack

kmiller
Collaborator
Collaborator

Sounds good.  I didn't search enough so it would have been a valid assumption. Smiley Wink  I am writng my code in vb.net so I think I can possibly come up with something.  We are just brainstorming some stuff here in regards of the best way to push file data from inventor into another system. 

 

I do appreciate the quick response and will check it out. 

 

Thanks.

-------------------------------------------------------------------------------------------------

If this response answers your question please click "Accept as Solution".
0 Likes

Sounds good.  I didn't search enough so it would have been a valid assumption. Smiley Wink  I am writng my code in vb.net so I think I can possibly come up with something.  We are just brainstorming some stuff here in regards of the best way to push file data from inventor into another system. 

 

I do appreciate the quick response and will check it out. 

 

Thanks.

-------------------------------------------------------------------------------------------------

If this response answers your question please click "Accept as Solution".
Message 7 of 11
magjal
in reply to: magjal

magjal
Explorer
Explorer

Hi,

 

Thank you for your reply! I will check out your suggestions.

I did search the solution to my problem in both discussion groups and google before I posted this question, but without any luck. Guess I didn't really knew how to phrase my search...

Regards, Magnus
0 Likes

Hi,

 

Thank you for your reply! I will check out your suggestions.

I did search the solution to my problem in both discussion groups and google before I posted this question, but without any luck. Guess I didn't really knew how to phrase my search...

Regards, Magnus
Message 8 of 11
bruce.blundell
in reply to: magjal

bruce.blundell
Participant
Participant

Hi All,

Has there been any further findings on this ?

 

I am looking to embed various iproperties into PDF's so that these can

be extracted into an excel document register.

 

I'll keep looking too and feedback to here if I find anything

 

Regards

Bruce

0 Likes

Hi All,

Has there been any further findings on this ?

 

I am looking to embed various iproperties into PDF's so that these can

be extracted into an excel document register.

 

I'll keep looking too and feedback to here if I find anything

 

Regards

Bruce

Tags (3)
Message 9 of 11
MjDeck
in reply to: bruce.blundell

MjDeck
Autodesk
Autodesk
Accepted solution

@bruce.blundell , you can do it with the attached rule. I tested it on a drawing in Inventor 2019. It should work in 2018 as well. It requires the PdfSharp library, which you can download from https://www.nuget.org/packages/PdfSharp/1.50.5147

The download is a .nupkg file. 7-Zip will unzip it.

Find the file PdfSharp.dll (in the lib\net20 folder) and copy it to the folder:

C:\Program Files\Autodesk\Inventor 2019\Bin\iLogicAdd

(or similar for 2018).

 


Mike Deck
Software Developer
Autodesk, Inc.

@bruce.blundell , you can do it with the attached rule. I tested it on a drawing in Inventor 2019. It should work in 2018 as well. It requires the PdfSharp library, which you can download from https://www.nuget.org/packages/PdfSharp/1.50.5147

The download is a .nupkg file. 7-Zip will unzip it.

Find the file PdfSharp.dll (in the lib\net20 folder) and copy it to the folder:

C:\Program Files\Autodesk\Inventor 2019\Bin\iLogicAdd

(or similar for 2018).

 


Mike Deck
Software Developer
Autodesk, Inc.

Message 10 of 11
bruce.blundell
in reply to: MjDeck

bruce.blundell
Participant
Participant

Cheers Mike

 

I'll give that a crack and see how I go

 

Bruce

0 Likes

Cheers Mike

 

I'll give that a crack and see how I go

 

Bruce

Message 11 of 11

bruce.blundell
Participant
Participant

That Works perfectly Mike, Many thanks for your help!

 

Now for my next trick I need to be able to then extract those custom properties into an excel spreadsheet

 

I am going to have a look around and see if there is any VBA that can extract that

 

Regards

Bruce

 

0 Likes

That Works perfectly Mike, Many thanks for your help!

 

Now for my next trick I need to be able to then extract those custom properties into an excel spreadsheet

 

I am going to have a look around and see if there is any VBA that can extract that

 

Regards

Bruce

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report