Forum How do I...?

TypeError: value is not an object Prince Object

ChrisM954
Afternoon,

I am trying to follow the "simple table of contents" sample for a document I am generating, and when the Prince.registerPostLayoutFunc(test); object is invoked, Princexml returns the following error:

error: TypeError: value is not an object

I am following the cookbook example here:
https://www.princexml.com/doc/cookbook/#simple-table-of-contents

This is happening even for the sample that is provided in the documentation.

C:\Users\me\Documents\princeOutput>"C:\Program Files (x86)\Prince\engine\bin\prince.exe" --javascript https://css4.pub/2020/musick/musick.html -o music.pdf
prince: https://css4.pub/2020/musick/musick.html:3: error: TypeError: value is not an object

I am using version:

C:\Users\me\Documents\princeOutput>"C:\Program Files (x86)\Prince\engine\bin\prince.exe" --version
Prince 13.5
Copyright 2002-2020 YesLogic Pty. Ltd.
Non-commercial License


Any ideas on what may be going wrong here?

Thanks!
mikeday
Multipass JavaScript with registerPostLayoutFunc is only supported in Prince 14!
ChrisM954
Upgrading now then! Thanks!