Render an uploaded PDF drawing to an image

Same as GET /render, but the PDF file is the request body.

post/render-pdf

Request

  • Base URL: https://aspicio-api.frontsail.app
  • URL: https://aspicio-api.frontsail.app/render-pdf
  • Auth: none required

Query parameters

spacestring

Which space to work on: "Model" (a PDF's page 1, a DXF's model space) or a page/layout name as listed in a describe reply's "spaces". Describe omits it for the whole drawing; render defaults to the first space. A name the drawing does not have is a 400.

format'png' | 'svg'

Image format (default png)

widthinteger

PNG width in pixels (default 1200)

bgstring

Background: a hex color like "#16181d" (URL-encode the #), or "none" for transparent. Default dark slate.

Response

The rendered image

Changes

No recorded changes to this operation across all 1 revision of this API.