How to apply PC3 config file when rendering CAD formats

From 21.11 version you can apply PC3 file configuration. PC3 file is “Plotter Configuration Version 3” – contains settings for a particular plotter, GroupDocs.Viewer can apply width/height of page from PC3 file. To apply PC3 file, please use the following code:

    try (Viewer viewer = new Viewer("sample.dwg")) {
        PngViewOptions options = new PngViewOptions("result.png");


PC3 files location

By default, the PC3 files of an Autocad installation will be saved at:
C:\Users\%User Name%\AppData\Roaming\Autodesk\AutoCAD [Version]\[Version Code]\[Language]\Plotters For example, for an English version of Autocad 2021 it would be: C:\Users\%UserName%\AppData\Roaming\Autodesk\AutoCAD 2021\R24.0\enu\Plotters

More resources

GitHub Examples

You may easily run the code above and see the feature in action in our GitHub examples:

Free Online App

Along with full-featured Java library we provide simple but powerful free Apps. You are welcome to view Word, PDF, Excel, PowerPoint documents with free to use online GroupDocs Viewer App.