Hi.
I have docx file with qr code inserted via DISPLAYBARCODE word command:
{ DISPLAYBARCODE "{PAGE}" QR \q 1 } (it shows qr code with page number on every page).
In word it works perfect. I can export this file in MS Word to pdf and qr codes works as expected (a different page number in each qr code on page).
If i try to export using aspose:
Document doc = new Document(“c:\11\test_template_empty__qr.docx”);
doc.FieldOptions.BarcodeGenerator = new CustomBarcodeGenerator();
doc.UpdatePageLayout();
doc.Save(“c:\11\result.pdf”, SaveFormat.Pdf);
then all qr codes in output file contains same page number - 1. (Tested on versions 16.3, 18.0,19.4).
Method in CustomBarcodeGenerator (GetBarcodeImage) recieves same page number in parameters.BarcodeValue.
Please find the following documents attached
test_template_empty__qr.docx - document with qr codes.
test_template_empty__qr.pdf - pdf created by ms word export.
result.pdf - pdf created by aspose with wrong qr codes.
attachment.zip (66.6 KB)