I need to save one page of a mulit-page tiff file as
- a tiff file
- a pdf file
How can this be done?
I’m using GroupDocs.Viewer, but if necessary I can use another lib
I need to save one page of a mulit-page tiff file as
We support saving one page of TIFF file as PDF. The following code snippet shows how to save first frame to PDF:
using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;
using (Viewer viewer = new Viewer("sample.tiff"))
{
PdfViewOptions viewOptions = new PdfViewOptions("output.pdf");
viewer.View(viewOptions, 1);
}
Converting TIFF to TIFF is supported by GroupDocs.Conversion, see Convert images documentation topic.
Thank you, this works perfectly and is so neat!