From afa7f00def4cb39ab38e743481ca23e55b8812da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eo=CC=81in=20Martin?= Date: Tue, 19 Jun 2012 14:28:16 +0100 Subject: [PATCH] Allowed for users to enter as many paragraphs of text underneath the Title and Message By setting sPdfExtras users can achieve paragraphs above the table by separating paragraphs with '\r' --- media/as3/ZeroClipboardPdf.as | 11 ++++++++++- media/js/TableTools.js | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/media/as3/ZeroClipboardPdf.as b/media/as3/ZeroClipboardPdf.as index 9a86889..ba38c73 100755 --- a/media/as3/ZeroClipboardPdf.as +++ b/media/as3/ZeroClipboardPdf.as @@ -178,13 +178,14 @@ package { { var pdf:PDF, - i:int, iLen:int, + i:int, iLen:int, j:int, jLen:int, splitText:Array = clipText.split("--/TableToolsOpts--\n"), opts:Array = splitText[0].split("\n"), dataIn:Array = splitText[1].split("\n"), aColRatio:Array = getProp( 'colWidth', opts ).split('\t'), title:String = getProp( 'title', opts ), message:String = getProp( 'message', opts ), + extras:Array = getProp( 'extras', opts ).split('\r'), orientation:String = getProp( 'orientation', opts ), size:String = getProp( 'size', opts ), iPageWidth:int = 0, @@ -213,6 +214,14 @@ package { pdf.writeText(11, message+"\n"); } + for ( j=0, jLen=extras.length ; j