PDF Functions
PDF functions are functions that were released as ‘experimental functions’ and allow the creation of PDF file content from screen elements.
Until now, PDFs have often been created via PDFWriter using the Print function, but the PDF function creates PDF content directly, so that multi-page PDFs can be created.
Settings that can be specified with PDF functions.
PDF functions allow the following settings to be specified when creating a PDF.
- Screen or control name (required): Screen or control to be printed.
- Size: PDF size
- DPI: DPI of the PDF (default is 96)
- Margin: space outside the PDF (default 0.5inch)
- Orientation: Portrait or Landscape.
- ExpandContainers: specify whether to include controls in containers or canvases (to create multi-page PDFs) with a bool value.
So I’ll try to use it as soon as possible.
Advance preparation
Displaying created PDF content in PDFViewer
*Here is how to use the PDF viewer.
Set PDF function arguments.
This is useful!
Save the PDF you have created.
Then save the created PDF to a file.
*Specify the file name in *name and the created PDF content in contentBytes (this time, specify the variable since it is in the variable glbPDF).
SharePoint Online document library/OneDrive
- File name: The name of the file you put into triggerBody from the ‘Expression’ tab OR The name of the file you want to save.
- File content: values that can be specified in the ‘Dynamic content’ tab.
*TriggerBody expression to be included in the file name.
triggerBody()['file']['name']
SharePoint Online Lists Attachments
Attachment to email in Outlook
When executed, it can be sent as an email attachment.
limitation
This is a useful PDF function, but as it is an experimental function, it has some limitations.
Only the controls on the current screen can be converted to PDF
The ability to convert to PDF is restricted to the screen on which the PDF function is executed and the controls within that screen.
Nested galleries are not covered.
In addition, nested galleries cannot be printed.
コメント