Forum How do I...?

Strip out warnings at beginning of PDF

goldblattster
Hi all,

I'm using prince to generate PDFs, but I'm having an issue. One of the systems I need to feed prince output into relies on determining file format based on magic numbers (for PDFs these are the bytes 25 50 44 46 2d).

Some of the PDFs I'm getting from prince have warnings in front of the magic numbers, which break compatibility with the system. I'd like to know how I can use prince to silence any errors/warnings that may show up in front of these bytes.



Prince version: 13.1
mikeday
How are you calling Prince? It looks like the standard error stream is being interleaved with the output?
goldblattster
I took a close look at our implementation and that ended up being exactly the issue. Thank you for the insight!