ODA Product: | Drawings SDK |
Sample Name: | OdPdfExportEx |
Categories: | C++ / Working with .dwg files / Android, iOS, macOS, Linux, Windows |
Location: | <INSTALL_DIR>/Drawing/Examples/OdPdfExportEx |
OdPdfExportEx is a simple console application used for reading a .dwg or .dxf file and saving it to a .pdf file with specified export options. It illustrates the usage of Kernel/Exports/PdfExport functionality.
To run the OdPdfExportEx sample application, please do the following:
<INSTALL_DIR>\exe\<PLATFORM_NAME>\
<INSTALL_DIR>/bin/<PLATFORM_NAME>/
<INSTALL_DIR>
is a directory where you unpacked the
Drawings SDK archive.<PLATFORM_NAME>
parameter, please see
the ODA Platform Naming Conventions section in the
Downloading Drawings SDK topic.
OdPdfExportEx <source file> <target file> <exportflags> [options]
source file
|
A full path to a .dwg or .dxf file to read data from. |
target file
|
A full path to a .pdf to write data to. |
exportflags
|
Export flags determining a set of export parameters. Flags are implemented as a bit mask
represented with an integer value:
|
options
|
Export options:
|
If the application executed properly, you will see the source file loading progress and a message informing you that the database conversion is completed. In case you get the "usage" message, check the parameters. An error message indicates problems with the source file.
Copyright © 2002 – 2022. Open Design Alliance. All rights reserved.
|