Skip to content
This documentation is currently in preview, therefore subject to change.

Convert Visio Document

The Convert Visio Document action converts a Visio file (.vsdx, .vsd) to another format and returns the resulting file content.

Parameters

NameTypeRequiredDescription
DocumentFile contentYesVisio document content (e.g. output of a Get file content action from SharePoint).
Output FormatStringYesDesired target format. One of: .pdf, .svg, .vsdx, .bmp, .tiff, .png, .emf, .jpeg, .html.

Optional Parameters per Output Format

BMP
ParameterTypeDescriptionOptions
Compositing QualityEnumPixel compositing algorithmDefault, AssumeLinear, GammaCorrected, HighQuality, HighSpeed, Invalid
Interpolation ModeEnumPixel interpolation algorithmBicubic, Bilinear, Default, High, HighQualityBicubic, HighQualityBilinear, Invalid, Low, NearestNeighbour
Jpeg QualityIntegerQuality level for JPEG compression when usedAny integer
Page CountIntegerNumber of pages to render in a multi‑page TIFFAny integer
Page IndexInteger0‑based index of the first page to renderAny integer
Pixel Offset ModeEnumPixel alignment strategyDefault, Half, HighSpeed, HighQuality, Invalid, None
ScaleFloatZoom factor for the generated imagesAny positive number
ResolutionIntegerDPI (dots per inch) for the generated imagesAny integer
Smoothing ModeEnumAnti‑aliasing strategyDefault, AntiAlias, HighQuality, HighSpeed, Invalid, None
Export Guide ShapesBooleanInclude Visio guide shapes in outputYes, No
Export CommentsBooleanInclude Visio comments in outputYes, No
EMF
ParameterTypeDescriptionOptions
Compositing QualityEnumPixel compositing algorithmDefault, AssumeLinear, GammaCorrected, HighQuality, HighSpeed, Invalid
Interpolation ModeEnumPixel interpolation algorithmBicubic, Bilinear, Default, High, HighQualityBicubic, HighQualityBilinear, Invalid, Low, NearestNeighbour
Jpeg QualityIntegerQuality level for JPEG compression when usedAny integer
Page CountIntegerNumber of pages to render in a multi‑page EMF fileAny integer
Page IndexInteger0‑based index of the first page to renderAny integer
Pixel Offset ModeEnumPixel alignment strategyDefault, Half, HighSpeed, HighQuality, Invalid, None
ScaleFloatZoom factor for the generated imagesAny positive number
ResolutionIntegerDPI (dots per inch) for the generated imagesAny integer
Smoothing ModeEnumAnti‑aliasing strategyDefault, AntiAlias, HighQuality, HighSpeed, Invalid, None
Export Guide ShapesBooleanInclude Visio guide shapes in outputYes, No
Export CommentsBooleanInclude Visio comments in outputYes, No
HTML
ParameterTypeDescriptionOptions
Page CountIntegerNumber of pages to renderAny integer
Page IndexInteger0‑based index of the first page to renderAny integer
Save TitleBooleanInclude document title in HTMLYes, No
Save ToolbarBooleanInclude Visio toolbar in HTMLYes, No
Export Guide ShapesBooleanInclude Visio guide shapes in outputYes, No
Export CommentsBooleanInclude Visio comments in outputYes, No
JPEG
ParameterTypeDescriptionOptions
Compositing QualityEnumPixel compositing algorithmDefault, AssumeLinear, GammaCorrected, HighQuality, HighSpeed, Invalid
Interpolation ModeEnumPixel interpolation algorithmBicubic, Bilinear, Default, High, HighQualityBicubic, HighQualityBilinear, Invalid, Low, NearestNeighbour
Jpeg QualityIntegerQuality level for JPEG compression when usedAny integer
Page CountIntegerNumber of pages to render in a multi‑page JPEG sequenceAny integer
Page IndexInteger0‑based index of the first page to renderAny integer
Pixel Offset ModeEnumPixel alignment strategyDefault, Half, HighSpeed, HighQuality, Invalid, None
ScaleFloatZoom factor for the generated imagesAny positive number
ResolutionIntegerDPI (dots per inch) for the generated imagesAny integer
Smoothing ModeEnumAnti‑aliasing strategyDefault, AntiAlias, HighQuality, HighSpeed, Invalid, None
Export Guide ShapesBooleanInclude Visio guide shapes in outputYes, No
Export CommentsBooleanInclude Visio comments in outputYes, No
PDF
ParameterTypeDescriptionOptions
Jpeg QualityIntegerQuality level for JPEG compression when usedAny integer
Horizontal ResolutionIntegerHorizontal DPI for rendered imagesAny integer
Vertical ResolutionIntegerVertical DPI for rendered imagesAny integer
Page CountIntegerNumber of pages to renderAny integer
Page IndexInteger0‑based index of the first page to renderAny integer
Split Multi PagesBooleanOutput each page as a separate PDF fileYes, No
ComplianceEnumPDF standard conformancePdf15, PdfA1a, PdfA1b
Export Guide ShapesBooleanInclude Visio guide shapes in outputYes, No
Export CommentsBooleanInclude Visio comments in outputYes, No
PNG
ParameterTypeDescriptionOptions
Compositing QualityEnumPixel compositing algorithmDefault, AssumeLinear, GammaCorrected, HighQuality, HighSpeed, Invalid
Interpolation ModeEnumPixel interpolation algorithmBicubic, Bilinear, Default, High, HighQualityBicubic, HighQualityBilinear, Invalid, Low, NearestNeighbour
Jpeg QualityIntegerQuality level for JPEG compression when usedAny integer
Page CountIntegerNumber of pages to render in a multi‑page PNG sequenceAny integer
Page IndexInteger0‑based index of the first page to renderAny integer
Pixel Offset ModeEnumPixel alignment strategyDefault, Half, HighSpeed, HighQuality, Invalid, None
ScaleFloatZoom factor for the generated imagesAny positive number
ResolutionIntegerDPI (dots per inch) for the generated imagesAny integer
Smoothing ModeEnumAnti‑aliasing strategyDefault, AntiAlias, HighQuality, HighSpeed, Invalid, None
Export Guide ShapesBooleanInclude Visio guide shapes in outputYes, No
Export CommentsBooleanInclude Visio comments in outputYes, No
SVG
ParameterTypeDescriptionOptions
QualityIntegerQuality level for JPEG encoding when saving pages as JPEG within SVG exportsAny integer
Page IndexInteger0‑based index of the first page to renderAny integer
Fit To View PortBooleanScale content to fit the SVG viewport dimensionsYes, No
Export Guide ShapesBooleanInclude Visio guide shapes in outputYes, No
Export CommentsBooleanInclude Visio comments in outputYes, No
TIFF
ParameterTypeDescriptionOptions
Compositing QualityEnumPixel compositing algorithmDefault, AssumeLinear, GammaCorrected, HighQuality, HighSpeed, Invalid
Interpolation ModeEnumPixel interpolation algorithmBicubic, Bilinear, Default, High, HighQualityBicubic, HighQualityBilinear, Invalid, Low, NearestNeighbour
Jpeg QualityIntegerQuality level for JPEG compression when usedAny integer
Page CountIntegerNumber of pages to render in a multi‑page TIFFAny integer
Page IndexInteger0‑based index of the first page to renderAny integer
Pixel Offset ModeEnumPixel alignment strategyDefault, Half, HighSpeed, HighQuality, Invalid, None
ScaleFloatZoom factor for the generated imagesAny positive number
ResolutionIntegerDPI (dots per inch) for the generated imagesAny integer
Smoothing ModeEnumAnti‑aliasing strategyDefault, AntiAlias, HighQuality, HighSpeed, Invalid, None
Export Guide ShapesBooleanInclude Visio guide shapes in outputYes, No
Export CommentsBooleanInclude Visio comments in outputYes, No

Returns

NameTypeDescription
File contentString (base64‑encoded)Base64‑encoded bytes of the converted file, suitable for downstream actions.

Troubleshooting

Click to expand common errors and fixes

Document Missing, Truncated, or Invalid

Cause:
Document input is empty, corrupted, or not a valid Visio binary.

Fix:

  • Supply the complete .vsdx / .vsd binary/base64 payload.
  • Validate that the payload decodes to a valid Visio file before conversion (open locally to confirm).

Unsupported or Misspelt Output Format

Cause:
Output Format is incorrect or not in the supported list.

Fix:

  • Verify the format string exactly matches a supported value.
  • Correct any spelling errors and retry.

Page Index / Page Count Out of Range

Cause:
Requested Page Index or Page Count exceeds the document’s pages or uses the wrong base.

Fix:

  • Use zero-based Page Index values.
  • Ensure Page Count and indices are within the document’s page range.
  • Omit paging options to render the default set.

Invalid Format-Specific Option Values

Cause:
Numeric values out of bounds, invalid enum names, or conflicting option combinations (e.g., negative DPI, unknown interpolation mode).

Fix:

  • Validate numeric ranges and enum values for the selected format.
  • Remove conflicting options and retry.

Images or Shapes Rendered with Poor Quality (Aliasing, Pixelation)

