cpan PDF-Builder 3.028

15 hours ago
  • = work in progress

==== New features

lib/PDF/Builder/Content/Text.pm, examples/Column.pl

The 'align' attribute has been added to the <hr> tag to 'left', 'center'
(default), or 'right' align a rule which is less than the full width of
the column. This brings <hr> (and equivalent Markdown) in column() into
compliance with standard HTML behavior. You may of course add CSS to left
align <hr>s if you desire.

lib/PDF/Builder/Content/Text.pm, examples/Column.pl
HTML tag now supported, using Courier (fixed pitch font) at 85%

of font-size. This will reduce the number of warnings in the Column*
examples.

lib/PDF/Builder/Content/Text.pm, examples/Column.pl
Add checks for valid (supported) CSS property names. Clarify that the

warning message for the invalid tag <glotz> is a test and is expected and
normal, and likewise the warnings for CSS properties 'snork' and 'snuck'
are tests that are expected and normal. Ref #235.

lib/PDF/Builder/Content/Text-Column_docs.pm
Additional length units for CSS values in column(). In addition to pt and

% of current font size; em (= font size), en (= 1/2 font size), ex (= 1/2
font size), in (inches), cm, mm, and px (assume 78dpi display) are added.
Negative values are now allowed, although negative margins are NOT yet
fully supported. Future plans are for 'ex' to use the actual font
x-height, if available, and for some way to specify the screen resolution
(dpi) for px.

lib/PDF/Builder/Content/Text.pm
For Markdown (md1), if extra blank lines between list items, Text::Markdown

produces paragraphs within list items. Suppress paragraphs within lists.

lib/PDF/Builder/Content/Text-Column_docs.pm
Reduce heading (h1..h6) top margins, and bottom margins by somewhat more,

to give a more balanced appearance and consume less vertical space.
 h1 (200% font size) top/bottom margins 75%/75%   -> 40%/30%
 h2 (150% font size) top/bottom margins 100%/100% -> 54%/40%
 h3 (115% font size) top/bottom margins 130%/130% -> 68%/51%
 h4 (100% font size) top/bottom margins 150%/150% -> 82%/61%
 h5 (85% font size)  top/bottom margins 175%/175% -> 95%/71%
 h6 (75% font size)  top/bottom margins 200%/200% -> 106%/80%
These are the default values. You are free to change them in CSS if you
find a different balance more pleasing to you.

lib/PDF/Builder.pm, lib/PDF/Builder/Docs.pm, Version, Makefile.PL
Prepare for 3.028 release. Minimum Perl version remains at 5.28.

Don't miss a new PDF-Builder release

NewReleases is sending notifications on new releases.