Forum How do I...?

PrinceXML support for angular components

Hi Team,

I am currently doing one POC to convert a page developed in angular to pdf by providing hosted url but its giving blank pdf. but same it is working if i give any aspx pages.

Angular version :v16

Does princexml support pages developed using angular?
Angular may be using DOM features that Prince does not currently support, do you have a test document we could examine?
HI Mike,

For our angular application I see error message:
msg|err|<our hosted url>/scripts.fea45ecb75a30d8b.js:10723|unexpected token reserved("const")

For testing purpose, we used 2 urls:
output: blank pdf
error message: TypeError: undefined not an object.

output: pdf generated with page content.

Attached the outputs
  1. output.pdf2.1 kB
    blank pdf
  2. output1.pdf96.0 kB
    content pdf

Edited by sai

Which version of Prince are you using? Prince 15 added support for const, and the latest builds have more JavaScript support.