the code works on iPhone… How do I make it work on Mac desktop ?
I can’t find system.TemporaryDirectory equivalent…
if platformType==“Mac OS X” then
path=system.pathForFile( “ContractView.pdf”, system.TemporaryDirectory )
else
path = system.pathForFile( “ContractView.pdf”, system.DocumentsDirectory )
end
local file = io.open( path, “w” )
file:write( thePdf )
io.close( file )
file = nil