output pdf image size with four significant digits
This commit is contained in:
parent
8f757bc3bb
commit
2cb8e55f1d
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ class pdfdoc(object):
|
|||
# Inverts all four channels
|
||||
image.content['/Decode'] = [1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0]
|
||||
|
||||
text = ("q\n%f 0 0 %f 0 0 cm\n/Im0 Do\nQ"%(pdf_x, pdf_y)).encode('utf8')
|
||||
text = ("q\n%0.4f 0 0 %0.4f 0 0 cm\n/Im0 Do\nQ"%(pdf_x, pdf_y)).encode('utf8')
|
||||
|
||||
content = obj({
|
||||
"/Length": len(text)
|
||||
|
|
Loading…
Reference in a new issue