Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: go/pdf/pdf.go

Issue 1216483002: golden/pdfxform a pdf rasterization server (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: go/pdf/pdf.go
diff --git a/go/pdf/pdf.go b/go/pdf/pdf.go
new file mode 100644
index 0000000000000000000000000000000000000000..231de5305ab5c3e2ed831d8c02932f0b2d54d6ae
--- /dev/null
+++ b/go/pdf/pdf.go
@@ -0,0 +1,19 @@
+/* PDF Rasterizer Package
+
+This package provides the Pdfium and Poppler rasterizers. Pdfium
+requires the `pdfium_test` executable be located in the PATH. Poppler
+requires `pdftoppm` (provided by poppler-utils) and `pnmtopng`
+(provided by netpbm). */
+
+package pdf
+
+type Rasterizer interface {
+ // Rasterize will take the path to a PDF file and rasterize the
+ // file. If the file has multiple pages, discard all but the first
+ // page. The output file will be in PNG format.
+ Rasterize(pdfInputPath, pngOutputPath string) error
+ // Return the name of this rasterizer.
+ String() string
+ // Return false if the rasterizer is found.
+ Enabled() bool
+}
« no previous file with comments | « go/pdf/functions.go ('k') | go/pdf/pdf_test.go » ('j') | golden/go/pdfxform/pdfxform.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698