Looking for a reliable C# solution to transform ODT document pages into JPG images for your .NET project? Wordize for .NET provides a robust and user-friendly document rendering API tailored specifically for C# developers. This versatile tool integrates effortlessly into your C# codebase, enabling automated conversion of ODT documents into high-quality JPG images.
Wordize for .NET can handle even the most complex ODT document layouts, ensuring all pages retain their professional appearance when converted to JPG images.
Key features of ODT to JPG conversion in C#:Ready to enhance your document processing workflow with cutting-edge ODT page rendering technology? Begin transforming ODT documents into high-quality JPG using Wordize for .NET today!
using Wordize.Conversion;
using Wordize.Saving;
var imageStreams = Converter.ConvertToImages("Input.odt", new ImageSaveOptions(SaveFormat.Jpg));
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}.jpg");
stream.CopyTo(file);
}
using Wordize.Conversion;
Converter.Convert("Input.odt", "Output.jpg");
using Wordize.Conversion;
using Wordize.Saving;
var imageStreams = Converter.ConvertToImages("Input.odt", new ImageSaveOptions(SaveFormat.Jpg));
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}.jpg");
stream.CopyTo(file);
}
using Wordize.Conversion;
using Wordize.Saving;
ImageSaveOptions saveOptions = new ImageSaveOptions(saveFormat);
saveOptions.PageLayout = MultiPageLayout.Vertical(10);
Converter.Create()
.From("Input.odt")
.To("Output.jpg", saveOptions)
.Execute();