![]() ![]() Int pageCount = decoder. If you wanted to do it without you would have this: public void PdfToTiff(Stream pdf, Stream tiff) It works on a path because FileSystemImageSource takes advantage of code to operate on the file system with wildcards. To convert PDF to TIFF, download and install the Universal Document Converter. A virtual printer differs from a regular one in the way it handles the files instead of printing the image on paper it will save it in the preferred format. The latter example is probably what you want. How to Convert PDF to TIFF The easiest way to convert PDF to a TIFF file is to print it using a virtual printer. Public void PdfToTiff(string pathToPdf, Stream tiff)įileSystemImageSource images = new FileSystemImageSource(pathToPdf, true) PdfImageSource images = new PdfImageSource(pdf) TiffEncoder encoder = new TiffEncoder(tiff) ![]() Public void PdfToTiff(Stream pdf, Stream tiff) You can do this with Atalasoft DotImage (commerial product - obligatory disclaimer: I work for Atalasoft and write a lot of the PDF code): // this code extracts images from the PDF - there may be multiple images per page ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |