Using SharinPix to PDF Component in Salesforce Community

circle-exclamation

The SharinPix To PDF component allows users to generate a PDF using preselected images from a SharinPix Album.

This is a great way for you to generate reports and send them as attachments in email. In addition, the PDF generated will be saved on the record as Content Document.

This article demonstrates how to use this component in Salesforce Communities.

Getting Started

circle-exclamation

To use the SharinPix To PDF component, you simply need to drag and drop the component from the Components section onto your community page layout.

Lightning Component Parameters

triangle-exclamation
  • Generate PDF Button Label: Used to set the custom button's label. The default value is Generate PDF.

  • Image URL field: The API name of the Image URL field to be used for the type of image. Image sizes will depend on the field chosen. The default value is sharinpix__ImageURLFull__c

    • Some values already included in the SharinPix Package are:

      • sharinpix__ImageURLFull__c

      • sharinpix__ImageURLOriginal__c

      • sharinpix__ImageURLThumbnail__c

      • sharinpix__ImageURLMini__c

  • Image Caption Text: The API name of the field storing the text to be displayed alongside the image. The default value is None.

  • Number Of Columns: The maximum number of images to be displayed per row.

  • First Page Content: The API name of the rich-text field to be used as first page content. The default value is None.

  • Last Page Content: The API name of the rich-text field to be used as last page content. The default value is None.

  • Images' Pre-description: The API name of the rich-text field to be used for the pre-description of images. The default value is None.

  • Images' Post-description: The API name of the rich-text field to be used for the post-description of images. The default value is None.

  • Page Orientation: Orientation of the generated PDF. The default value is portrait.

  • Single Image Per Page: Used to display only one image per page.

  • Footer format: An HTML format to display in the footer section of each page. Merge fields such as {pagenumber} and {pagecount} can be used to include page number and total pages of the PDF.

Demo

To generated the PDF, select some images from the SharinPix Album and click on Generate PDF button as shown below:

The PDF generated can be found under the Notes & Attachments section in the Related tab:

Below is an instance of the PDF generated:

circle-check

Below are some references for optimal image transformations for you to have a visually appealing PDF:

Layout
Columns
Transformation type
Value

Portrait 4 images per page

2

Pad to size

1000x1500

Portrait 6 images per page

2

Pad to size

1000x1000

Portrait 8 images per page

2

Pad to size

1000x650

Portrait 10 images per page

2

Pad to size

1000x580

Landscape 3 images per page

1

Pad to size

1000x1500

circle-info

The SharinPix to PDF component is also available in Salesforce Lightning. For more information about how to use this component in Lightning, refer to the following article:

SharinPix To PDF

Last updated

Was this helpful?