Cause:
Low resolution, inappropriate scale, or unsuitable interpolation/compositing settings.

Fix:

  • Increase resolution (DPI) and/or scale.
  • Select higher-quality interpolation and compositing modes.
  • Test changes on a representative page.

Missing Guide Shapes, Comments, or Metadata

Cause:
Export options exclude guide shapes or comments.

Fix:

  • Enable Export Guide Shapes and/or Export Comments when those elements are required.

Vector Data Converted to Raster (Loss of Editability)

Cause:
Choosing a raster output (PNG/JPEG/BMP/TIFF) instead of a vector format (SVG/PDF/EMF) causes rasterisation.

Fix:

  • Use a vector output (SVG, EMF, or PDF where available) to preserve vector shapes and editability.

Fonts, Connectors, or Layout Differ from Source

Cause:
Missing fonts, differences in rendering engines, or complex layering/connector rules.

Fix:

  • Embed or ensure availability of required fonts.
  • For faithful visual fidelity, prefer formats that better preserve layout (SVG/PDF).
  • Test with a minimal sample to identify specific elements that change.

Output Corrupted, Truncated, or Fails to Open

Cause:
Returned payload truncated, incorrectly encoded, or malformed for the selected format.

Fix:

  • Confirm the returned base64 string is complete and decodes successfully.
  • Re-run conversion with a small test document to determine whether truncation is consistent.

Performance, Timeouts, or Resource Limits with Large Diagrams

Cause:
Very large diagrams, extremely high DPI, or many pages exhaust rendering resources.

Fix:

  • Reduce DPI or scale.
  • Limit page range or convert in smaller batches.
  • Test to establish safe performance limits.

Generic Runtime or Transient Failure

Cause:
Malformed inputs, transient internal error, or unexpected internal state.

Fix:

  • Reproduce with a minimal Visio file and a minimal option set.
  • Validate inputs and retry to rule out transient conditions.

Quick Checklist

  • Document is a full .vsdx / .vsd binary/base64 payload (not a path or URL).
  • Output Format is one of the supported strings and spelt exactly.
  • Page-related options (Page Index, Page Count) are zero-based and within range.
  • Format-specific enums and numeric values are valid for the selected format (DPI, scale, interpolation, compositing).
  • Enable Export Guide Shapes / Export Comments if those elements are required.
  • For editable/vector output, prefer SVG, EMF, or PDF to preserve shapes.
  • Test conversions with a minimal representative diagram to validate settings before processing large or complex files.
  • If the output is corrupted or inconsistent, reproduce with a minimal sample and the exact option set used - those inputs are required to isolate the root cause.