Perhaps the output functions clear out the document in memory? The docs don't explicitly say that, but it seems to match what you are observing.
In reply to Re^3: CAM::PDF cleanoutput Error
by GotToBTru
in thread CAM::PDF cleanoutput Error
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |