Expand my Community achievements bar.

SOLVED

QR Code Object in Designer XDP with dynamic values

Avatar

Level 4

Hi folks

we are designing XDP on AEM 6.5 designer for form which will hold QRCode object on each page. This QRCOde object is not assigned any default value but we are assign page number and form name to the QRCode using Javascript on layout ready event

QRCode.rawValue = formname+pageNo +" of "+pagetotal

 

this XDP when generated as interactive PDF from formservice.renderPDFForm method and applied Reader extension then output pdf doesnt show QR code on browser.

However, when we open the PDF and make any change and save it, thereafter if opened on chrome it shows QR Code properly.

Environment: AEM 6.5.8 with forms package

Any guidance?

 

Manu Gupta

 

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @manu-gupta 

the Reader Extension will not help when the PDF is basically a static PDF running via DocuSign (which might mess with it further). The QRCode XFA object needs to be rendered in the Forms environment (either at client inside Adobe Acrobat or Reader with Reader Extensions or at server in AEM Forms).

At the time of instantiating the PDF in the browser I am sure the QRCode object did not render and will not in this usecase.

 

You seem to have AEM Forms server (looking at PDFFormRenderOptions which sound like the render API being used).

 

Assuming that you have a 2 stage process
a) data capture in interactive PDF browser only
b) routing of finished form to DocuSign as static, printable PDF

In the browser you will not be able to have QRCode interactively. You could fill out fields though. The form data is submitted back to a server (either as complete PDF or as data only).

In AEM Forms you could extract the data and re-render with an XDP that contains the QRCode (flattening directly will not help)

This printed version should contain also the QRCode as it was rendered in an XFA friendly environment.

Kosta

View solution in original post

5 Replies

Avatar

Level 9

The pdf viewers that come with the browsers are not Adobe products and as such they may not support all the features

Avatar

Level 4

that we are aware of, but i point is QR code sow up after save.

Avatar

Employee

@manu-gupta there are some conflicting facts in your description.

Interactive XFA PDF cannot be opened in browsers without the Reader/Acrobat plugin. The Reader Extensions also only work inside Reader/Acrobat.

Additionally, QR Code and other 2D barcodes need a special Reader Extension to be written decrypted, otherwise you require AEM Forms Barcoded Forms (Right "BarcodePlaintext" which is a separate right and will not come by default). It is possible that the QR Code shows but did you scan it and got your text out as you expect?

Avatar

Level 4

Agreed- Dynamic XML PDF forms cannot be viewed on browser, we had added RenderAtClient.NO to PDFFormRenderOptions which allows PDF render at browser as static.

This PDF is usually sent to Webview of DocuSign signing and we need to show QR code along with PDF data, hence the need.

QRCode object does not show up at all.

 

Can you please elaborate on special Reader Extension, will that help in showing QRcode on browser?

 

 

TIA

Manu Gupta

 

 

Avatar

Correct answer by
Employee

Hi @manu-gupta 

the Reader Extension will not help when the PDF is basically a static PDF running via DocuSign (which might mess with it further). The QRCode XFA object needs to be rendered in the Forms environment (either at client inside Adobe Acrobat or Reader with Reader Extensions or at server in AEM Forms).

At the time of instantiating the PDF in the browser I am sure the QRCode object did not render and will not in this usecase.

 

You seem to have AEM Forms server (looking at PDFFormRenderOptions which sound like the render API being used).

 

Assuming that you have a 2 stage process
a) data capture in interactive PDF browser only
b) routing of finished form to DocuSign as static, printable PDF

In the browser you will not be able to have QRCode interactively. You could fill out fields though. The form data is submitted back to a server (either as complete PDF or as data only).

In AEM Forms you could extract the data and re-render with an XDP that contains the QRCode (flattening directly will not help)

This printed version should contain also the QRCode as it was rendered in an XFA friendly environment.

Kosta