From 544558bbfab23c6131b62f17cef4dbf494f4c953 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Mon, 30 Jun 2014 07:10:14 -0400 Subject: Reference tutorial for writing basic HTML. --- htmlbasic.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'htmlbasic.go') diff --git a/htmlbasic.go b/htmlbasic.go index 93e4924..2340c23 100644 --- a/htmlbasic.go +++ b/htmlbasic.go @@ -104,6 +104,8 @@ type HTMLBasicType struct { // HTMLBasicNew returns an instance that facilitates writing basic HTML in the // specified PDF file. +// +// This function is demonstrated in tutorial 6. func (f *Fpdf) HTMLBasicNew() (html HTMLBasicType) { html.pdf = f html.Link.ClrR, html.Link.ClrG, html.Link.ClrB = 0, 0, 128 @@ -112,11 +114,12 @@ func (f *Fpdf) HTMLBasicNew() (html HTMLBasicType) { } // Write prints text from the current position using the currently selected -// font. The text can be encoded with a basic subset of HTML that includes -// hyperlinks and tags for italic (I), bold (B) and underscore (U) attributes. -// When the right margin is reached a line break occurs and text continues from -// the left margin. Upon method exit, the current position is left at the end -// of the text. +// font. See HTMLBasicNew() to create a receiver that is associated with the +// PDF document instance. The text can be encoded with a basic subset of HTML +// that includes hyperlinks and tags for italic (I), bold (B) and underscore +// (U) attributes. When the right margin is reached a line break occurs and +// text continues from the left margin. Upon method exit, the current position +// is left at the end of the text. // // lineHt indicates the line height in the unit of measure specified in New(). func (html *HTMLBasicType) Write(lineHt float64, htmlStr string) { -- cgit v1.2.1-24-ge1ad