DWF

Reply
Member
prashanweera
Posts: 5
Registered: ‎02-21-2013
Message 1 of 8 (991 Views)

Add Image to DWF file

991 Views, 7 Replies
02-21-2013 02:20 AM

Dear All,

 

I need to add image to a "DWF" file and save it back (to same file) using "DWFToolkit". There is a example in the tool kit but that example create a new file which consume lot of time.

 

Thank you,

Pra

Mentor
amitk_189
Posts: 242
Registered: ‎12-15-2011
Message 2 of 8 (960 Views)

Re: Add Image to DWF file

02-21-2013 08:23 PM in reply to: prashanweera

Hello Pranesh,

 

Even i am trying to add an image to DWF file using .NET, but i am applying using C#.

 

The image i add is some what getting added to DWF file but its not saving.

Are you doing the same in C# and can you share some thoughts about this project.

 

 

Regards

Amit

Mentor
amitk_189
Posts: 242
Registered: ‎12-15-2011
Message 3 of 8 (954 Views)

Re: Add Image to DWF file

02-21-2013 09:42 PM in reply to: prashanweera

Can you suggest me how you did using DWF Tool Kit

 

Rgds

Amit

Member
prashanweera
Posts: 5
Registered: ‎02-21-2013
Message 4 of 8 (892 Views)

Re: Add Image to DWF file

02-26-2013 08:55 PM in reply to: amitk_189

Hello Amit,

 

I am using the C++ for the development. This is mainly the bacause the DWF tool kit is on C++.

 

Thank you,

Pra

Member
prashanweera
Posts: 5
Registered: ‎02-21-2013
Message 5 of 8 (891 Views)

Re: Add Image to DWF file

02-26-2013 08:57 PM in reply to: amitk_189

Hello Amit,

 

What do you mean by "The image i add is some what getting added to DWF file but its not saving" ?. How you say that the image is getting added somw what ???

 

Thanks,

Pra

Mentor
amitk_189
Posts: 242
Registered: ‎12-15-2011
Message 6 of 8 (871 Views)

Re: Add Image to DWF file

02-27-2013 12:17 AM in reply to: prashanweera

1) I load the dwf controls on windows form

2) then i wrote a code to load image to form on which dwf controls is present, this image is present on local hard drive. This image can be dragged any where on form, just as stamps. For this i wrote a mouse move events for Image file.

3) Nowthe issue is how to attach the image to dwf file and save it.

 

 

Regards

Amit

Member
prashanweera
Posts: 5
Registered: ‎02-21-2013
Message 7 of 8 (853 Views)

Re: Add Image to DWF file

02-27-2013 06:41 PM in reply to: amitk_189

Hello Amit,

 

There is an example in the DWF tool kit. In "DWFToolkit-7.5\samples\DWFToolkit\AddImage" location. This example shows how to add image programatically (C++). Hope this helps to you.

 

But it takes fairely large time to perform the operation which is my concern. Further this example saves contecn to new DWF file which I belive to consume large amount to resourese compared to changing single positions (image added location). If I can change only the required location and save back to change stuff to the same file this should increase the performence.

 

Thank you,

Pra.

Mentor
amitk_189
Posts: 242
Registered: ‎12-15-2011
Message 8 of 8 (849 Views)

Re: Add Image to DWF file

02-27-2013 08:34 PM in reply to: prashanweera

Hi Prasanweera, 

 

Thanks for guidance provided, i will work on it and if again things goes wrong i will get back to you.

 

 

Regards

Amit

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!