Skip to content

Commit 6f6d2bf

Browse files
committed
uploading v1.13.14
1 parent 469e365 commit 6f6d2bf

File tree

14 files changed

+1430
-615
lines changed

14 files changed

+1430
-615
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PyMuPDF 1.13.13 [![Build Status](https://travis-ci.org/rk700/PyMuPDF.svg?branch=master)](https://travis-ci.org/rk700/PyMuPDF)
1+
# PyMuPDF 1.13.14 [![Build Status](https://travis-ci.org/rk700/PyMuPDF.svg?branch=master)](https://travis-ci.org/rk700/PyMuPDF)
22

33
![logo](https://github.com/rk700/PyMuPDF/blob/master/demo/pymupdf.jpg)
44

@@ -10,7 +10,7 @@ Release date: July 10, 2018
1010

1111
# Introduction
1212

13-
This is **version 1.13.13 of PyMuPDF (formerly python-fitz)**, a Python binding with support for [MuPDF 1.13.0](http://mupdf.com/) - "a lightweight PDF and XPS viewer".
13+
This is **version 1.13.14 of PyMuPDF (formerly python-fitz)**, a Python binding with support for [MuPDF 1.13.0](http://mupdf.com/) - "a lightweight PDF and XPS viewer".
1414

1515
MuPDF can access files in PDF, XPS, OpenXPS, CBZ, EPUB and FB2 (e-books) formats, and it is known for its top performance and high rendering quality.
1616

demo/new-annots.png

-9.19 KB
Loading

demo/new-annots.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
blue = (0, 0, 1)
3434
yellow = (1, 1, 0)
3535
colors = {"stroke": red, "fill": yellow}
36-
border = {"width": 1}
36+
border = {"width": 1, "dashes": [1, 3]}
3737
displ = fitz.Rect(0, 50, 0, 50)
3838
pos = fitz.Point(50, 100)
3939
t1 = u"têxt üsès Lätiñ charß,\nEuro: €, mu: µ, superscripts: ²³!"
@@ -75,39 +75,39 @@ def print_descr(rect, annot):
7575

7676
r = r2 + displ
7777
annot = page.addPolylineAnnot([r.bl, r.tr, r.br, r.tl])
78-
annot.setLineEnds(fitz.ANNOT_LE_Circle, fitz.ANNOT_LE_Diamond) # a no-op currently
78+
annot.setLineEnds(fitz.ANNOT_LE_Circle, fitz.ANNOT_LE_Diamond)
79+
annot.setBorder(border)
7980
annot.setColors(colors)
80-
annot.updateImage()
8181
print_descr(annot.rect, annot)
8282
print("added 'PolyLine'")
8383

8484
r+= displ
8585
annot = page.addPolygonAnnot([r.bl, r.tr, r.br, r.tl])
86+
annot.setBorder(border)
8687
annot.setColors(colors)
87-
annot.updateImage()
88+
annot.setLineEnds(fitz.ANNOT_LE_Circle, fitz.ANNOT_LE_Diamond)
8889
print_descr(annot.rect, annot)
8990
print("added 'Polygon'")
9091

9192
r+= displ
9293
annot = page.addLineAnnot(r.tr, r.bl)
93-
annot.setLineEnds(fitz.ANNOT_LE_Circle, fitz.ANNOT_LE_Diamond) # a no-op currently
94+
annot.setLineEnds(fitz.ANNOT_LE_Circle, fitz.ANNOT_LE_Diamond)
95+
annot.setBorder(border)
9496
annot.setColors(colors)
95-
annot.updateImage()
9697
print_descr(annot.rect, annot)
9798
print("added 'Line'")
9899

99100
r+= displ
100101
annot = page.addRectAnnot(r)
102+
annot.setBorder(border)
101103
annot.setColors(colors)
102-
annot.updateImage()
103104
print_descr(annot.rect, annot)
104105
print("added 'Square'")
105106

106-
107107
r+= displ
108108
annot = page.addCircleAnnot(r)
109+
annot.setBorder(border)
109110
annot.setColors(colors)
110-
annot.updateImage()
111111
print_descr(annot.rect, annot)
112112
print("added 'Circle'")
113113

@@ -116,5 +116,4 @@ def print_descr(rect, annot):
116116
print_descr(annot.rect, annot)
117117
print("added 'FileAttachment'")
118118

119-
doc.save("new-annots.pdf", clean=True)
120-
doc.close()
119+
doc.save("new-annots.pdf", garbage=4, deflate=True, clean=True)

doc/PyMuPDF.pdf

4.82 KB
Binary file not shown.

doc/html.zip

2.05 KB
Binary file not shown.

0 commit comments

Comments
 (0)