Visio Guy

Visio Discussions => Programming & Code => Topic started by: Thomas Winkel on September 10, 2014, 07:47:06 PM

Title: How to export to PDF without hyperlinks?
Post by: Thomas Winkel on September 10, 2014, 07:47:06 PM
Hi,

I am using the ExportAsFixedFormat method for PDF export.
We have shapes with hyperlinks to local PDF documents that I do not want in my PDF exports.

Is there any way to prevent shape these hyperlinks from being exported?

Regards,
Thomas
Title: Re: How to export to PDF without hyperlinks?
Post by: Paul Herber on September 10, 2014, 09:56:53 PM
Hyperlinks have an "Invisible" cell, if this is true then the hyperlink is not exported. A few lines of VBA can set all hyperlinks invisible, do your export, then set the visibility back to normal.
Title: Re: How to export to PDF without hyperlinks?
Post by: Thomas Winkel on September 11, 2014, 01:09:43 PM
Thanks, Paul.
Not as easy as hoped, but it will work for me.

Regards,
Thomas
Title: Re: How to export to PDF without hyperlinks?
Post by: Paul Herber on September 11, 2014, 01:12:55 PM
 :)
Title: Re: How to export to PDF without hyperlinks?
Post by: zhuravsky on September 15, 2014, 09:53:44 AM
Another way - set behavior of hyperlink as "Non-printable"
Title: Re: How to export to PDF without hyperlinks?
Post by: Paul Herber on September 16, 2014, 09:26:15 AM
How do you do that?
Title: Re: How to export to PDF without hyperlinks?
Post by: zhuravsky on September 17, 2014, 09:22:14 AM
Right click->Format->Behavior->Miscellaneous
ShapeSheet -> Miscellaneous->NonPrinting
Title: Re: How to export to PDF without hyperlinks?
Post by: Paul Herber on September 17, 2014, 10:17:23 AM
But surely that stops the whole shape from printing, not just the hyperlink.
Title: Re: How to export to PDF without hyperlinks?
Post by: zhuravsky on September 17, 2014, 11:26:39 AM
Yes, you are right