Select to view content in your preferred language

How to pass QR code along with other custom parameters to a print service

569
3
07-19-2022 12:12 AM
YObaidat
Occasional Contributor

Hi Everyone,

I created and published a custom print template. the problem is, every time the user prints from my JavaScript api app a QR code should be generated and included in the template. How to pass this QR code to the template ? any idea?

Thanks,

0 Kudos
3 Replies
ReneRubalcava
Honored Contributor

Depending on what your print service is expecting, you can send them as extraParameters in the PrintParameters.

https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html...

0 Kudos
YObaidat
Occasional Contributor

Hi Rene,

My problem is how to pass QR image with extraParameters and tell the layout in arcpro to place this image. I know how to pass text with extraParameters and tell the layout to display it by adding a element in the tempalte and give it a name but in the image case I can't find anyway to achieve that.

0 Kudos
ReneRubalcava
Honored Contributor

What does the print service parameters page look like? I didn't know you could specify a custom image parameter in the publishing tools for layouts, but knowing what it expects would help.

0 Kudos