GroupDocs.Conversion provides PdfLoadOptions to give you control over how the source PDF document will be processed. The following options could be set:
The document type is auto-detected during loading, however, you can specify explicitly the type of the source document. Available options are: Pdf, Epub, Xps, Tex, Ps, Pcl
GroupDocs.Conversion for .NET allows you to set a default font name when a font is not available in the document. You can use the DefaultFont property of the PdfLoadOptions class to set the default font name. In case the DefaultFont property is not set the Times New Roman font will be used. The following code snippet shows how to set a default font name when converting from PDF to word-processing document:
The following code snippet shows how to convert a PDF document and specify font substitution for missing fonts:
Contracts.Func<LoadOptions>getLoadOptions=()=>newPdfLoadOptions{FontSubstitutes=newList<FontSubstitute>{FontSubstitute.Create("Tahoma","Arial"),FontSubstitute.Create("Times New Roman","Arial"),}};using(Converterconverter=newConverter("sample.pdf",getLoadOptions)){PdfConvertOptionsoptions=newPdfConvertOptions();converter.Convert("converted.docx",options);}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.