borb is a library for reading, creating and manipulating PDF files in python.
This release is more of an aesthetic release.
A new feature (related to redaction) was added.
FaceDetectionEventListener
runs through a Document
and triggers _face_occurred
whenever a face is detected (in an image)FaceEraserEventListener
(based on FaceDetectionEventListener
) adds the typical (pixelated) blur to any detected faceA4PortraitInvoiceTemplate
A4PortraitInvoiceTemplate
HeterogeneousParagraph
UsageStatistics
CodeBlockWithSyntaxHighlighting
LayoutElement
black
optimize imports
lxml
, which is only needed for HTMLToPDF
LayoutElement
implementations to the easy imports.LayoutElement
called Map
with implementations MapOfEurope
, MapOfTheUnitedStates
and MapOfTheWorld
. These LayoutElement
instances draw a map of their respective territories, and allow you to mark one or multiple components with a different fill_color
, stroke_color
and line_width
.A4PortraitTemplate
.A42ColumnPortraitTemplate
.SlideTemplate
.TestCreateFullSlideTemplate
. Check out this TestCase
if you want a concrete example of how to use SlideTemplate
to produce a beautiful slideshow in PDF.LayoutElement
get_golden_ratio_landscape_box
get_golden_ratio_portrait_box
get_largest_landscape_box
get_smallest_landscape_box
_calculate_min_and_max_layout_box
from TableCell
get_golden_ratio_landscape_box
get_golden_ratio_portrait_box
A4PortraitTemplate
A4_PORTRAIT
Document
font
, font_size
, font_color
, etc)save
the Document
A4PortraitTemplate
add_outline
in Document
SingleColumnLayoutWithOverflow
list += []
by list.append()
for performance reasonsWatermark
LayoutElement
, representing a piece of text laid out over the entire Page
. Users can specify the text, font_size, font_color, rotation, and transparencyWatermark
to easy importsWatermark
MultiColumnLayout
, with better handling of headers and footersrequirements.txt
where possibleborb
in an open-source vs. commercial setting. This warning is only triggered when producing a high volume of PDF documents.This release features the arrival of RGBA
Image
objects in borb
.
There is also a significant speedup in text layout due to a clever width-estimation.
This release refactors the testing in borb
.
Equation
(in borb.pdf.canvas.layout.equation
) can be found in tests.pdf.canvas.layout.equation
TestCase
TestCase
offers some utility methods to standardize output filesTestCase
offers the methods to visually compare an outputTestCase
offers the methods to check a PDF using a validatorThis release is a feature release:
Added Equation
to the LayoutElement
hierarchy
Equation
allows you to easily add mathematical expressions to a PDFfont
, font_size
, font_color
and many other attributesEquation
behaves just like any other LayoutElement
Fix minor issue in SimpleFindReplace
Fix minor issue in Image
(present for Image
objects with mode LA
)
Fix vertical_alignment
for Table
implementations
vertical_alignment
is now relative to the Table
rather than to the Page
LayoutElement
in the row