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

Unified Diff: go/pdf/functions.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
« no previous file with comments | « no previous file | go/pdf/pdf.go » ('j') | golden/go/pdfxform/pdfxform.go » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/pdf/functions.go
diff --git a/go/pdf/functions.go b/go/pdf/functions.go
new file mode 100644
index 0000000000000000000000000000000000000000..d8ac3a8bc91b847a2de46295164421804c514c11
--- /dev/null
+++ b/go/pdf/functions.go
@@ -0,0 +1,12 @@
+package pdf
+
+import "os/exec"
+
+func commandFound(e string) bool {
+ switch exec.Command(e).Run().(type) {
+ case *exec.Error:
+ return false
+ default:
+ return true
+ }
+}
« no previous file with comments | « no previous file | go/pdf/pdf.go » ('j') | golden/go/pdfxform/pdfxform.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698