Lasso Soft Inc. > Home

RhinoTrac

LassoSoft Ticket Tracking System

NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.

Lasso 9 Issues



Ticket #7020: [PDF_Doc]->setFont( ) fails

Reported by:
Paul Higgins
Date:
05 Aug, 2008
Priority:
minor
Component:
Lasso 9
Version:
Keywords:
Platform:
[PDF_Doc]->setFont throws a Java error.

Comments

05 Aug, 2008 by Paul Higgins
setfont(pdf_font('jfont', jfont, getfullfontname, getbold, setitalic, setcolor, getface, getstyle, setbold, lowagiefont, setsize, getencoding, istruetype,
setunderline, getcolor, getsize, jfont=, setface, setjfont, oncreate, getsupportedencodings, getunderline, textwidth, getpsfontname, getitalic))
/_init.pdf.lasso (581, 39, 7)

callint(jobject('_private_jni_', ondestroy, asstring), setFont, (Lcom/lassosoft/tags/PDFFont;)I, jobject('_private_jni_', ondestroy, asstring))
/_init.pdf.lasso (58, 4, 3)

chk(jnienv('_private_jnienv_', callobjectmethod, calllongmethod, callnonvirtualbytemethod, callnonvirtualdoublemethod, getcharfield, setobjectfield, setlo
ngfield, callstaticbytemethod, callstaticdoublemethod, getstaticcharfield, setstaticobjectfield, setstaticlongfield, getarraylength, newchararray, getbool
eanarrayelements, getfloatarrayelements, getintarrayregion, getfloatarrayregion, setintarrayregion, fromreflectedmethod, exceptionoccurred, deletelocalref
, getmethodid, callintmethod, callnonvirtualbooleanmethod, callnonvirtualfloatmethod, getbytefield, getdoublefield, setintfield, callstaticbooleanmethod,
callstaticfloatmethod, getstaticbytefield, getstaticdoublefield, setstaticintfield, getstringchars, newbytearray, newdoublearray, getlongarrayelements, ge
tshortarrayregion, getlongarrayregion, setshortarrayregion, monitorexit, thrownew, deleteglobalref, isinstanceof, callshortmethod, callnonvirtualobjectmet
hod, callnonvirtuallongmethod, getbooleanfield, getfloatfield, setshortfield, callstaticobjectmethod, callstaticlongmethod, getstaticbooleanfield, getstat
icfloatfield, setstaticshortfield, getstringlength, newbooleanarray, newfloatarray, getintarrayelements, getchararrayregion, setchararrayregion, monitoren
ter, exceptioncheck, throw, newglobalref, getobjectclass, callcharmethod, callvoidmethod, callnonvirtualintmethod, getobjectfield, getlongfield, setcharfi
eld, getstaticmethodid, callstaticintmethod, getstaticobjectfield, getstaticlongfield, setstaticcharfield, newstring, setobjectarrayelement, newlongarray,
getshortarrayelements, getbytearrayregion, setbytearrayregion, setdoublearrayregion, toreflectedfield, findclass, fatalerror, newobject, callbytemethod,
calldoublemethod, callnonvirtualshortmethod, getfieldid, getintfield, setbytefield, setdoublefield, callstaticshortmethod, getstaticfieldid, getstaticintf
ield, setstaticbytefield, setstaticdoublefield, getobjectarrayelement, newintarray, getchararrayelements, getbooleanarrayregion, setbooleanarrayregion, se
tfloatarrayregion, toreflectedmethod, getversion, exceptionclear, allocobject, callbooleanmethod, callfloatmethod, callnonvirtualcharmethod, callnonvirtua
lvoidmethod, getshortfield, setbooleanfield, setfloatfield, callstaticcharmethod, callstaticvoidmethod, getstaticshortfield, setstaticbooleanfield, setsta
ticfloatfield, newobjectarray, newshortarray, getbytearrayelements, getdoublearrayelements, getdoublearrayregion, setlongarrayregion, fromreflectedfield,
exceptiondescribe, issameobject))
/_init.pdf.lasso (0, 0, 0)

