For more details, please visit Convert DWF to PDF File using C#
Last active
December 22, 2021 17:11
-
-
Save aspose-com-gists/cc645bc3737cb41482f96cc05443290e to your computer and use it in GitHub Desktop.
Convert DWF to PDF File Programmatically in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the input DWF file | |
Image image = Image.Load("DWFtoPDF.dwf"); | |
// Create an object of CadRasterizationOptions to set different properties | |
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions() | |
{ | |
PageWidth = 1600, | |
PageHeight = 1600, | |
ContentAsBitmap = true | |
}; | |
// Convert DWF to PDF | |
image.Save("output.pdf", PdfOptions | |
{ | |
VectorRasterizationOptions = rasterizationOptions | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment