RML (Report Markup Language) is ReportLab's own language for specifying the appearance of a printed page, which is converted into PDF by the utility rml2pdf.
These RML samples showcase techniques and features for generating various types of ouput and are distributed within our commercial package as test cases. Each should be self explanatory and stand alone.
Flowing text (heading) This is flowing text inside a frame, which is set in the page template. The template lays out the static parts of the page, such as the logo and footer image, and defines a location and size for the flowing content frame. The frame border is visible because of the attribute showBoundary="1" on the template tag. I have now started a new paragraph with a new <para> tag; note that because there was no spaceAfter attribute on the previous paragraph, there is no gap between these blocks of text. I have also assigned a new paragraph style which is no longer in italics. Here is some red text enclosed by <font> tags, which can set special styles within a paragraph. Donec metus velit, varius et facilisis non, facilisis a metus. Aliquam erat volutpat. Maecenas hendrerit mollis diam a volutpat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Ut vitae velit nec sem rhoncus porttitor ac at lectus. Suspendisse fringilla ante ut lorem dignissim sed placerat neque tincidunt. Praesent quis lectus leo, non egestas nulla. Sed posuere elementum ullamcorper. This paragraph has a new para style assigned whose font size is larger and whose spaceAfter and spaceBefore attributes are 12pts. There should be 12 points before and after this paragraph. Sed pretium sollicitudin lacinia. Maecenas eget neque sit amet urna commodo vehicula. Fusce sed felis a lorem semper luctus. Duis congue metus eget nulla gravida placerat. Praesent arcu libero, gravida vitae commodo at, pharetra et tellus. Suspendisse pulvinar nulla nec massa convallis scelerisque in sed lacus. Donec sed orci est, sed congue neque. In hac habitasse platea dictumst. Sed pretium sollicitudin lacinia. Maecenas eget neque sit amet urna commodo vehicula. Fusce sed felis a lorem semper luctus. Duis congue metus eget nulla gravida placerat. Praesent arcu libero, gravida vitae commodo at, pharetra et tellus. Suspendisse pulvinar nulla nec massa convallis scelerisque in sed lacus. Donec sed orci est, sed congue neque. In hac habitasse platea dictumst. Hyphenation of long URLS https://www.reportlab.com/documentation/relnotes/test/documentation/relnotes/test/documentation/relnotes/test/documentation/relnotes/test/documentation/relnotes/test/documentation/relnotes/test/ Hyphenation of long URLS with HTML formatting tags https://www.reportlab.com/documentation/relnotes/test/documentation/relnotes/test/documentation/relnotes/test/documentation/relnotes/test/documentation/relnotes/test/documentation/relnotes/test/ Hyphenation of long URLS with HTML tags and hyphens in words https://www.reportlab.com/documentation/relnotes/test/documentation/relnotes/test/documentation/rel-notes/test-1/documentation/rel-notes/test/documentation/relnotes/test/documentation/relnotes/test/ Hyphenation of paragraphs with "no split" tags and words with hyphens I have now started a new paragraph with a new tag; note that because there was no spaceAfter attribute on-the-previous paragraph, there is no gap between these blocks of text. I have also assigned a new paragraph style which is no longer in italics. This is an ampersand & This is an ampersand & This is a less than sign < This is a less than sign < link to www dot reportlab dot com Another link to www dot reportlab dot com