just added the missing add_library('pdf')
MODIFY
examples.py/Library/PDF Export/OneFrame.py
examples.py/Library/PDF Export/OneFrame.py
-"""
- * One Frame.
- *
- * Saves one PDF with the contents of the display window.
- * Because this example uses beginRecord, the image is shown
- * on the display window and is saved to the file.
+""" One Frame.
+
+ Saves one PDF with the contents of the display window.
+ Because this example uses beginRecord, the image is shown
+ on the display window and is saved to the file.
"""
-#from processing.pdf import *
+add_library('pdf') # from processing.pdf import *
size(600, 600)
@@ -18,5 +17,3 @@ strokeWeight(20.0)
line(200, 0, 400, height)
endRecord()
-
-

just added the missing add_library('pdf')