%s (ErrorCode: 0xx).\n"), szOutputPath, Pdf2ImgGetErrorMessage(pConverter), Pdf2ImgGetErrorCode(pConverter)) įor (int iPage = 1 iPage <= Pdf2ImgGetPageCount(pConverter) iPage ) _tprintf(_T("Input file %s cannot be opened. If (!Pdf2ImgOpen(pConverter, szInputPath, _T(""))) "%s (ErrorCode: 0xx).", imagePath, converter.getErrorMessage(), Throw new IOException(String.format("Output image %s cannot be closed. "%s (ErrorCode: 0xx).", pageNo, inputPath, imagePath, converter.getErrorMessage(), Throw new IOException(String.format("Page %d of PDF %d could not be rendered to PNG %s. "%s (ErrorCode: 0xx).",imagePath, converter.getErrorMessage(), Throw new IOException(String.format("Output image %s cannot be created. String imagePath = outputPath.substring(0, outputPath.lastIndexOf(".")) pageNo ".png" Construct path of output image in case of a multi-page input PDF Loop over all pages of input file and create each time a new PNGįor (int pageNo = 1 pageNo <= converter.getPageCount() pageNo ) InputPath, converter.getErrorMessage(), converter.getErrorCode())) Throw new IOException(String.format("Input file %s cannot be opened. Throw new Exception(String.Format("Input file ).", imagePath, converter.ErrorMessage, converter.ErrorCode)) Using (Converter converter = new Converter())
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |