Visio Guy

Visio Discussions => Programming & Code => Topic started by: cong on January 21, 2021, 07:17:17 AM

Title: VISIO and VBA
Post by: cong on January 21, 2021, 07:17:17 AM
Hi guy!

Is able to open a PDF file,clipboard the content and copy to visio for modifying?
thank you!
Title: Re: VISIO and VBA
Post by: Surrogate on January 21, 2021, 07:44:15 AM
IMHO, we haven't direct ways to do it !
Some years ago i try:
1. Open PDF-document via InkScape application (https://inkscape.org/).
2. Save content in SVG (https://www.w3.org/Graphics/SVG/) format.
3. Open SVG-file with Visio, copy content from here.
4. Paste content to target visio document.

But, first step can work only with PDF which convert from native office or CAD applications.
Not for scan !
Title: Re: VISIO and VBA
Post by: cong on January 21, 2021, 09:37:04 AM
Thank you for your experience !
Actually now i change to create image database then import image.
It takes time but more simple than  import directly from PDF.

Title: Re: VISIO and VBA
Post by: Surrogate on January 21, 2021, 09:54:10 AM
Quote from: cong on January 21, 2021, 09:37:04 AM
It takes time but more simple than  import directly from PDF.
Visio can't open PDF document, i dont know how open PDF with 3rd party application via VBA, for copy content from here :(