chk(jnienv('_private_jnienv_', callobjectmethod, calllongmethod, callnonvirtualbytemethod, callnonvirtualdoublemethod, getcharfield, setobjectfield, setlo
ngfield, callstaticbytemethod, callstaticdoublemethod, getstaticcharfield, setstaticobjectfield, setstaticlongfield, getarraylength, newchararray, getbool
eanarrayelements, getfloatarrayelements, getintarrayregion, getfloatarrayregion, setintarrayregion, fromreflectedmethod, exceptionoccurred, deletelocalref
, getmethodid, callintmethod, callnonvirtualbooleanmethod, callnonvirtualfloatmethod, getbytefield, getdoublefield, setintfield, callstaticbooleanmethod,
callstaticfloatmethod, getstaticbytefield, getstaticdoublefield, setstaticintfield, getstringchars, newbytearray, newdoublearray, getlongarrayelements, ge
tshortarrayregion, getlongarrayregion, setshortarrayregion, monitorexit, thrownew, deleteglobalref, isinstanceof, callshortmethod, callnonvirtualobjectmet
hod, callnonvirtuallongmethod, getbooleanfield, getfloatfield, setshortfield, callstaticobjectmethod, callstaticlongmethod, getstaticbooleanfield, getstat
icfloatfield, setstaticshortfield, getstringlength, newbooleanarray, newfloatarray, getintarrayelements, getchararrayregion, setchararrayregion, monitoren
ter, exceptioncheck, throw, newglobalref, getobjectclass, callcharmethod, callvoidmethod, callnonvirtualintmethod, getobjectfield, getlongfield, setcharfi
eld, getstaticmethodid, callstaticintmethod, getstaticobjectfield, getstaticlongfield, setstaticcharfield, newstring, setobjectarrayelement, newlongarray,
getshortarrayelements, getbytearrayregion, setbytearrayregion, setdoublearrayregion, toreflectedfield, findclass, fatalerror, newobject, callbytemethod,
calldoublemethod, callnonvirtualshortmethod, getfieldid, getintfield, setbytefield, setdoublefield, callstaticshortmethod, getstaticfieldid, getstaticintf
ield, setstaticbytefield, setstaticdoublefield, getobjectarrayelement, newintarray, getchararrayelements, getbooleanarrayregion, setbooleanarrayregion, se
tfloatarrayregion, toreflectedmethod, getversion, exceptionclear, allocobject, callbooleanmethod, callfloatmethod, callnonvirtualcharmethod, callnonvirtua
lvoidmethod, getshortfield, setbooleanfield, setfloatfield, callstaticcharmethod, callstaticvoidmethod, getstaticshortfield, setstaticbooleanfield, setsta
ticfloatfield, newobjectarray, newshortarray, getbytearrayelements, getdoublearrayelements, getdoublearrayregion, setlongarrayregion, fromreflectedfield,
exceptiondescribe, issameobject))
/_init.pdf.lasso (137, 4, 4)
05 Aug, 2008 by Paul Higgins
var( pdfObj ) = PDF_Doc( -file='PdfFontGetColor.pdf',
-format='pdf',
-size= 'a4',
-margins=Array( 18, 18, 18, 18 ),
-color='#00bbff',
-usedate=true,
-nocompress=false,
-header='Testing of the Font Tags',
-pageno=1 );
var( fObj ) = PDF_Font( -face='Helvetica', -size=12, -color='#00ff00', -encoding='Cp1252', -embed=true );
$pdfObj->setFont( $fObj );
$pdfObj->close( );
07 Jul, 2009 by Kyle Jessup
I think this happens because the doc is totally empty. If I add this right after ->setFont, it works:

$pdfObj->addText( 'Hello, world!', -font=$fObj );
Please log in to your LassoSoft account to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft