Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Programmatically add jpg/gif image to every layout of a DWF

2 REPLIES 2
Reply
Message 1 of 3
jamilnour
510 Views, 2 Replies

Programmatically add jpg/gif image to every layout of a DWF

Hi,

Can anybody tell me how to programmatically add an image to every layout of a DWF?

Any code or link to a useful documentation will be appreciated.

Thank you
Jamil
2 REPLIES 2
Message 2 of 3
ADR_Jerry
in reply to: jamilnour

Thank you for your question.

You can add an image to layout of DWF by following steps.

1. Create a new W2D file;
2. Parse all 2D objects out from original DWF file and write them into the new W2D file and add the image at the right place you want. For detail about adding an image into new W2D file, please refer to the sample project "SimpleEPlotWriter";
3. Remove the 2d graphics resource from original DWF file and add the new W2D file as 2d graphics resource.

Please let me know if you have any further questions.
Message 3 of 3
jamilnour
in reply to: jamilnour

we will probably need more help when we write the code.

I have question please:

Is it possible to build a webservice project using visual studio and DWFToolkit to expose these functionalities?

Thank you
Jamil

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

Post to forums  

”Boost

 

”Tips

 

”Services