I'm getting familiar with the control mode by starting a job and passing a JSON input. Afterward, I copy the generated PDF output, paste it into a text editor (like VS Code), and save it with a .pdf extension. However, the resulting file contains only blank pages.
Here's how I run the control command:
I pass the following json as the job data:
I get the BYTESIZE using this command, then subtract 1 from the output:
I used the same command without the control mode and the PDF is generated as expected.
Here's how I run the control command:
prince --control \
--license-file prince.dat --user-agent 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36' \
--no-warn-css
I pass the following json as the job data:
job BYTESIZE
{"input": { "src": "path/to/transcripts.html" }, "job-resource-count": 0}
I get the BYTESIZE using this command, then subtract 1 from the output:
echo '{"input": { "src": "path/to/transcripts.html" }, "job-resource-count": 0}' | wc -lc
I used the same command without the control mode and the PDF is generated as expected.
prince "transcripts.html" -o "transcripts.pdf" --user-agent 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36' --no-warn-css