rreHardcopyPrintPDF

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
rreHardcopyPrintPDF <pdfFile>, <jobName>, [<fromRect>]
Associationsrrehardcopy
Summary

This handler presents the standard printing interface controller, offering to print the given PDF file with the specified job name.

Introduced8.0
OSios
Platformsmobile
Example
command PrintDocument pFilePath
  if rreHardcopyIsAvailable() then
	  rreHardcopyPrintPDF pFilePath, "Print Document", the rect of the target
		switch the result
		  case "printing cancelled"
			case ""
			  -- do nothing
				break
			default
			  answer "There was a problem printing the document:" & return & the result
		end switch
	else
	  answer "Printing is not available on this device"
	end if
end PrintDocument

Values
NameTypeDescription
return

one of:

  • empty - if there were no issues printing
  • "printing not available"
  • "file does not exist"
  • "cannot print that file"
  • "printing cancelled"
  • "printing failed"
Description

This handler presents the standard printing interface controller, offering to print the given PDF file with the specified job name.

Tagsexternals