The following code snippet shows how to render a .docx document to PDF:
usingGroupDocs.Viewer.Options;usingGroupDocs.Viewer;// ...using(Viewerviewer=newViewer("sample.docx")){// Create a PDF file.PdfViewOptionsviewOptions=newPdfViewOptions();viewer.View(viewOptions);}
ImportsGroupDocs.Viewer.OptionsImportsGroupDocs.Viewer' ...
ModuleProgramSubMain(argsAsString())UsingviewerAsViewer=NewViewer("sample.docx")' Create a PDF file.
DimviewOptionsAsPdfViewOptions=NewPdfViewOptions()viewer.View(viewOptions)EndUsingEndSubEndModule