Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug causing a warning message in Acrobat #1145

Merged
merged 2 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This can also be enabled programmatically with `warnings.simplefilter('default',

## [2.7.9] - Not released yet
### Added
* fix bug causing a warning message in Acrobat
* support for overriding paragraph direction on bidirectional text
* new optional `li_prefix_color` parameter for [`FPDF.write_html()`](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.write_html)
* support for `start` & `type` attributes of `<ol>` tags, and `type` attribute of `<ul>` tags, when using [`FPDF.write_html()`](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.write_html)
Expand Down
4 changes: 1 addition & 3 deletions fpdf/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1445,9 +1445,7 @@ def serialize(self):
result[key] = value

# There is additional logic in GraphicsContext to ensure that this will work
if (self.stroke_dash_pattern is not self.INHERIT) and (
self.stroke_dash_pattern is not None
):
if self.stroke_dash_pattern and self.stroke_dash_pattern is not self.INHERIT:
result[PDFStyleKeys.STROKE_DASH_PATTERN.value] = [
self.stroke_dash_pattern,
self.stroke_dash_phase,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified test/drawing/generated_pdf/test_stroke_dash_phase.pdf
Binary file not shown.
Binary file modified test/drawing/generated_pdf/test_stroke_miter_limit.pdf
Binary file not shown.
Binary file modified test/image/image_x_align_center.pdf
Binary file not shown.
Binary file modified test/image/image_x_align_right.pdf
Binary file not shown.
Binary file modified test/image/svg_image.pdf
Binary file not shown.
Binary file modified test/image/svg_image_alt_text_title.pdf
Binary file not shown.
Binary file modified test/image/svg_image_alt_text_two_pages.pdf
Binary file not shown.
Binary file modified test/image/svg_image_fit_rect.pdf
Binary file not shown.
Binary file modified test/image/svg_image_fixed_dimensions.pdf
Binary file not shown.
Binary file modified test/image/svg_image_from_bytesio.pdf
Binary file not shown.
Binary file modified test/image/svg_image_no_dimensions.pdf
Binary file not shown.
Binary file modified test/image/svg_image_no_viewbox.pdf
Binary file not shown.
Binary file modified test/image/svg_image_style_inherited_from_fpdf.pdf
Binary file not shown.
Binary file modified test/image/svg_image_with_custom_size.pdf
Binary file not shown.
Binary file modified test/image/svg_image_with_custom_size_and_no_viewbox.pdf
Binary file not shown.
Binary file modified test/image/svg_image_with_custom_width.pdf
Binary file not shown.
Binary file modified test/image/svg_image_with_custom_width_and_no_dimensions.pdf
Binary file not shown.
Binary file modified test/image/svg_image_with_custom_width_and_no_viewbox.pdf
Binary file not shown.
Binary file modified test/image/svg_image_with_no_dimensions_and_custom_width.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/Ghostscript_colorcircle.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/Ghostscript_escher.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/SVG_logo.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/SVG_logo_notransparency.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/arcs01-offset.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/arcs01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/arcs02.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/circle01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/clip_path.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/cubic01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/cubic02.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/ellipse01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/embedded-raster-images.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/issue-1076.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/issue_358.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/issue_358b.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/line01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/polygon01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/polyline01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/quad01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/rect01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/rect02.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/rgb-color-issue-480.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/search.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/shapes_def_test.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/simple_rect.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/svg_rendering_image_over_page_break.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/matrix.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/multi.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/rotate.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/scale.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/skew.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/translate.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/triangle01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/use-image-def.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/use-xlink-href.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/viewbox.pdf
Binary file not shown.
Binary file modified test/text_region/tcols_3cols.pdf
Binary file not shown.
Binary file modified test/text_region/tcols_images.pdf
Binary file not shown.
Loading