I have the following scenario:
Established PowerShell script that processes HTML pages and calls Prince to create individual PDFs for each HTML page ("chapter"). After this is complete I use PdfBox to merge all chapter PDFs.
I am now investigating how to add a "List of graphs" of all chapters as a new page to the end of the merged PDF.
I have found the Box tracking API and can successfully generate a list of graphs for one HTML document inside the JS script I pass to Prince via the "script=" parameter, however, I cannot figure out how to pass this list back to the PowerShell script, or run a new Prince job to generate a PDF page from that list.
I looked into using Prince.convertToFile but keep getting an "invalid this value" error and am not sure if this is a feasible path to go with.
What would be my options?
Thank you!
Established PowerShell script that processes HTML pages and calls Prince to create individual PDFs for each HTML page ("chapter"). After this is complete I use PdfBox to merge all chapter PDFs.
I am now investigating how to add a "List of graphs" of all chapters as a new page to the end of the merged PDF.
I have found the Box tracking API and can successfully generate a list of graphs for one HTML document inside the JS script I pass to Prince via the "script=" parameter, however, I cannot figure out how to pass this list back to the PowerShell script, or run a new Prince job to generate a PDF page from that list.
I looked into using Prince.convertToFile but keep getting an "invalid this value" error and am not sure if this is a feasible path to go with.
What would be my options?
Thank you!