PDFGeneratorProtocol
public protocol PDFGeneratorProtocol : AnyObject
Protocol including all public methods and accessors available for generating documents
-
Instance of
Progressused to track and control the multi-document generationDeclaration
Swift
var progress: Progress { get } -
Flag to enable or disable the debug overlay
Declaration
Swift
var debug: Bool { get set } -
generateURL(filename:Default implementationinfo: ) Creates a file in a guaranteed temporary folder with the given filename, generates the PDF context data and writes the result into the file.
Keep in mind, the output file is in a temporary folder of the OS and should be persisted by your own logic.
Throws
Exception, if something went wrong
Default Implementation
Creates a file in a guaranteed temporary folder with the given filename, generates the PDF context data and writes the result into the file.
Keep in mind, the output file is in a temporary folder of the OS and should be persisted by your own logic.
Throws
Exception, if something went wrong
Declaration
Swift
func generateURL(filename: String, info: PDFInfo?) throws -> URLParameters
filenameName of output file,
.pdfwill be appended if not giveninfoReturn Value
Temporary URL to the output file
-
Creates a file in a guaranteed temporary folder with the given filename, generates the PDF context data and writes the result into the file.
Keep in mind, the output file is in a temporary folder of the OS and should be persisted by your own logic.
Throws
Exception, if something went wrong
Declaration
Swift
func generateURL(filename: String) throws -> URLParameters
filenameName of output file,
.pdfwill be appended if not givenReturn Value
Temporary URL to the output file
-
Creates a file at the given file URL, generates the PDF context data and writes the result idata nto the file.
Throws
Exception, if something went wrong
Declaration
Swift
func generate(to url: URL, info: PDFInfo?) throwsParameters
targetURL of output file,
infoInstance of
PDFInfowith meta file information -
Creates a file at the given file URL, generates the PDF context data and writes the result idata nto the file.
Throws
Exception, if something went wrong
Declaration
Swift
func generate(to url: URL) throwsParameters
targetURL of output file,
-
Generates and returns the PDF context data.
Throws
Exception, if something went wrong
Declaration
Swift
func generateData() throws -> DataReturn Value
PDF data
View on GitHub
Install in Dash