The following code snippets show how to use the fluent syntax:
FluentConverter.Load("sample.docx").ConvertTo("converted.pdf").Convert();FluentConverter.WithSettings(()=>newConverterSettings()).Load("sample.pdf").WithOptions(newPdfLoadOptions()).ConvertTo("converted.docx").WithOptions(newWordProcessingConvertOptions()).Convert();//with v24.10 and laterFluentConverter.Load("sample.pdf").WithOptions(newPdfLoadOptions()).ConvertByPageTo((SavePageContextsaveContext)=>newFileStream($"converted-{saveContext.Page}.docx",FileMode.Create)).WithOptions(newWordProcessingConvertOptions()).Convert();// before v24.10FluentConverter.Load("sample.pdf").WithOptions(newPdfLoadOptions()).ConvertByPageTo((intpage)=>newFileStream($"converted-{page}.docx",FileMode.Create)).WithOptions(newWordProcessingConvertOptions()).Convert();FluentConverter.Load("sample.pdf").GetPossibleConversions();FluentConverter.Load("sample.pdf").GetDocumentInfo();FluentConverter.Load("sample.pdf").WithOptions(newPdfLoadOptions()).GetPossibleConversions();FluentConverter.Load("sample.pdf").WithOptions(newPdfLoadOptions()).GetDocumentInfo();
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.