api/vectorArtPreview

Action:

The API accepts a vector file, converts it to PNG image with transparent background.

The supported vector formats are listed here: Vector formats.  

The default DPI is 96 when generating image. The transparent edge of result image will be removed.

Post Parameters:

  • appId: Application id of Wilcom API Develop Portal account.
  • appKey: Application key of Wilcom API Develop Portal account.
  • requestXml: an XML string containing a single vector file:
<xml>
  <vector … />
  <files>
    <file ... />				// vector file.
  </files>
</xml>

Return Values:

On success, an XML string containing the design information:

<xml>
  <files>
    <file ... />				// result PNG file.
  </files>
</xml>

Remarks:

The vector appoints which file will be processed in files .

Please read Vector Recipe: vector XML Data for more information.

The files contains the file name and file content of bitmap files which will be processed and processed image in the return. Please read Files: files XML Data for more information.