We're updating the issue view to help you get more done. 

flying saucer (PDF) throws error: Attribute page is not allowed for statement document

Description

Full error:

1 Problem with metadata for api (controllers.api) because: Unable to getComponentMetadata(controllers.api) because: Attribute page is not allowed for statement document (valid attribute names are [backgroundvisible,encryption,filename,fontembed,fontdirectory,format,margin,marginbottom,marginleft,marginright,margintop,mimetype,name,orientation,overwrite,ownerpassword,pageheight,pagewidth,pagetype,permissions,scale,src,srcfile,unit,userpassword,proxyhost,proxyport,proxyuser,proxypassword,bookmark,htmlbookmark,localurl,authuser,authpassword,useragent,saveasname]), near line 1262 in /Users/myleslee/Sites/abc/controllers/api.cfc

Reproduction Code:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 arguments.filename="abc.pdf"; arguments.content="<h1>hello</h1>"; document overwrite="true" format="pdf" page="{type: 'A4'}" saveasname="#arguments.filename#" filename="#arguments.filename#" orientation="portrait" fontEmbed="true" localUrl="true" margin="0" fontdirectory="/modules/pdf/fonts/" unit="cm" { WriteOutput( // as of Lucee 5.2, cfdocument cannot handle svg file Replace(arguments.content, "logo.svg", "logo.png") ) }

Environment

Also on Lucee 5.3.5.0.SNAPSHOT

Java 1.8.0_40-b27
Mac OS X 10.13.6 64bit

Status

Assignee

Pothys - MitrahSoft

Reporter

Da Li

Labels

Sprint

None

Fix versions

Affects versions

5.3.2.0

Priority

Blocker