Skip to content

Commit 5034c88

Browse files
committed
Update faq.rst
1 parent 080071b commit 5034c88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/faq.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,9 @@ The following is a code snippet which extracts the drawings of a page and re-dra
13361336
lineJoin=path["lineJoin"], # how line joins should look like
13371337
lineCap=max(path["lineCap"]), # how line ends should look like
13381338
width=path["width"], # line width
1339-
)
1339+
stroke_opacity=path["opacity"], # same value for both
1340+
fill_opacity=path["opacity"], # opacity parameters
1341+
)
13401342
# all paths processed - commit the shape to its page
13411343
shape.commit()
13421344
outpdf.save("drawings-page-0.pdf")
@@ -1350,7 +1352,6 @@ Here is a comparison between input and output of an example page, created by the
13501352

13511353
.. note:: The reconstruction of graphics like shown here is not perfect. The following aspects will not be reproduced as of this version:
13521354

1353-
* Transparency / opacity: while this value is contained in the 'path' dictionary, it is yet unsupported by the :ref:`Shape` class.
13541355
* Page definitions can be complex and include instructions for not showing / hiding certain areas to keep them invisible. Things like this are ignored by :meth:`Page.getDrawings` - it will always return all paths.
13551356

13561357
.. note:: You can use the path list to make your own lists of e.g. all lines or all rectangles on the page, subselect them by criteria like color or position on the page etc.

0 commit comments

Comments
 (0)