| OLD | NEW |
| (Empty) | |
| 1 /* PDF Rasterizer Package |
| 2 |
| 3 This package provides the Pdfium and Poppler rasterizers. Pdfium |
| 4 requires the `pdfium_test` executable be located in the PATH. Poppler |
| 5 requires `pdftoppm` (provided by poppler-utils) and `pnmtopng` |
| 6 (provided by netpbm). */ |
| 7 |
| 8 package pdf |
| 9 |
| 10 type Rasterizer interface { |
| 11 // Rasterize will take the path to a PDF file and rasterize the |
| 12 // file. If the file has multiple pages, discard all but the first |
| 13 // page. The output file will be in PNG format. |
| 14 Rasterize(pdfInputPath, pngOutputPath string) error |
| 15 // Return the name of this rasterizer. |
| 16 String() string |
| 17 // Return false if the rasterizer is found. |
| 18 Enabled() bool |
| 19 } |
| OLD | NEW |