Create ESP instead of ps
as it supports BoundingBox and allows conversion to the right page size Well, at least for PDF for now.
This commit is contained in:
parent
08605d4598
commit
b605693925
|
@ -624,10 +624,11 @@ class PSSurface(Surface):
|
||||||
|
|
||||||
f = open(self._fname, "w", encoding="latin1", errors="replace")
|
f = open(self._fname, "w", encoding="latin1", errors="replace")
|
||||||
|
|
||||||
f.write("%!PS-Adobe-2.0\n")
|
f.write(f"""%!PS-Adobe-2.0 EPSF-2.0
|
||||||
f.write(f"%%BoundingBox: 0 0 {w:.0f} {h:.0f}\n")
|
%%BoundingBox: 0 0 {w:.0f} {h:.0f}
|
||||||
f.write(self._metadata())
|
{self._metadata()}
|
||||||
f.write("""
|
%%EndComments
|
||||||
|
|
||||||
1 setlinecap
|
1 setlinecap
|
||||||
1 setlinejoin
|
1 setlinejoin
|
||||||
0.0 0.0 0.0 setrgbcolor
|
0.0 0.0 0.0 setrgbcolor
|
||||||
|
|
Loading…
Reference in New Issue