Visio Guy

Visio Discussions => General Visio => Topic started by: hana on July 26, 2022, 02:47:47 AM

Title: How to remove document structure tags by default?
Post by: hana on July 26, 2022, 02:47:47 AM
I want to export Visio documents as PDFs but don't want the document structure tags on.  I know I can uncheck the box each time I wish to convert the document, but is there a way of making this the default?
I'm also curious why would you want a black outline around an image like that?

https://ibb.co/nDY0y7J

Title: Re: How to remove document structure tags by default?
Post by: Surrogate on July 26, 2022, 03:20:30 AM
Quote from: hana on July 26, 2022, 02:47:47 AMI know I can uncheck the box each time I wish to convert the document, but is there a way of making this the default?
In Visio you can export document to PDF/XPS format via code with ExportAsFixedFormat method (https://docs.microsoft.com/en-us/office/vba/api/visio.document.exportasfixedformat). This method have parameters: ColorAsBlack, IncludeBackground and IncludeStructureTags. Each of these parameters have default value, which is TRUE.
You can write simple one line macro like as in the example (https://docs.microsoft.com/en-us/office/vba/api/visio.document.exportasfixedformat#example) for change these parameters...
(https://i.imgur.com/qng3gPM.png)