makePdf: Convert a DWG to a PDF.

View source: R/designAutomation.R

makePdfR Documentation

Convert a DWG to a PDF.

Description

Convert a publicly accessible DWG file to a publicly accessible PDF using the Design Automation API v3.

Usage

makePdf(source = NULL, destination = NULL, token = NULL)

Arguments

source

A string. Publicly accessible web address of the input DWG file.

destination

A string. Publicly accessible web address for the output PDF file.

token

A string or aps_token object with code:all scope.

Value

An object containing the WorkItem id, status, and stats. Use id with checkPdf to poll for completion, or use waitForWorkItem to block until done.

Examples

## Not run: 
mySource <- "http://download.autodesk.com/us/samplefiles/acad/visualization_-_aerial.dwg"
myDestination <- "https://example.com/output/aerial.pdf"
resp <- makePdf(mySource, myDestination, token = myToken)
myWorkItemId <- resp$content$id

## End(Not run)

AutoDeskR documentation built on May 28, 2026, 5:08 p.m.