Releases: jorisschellekens/borb
Releases · jorisschellekens/borb
v2.1.25
v2.1.24
📣 borb release notes
This release features GoogleTrueTypeFont
which enables users to access the Google Font API,
to directly use a TrueTypeFont
in borb
by specifying its name.
Tests have been added for this feature:
test_add_paragraphs_using_jacquard_12
test_add_paragraphs_using_pacifico
test_add_paragraphs_using_shadows_into_light
Some tests have been added to guard code quality:
TestCodeFilesContainSortedMethods
TestCodeFilesContainVisibilityComments
TestCodeFilesDoNotContainNumbersInMethods
TestCodeFilesNeverUseKeyring
v2.1.23
📣 borb release notes
This release features A4PortraitResumeTemplate
which offers a convenient way of making a resume.
Some tests have been added to guard code quality:
TestCodeFilesAreSmall
TestCodeFilesContainVisibilityCommentBlocks
TestCodeFilesStartWithPythonBash
TestCodeFilesUseFullyQualifiedBorbImports
TestCodeFilesUseKnownExternalImports
TestCodeFilesUseSingleLineImports
v2.1.22
📣 borb release notes
This release is more of an aesthetic release.
- The imports have been reviewed,
- a lot of code comments have been reviewed (adding parameters where needed)
A new feature (related to redaction) was added.
FaceDetectionEventListener
runs through aDocument
and triggers_face_occurred
whenever a face is detected (in an image)FaceEraserEventListener
(based onFaceDetectionEventListener
) adds the typical (pixelated) blur to any detected face
v2.1.21
📣 borb release notes
- Added
A4PortraitInvoiceTemplate
- Added tests for
A4PortraitInvoiceTemplate
- Bugfix in
HeterogeneousParagraph
- Refactor
UsageStatistics
v2.1.20
📣 borb release notes
- Added support for (some) password-protected PDF documents
- Added test to check whether all imports are fully qualified
- Added test to check whether all imports are in the requirements
- Added test to check whether all imports are single line
- Added
CodeBlockWithSyntaxHighlighting
LayoutElement
- Ran
black
- Ran
optimize imports
- Removed dependency on
lxml
, which is only needed forHTMLToPDF
v2.1.19
📣 borb release notes
- Added pretty much all the
LayoutElement
implementations to the easy imports. - Added a
LayoutElement
calledMap
with implementationsMapOfEurope
,MapOfTheUnitedStates
andMapOfTheWorld
. TheseLayoutElement
instances draw a map of their respective territories, and allow you to mark one or multiple components with a differentfill_color
,stroke_color
andline_width
. - Fixed tests related to unsplash API.
- Added tests for
A4PortraitTemplate
. - Added tests for
A42ColumnPortraitTemplate
. - Added tests for
SlideTemplate
. - Added
TestCreateFullSlideTemplate
. Check out thisTestCase
if you want a concrete example of how to useSlideTemplate
to produce a beautiful slideshow in PDF.
v2.1.18
📣 borb release notes
- Added some utility methods in
LayoutElement
get_golden_ratio_landscape_box
get_golden_ratio_portrait_box
get_largest_landscape_box
get_smallest_landscape_box
- Removed
_calculate_min_and_max_layout_box
fromTableCell
- Added tests for
get_golden_ratio_landscape_box
- Added tests for
get_golden_ratio_portrait_box
- Added utility class
A4PortraitTemplate
- This class represents an
A4_PORTRAIT
Document
- It contains methods that allow you to directly add content to it
- All the content-adding methods have sensible defaults (
font
,font_size
,font_color
, etc) - This class has a utility method to immediately
save
theDocument
- This class represents an
- Added tests for
A4PortraitTemplate
- Fixed small bug in
add_outline
inDocument
v2.1.17
📣 borb release notes
- fixed bug in
SingleColumnLayoutWithOverflow
- replaced
list += []
bylist.append()
for performance reasons
v2.1.16
📣 borb release notes
- add
Watermark
LayoutElement
, representing a piece of text laid out over the entirePage
. Users can specify the text, font_size, font_color, rotation, and transparency - add
Watermark
to easy imports - add tests for
Watermark
- re-implement
MultiColumnLayout
, with better handling of headers and footers - update
requirements.txt
where possible - reworked a couple of tests, ensuring they can run without dependencies as well
- added a fair use warning to ensure people know the difference between using
borb
in an open-source vs. commercial setting. This warning is only triggered when producing a high volume of PDF documents.