Looking for a reliable solution to convert Word to PDF in your C# projects? Wordize for .NET offers a robust and simple document conversion API tailored for C# developers. This tool simplifies the conversion process, ensuring high-quality results with minimal effort.
Key features of Word to PDF conversion in C#:Ready to transform your Word workflow with industry-leading programmatic processing technology? Start converting Word to PDF using Wordize for .NET today!
using Wordize.Conversion;
Converter.Convert("Input.docx", "Output.pdf");
using Wordize.Conversion;
Converter.Convert("Input.docx", "Output.pdf");
using Wordize.Conversion;
using Wordize.Saving;
var imageStreams = Converter.ConvertToImages("Input.docx", new ImageSaveOptions(SaveFormat.Pdf));
foreach (var (stream, page) in imageStreams.Select((s, i) => (s, i)))
{
using var _ = stream;
stream.Position = 0;
using var file = File.Create($"Output_{page + 1}.pdf");
stream.CopyTo(file);
}
using Wordize.Conversion;
using Wordize.Saving;
ImageSaveOptions saveOptions = new ImageSaveOptions(saveFormat);
saveOptions.PageLayout = MultiPageLayout.Vertical(10);
Converter.Create()
.From("Input.docx")
.To("Output.pdf", saveOptions)
.Execute();