2 from pdflib_py
import *
4 PDF_open_file(p
, "clip.pdf")
6 PDF_set_parameter(p
, "usercoordinates", "true")
7 PDF_set_value(p
, "compress", 0)
11 PDF_begin_page(p
, width
, height
)
13 PDF_setcolor(p
, "fill", "rgb", 0.0, 0.0, 0.0, 0.0)
14 x1
,y1
,x2
,y2
= 100,100,300,300
20 x1
,y1
,x2
,y2
= 200,200,400,400
28 PDF_setcolor(p
, "fill", "rgb", 0.0, 1.0, 0.0, 1.0)
29 x1
,y1
,x2
,y2
= 100,100,300,300
36 x1
,y1
,x2
,y2
= 200,200,400,400