Reconcile Document PDF Viewer

Overview

For cases requiring bounding boxes in a PDF and auto-scrolling from interface actions.

Key Features & Functionality

Example using “boundingBoxesDocumentUrl”:

reconcileDocumentViewer(
documentUrl: document(cons!MY_DOCUMENT, "url"),
boundingBoxesDocumentUrl: document(cons!MY_BOUNDING_BOXES_JSON, "url")
)

Example usage using “boundingBoxes”:

reconcileDocumentViewer(
documentUrl: document(cons!MY_DOCUMENT, "url"),
boundingBoxes: {
a!map(
id: "1",
text: "hello",
pageNumber: 1,
geometry: a!map(
top: 0.05,
left: 0.05,
width: 0.05,
height: 0.05
),
defaultHidden: false, /* optional, defaults true */
type: "type1", /* optional, used along with "selectableTypes", this bounding box will be selectable if "selectableTypes" is empty or if its value is contained within "selectableTypes" */
)
}
)

Usage considerations:

  • Provide the component with bounding boxes using either ‘boundingBoxesDocumentUrl’ or ‘boundingBoxes’. For better performance and UI responsiveness, use ‘boundingBoxesDocumentUrl’ when possible
  • Detailed information about all the parameters is available in Appian Designer when using the component and also in the image below
  • Max PDF size: 25Mb
  • Max pages: 500
  • Max bounding boxes when using ‘boundingBoxesDocumentUrl’: 200,000
  • Max bounding boxes when using ‘boundingBoxes’: 10,000
  • Chrome (incognito): Enable “Settings > Privacy and security > Third-party cookies > Allow third-party cookies”
  • Firefox: Disable "Enhanced Tracking Protection"
  • Safari: When rendering the component after a SAIL interaction, increment “interactionIdValue” in that interaction
Anonymous
Parents
  • How do you get geometry co-ordinates as shown below? Gen AI Document Extraction AI Skill doesn't provide accurate co-ordinates to draw the bounding box. Does it require Advanced IDP Tool AI Skill? 

    geometry: a!map(
    top: 0.05,
    left: 0.05,
    width: 0.05,
    height: 0.05
    )

  • Hi Amit, yes, the easiest way to get these bounding boxes is from Advanced IDP Tools, though you can also provide them manually if you integrate with an external IDP service. The AI Document Center application handles this process automatically for you (still requires Advanced IDP) so I highly recommend you leverage this application for any IDP use cases!

Comment
  • Hi Amit, yes, the easiest way to get these bounding boxes is from Advanced IDP Tools, though you can also provide them manually if you integrate with an external IDP service. The AI Document Center application handles this process automatically for you (still requires Advanced IDP) so I highly recommend you leverage this application for any IDP use cases!

Children
No Data