Hello:
One of the print options for my client billing app is to PDF file. I wrote the code for use with Adobe's Adobe PDF printer driver. It works mostly. I am now looking at switching to Bullzip. It works mostly.
I would like to get rid of the "mostly".
The problem I have is with printer orientation. I can set the orientation at the beginning of the print job to either portrait or landscape. That works just fine. What I can not do is change the orientation midjob. This problem exists with both Adobe PDF and Bullzip. Any later change to the orientation during the print job is ignored.
To set the orientation, I first close printer, use a .frx with the appropriate orientation, and then do a =sys(1037,3).
When printing to a physical printer, there is no problem: the orientation changes.
Please note that I generate my output with set printer on and ?. Switching to .frt/.frx is not a viable option.
The reason that I want this is because some PDFs should contain more than one report. (Some invoices should also have a transaction report following them.) Fortunately, I currently do not have a need to have these combined print job PDFs contain both portrait and landscape pages, but it would be nice to have in case it is ever needed. And it does not seem it should be so difficult.
What am I doing wrong, or is it impossible?
Sincerely,
Gene Wirchenko
It's likely possible there's a way to hack this together, but my first inclination would be to avoid the problem by printing each report separately and then using a PDF utility to concatenate them together. This isn't just a simple file concatenation, but rewrites headers and such.
I've been a big fan of the PDF utility pdftk, but it does much more, and I've seen catenation (yes, that's really a word) utilities out there.
On Wed, Nov 16, 2016 at 5:59 PM, Gene Wirchenko genew@telus.net wrote:
Hello:
One of the print options for my client billing app is to PDF file. Iwrote the code for use with Adobe's Adobe PDF printer driver. It works mostly. I am now looking at switching to Bullzip. It works mostly.
I would like to get rid of the "mostly". The problem I have is with printer orientation. I can set theorientation at the beginning of the print job to either portrait or landscape. That works just fine. What I can not do is change the orientation midjob. This problem exists with both Adobe PDF and Bullzip. Any later change to the orientation during the print job is ignored.
To set the orientation, I first close printer, use a .frx with theappropriate orientation, and then do a =sys(1037,3).
When printing to a physical printer, there is no problem: theorientation changes.
Please note that I generate my output with set printer on and ?.Switching to .frt/.frx is not a viable option.
The reason that I want this is because some PDFs should contain morethan one report. (Some invoices should also have a transaction report following them.) Fortunately, I currently do not have a need to have these combined print job PDFs contain both portrait and landscape pages, but it would be nice to have in case it is ever needed. And it does not seem it should be so difficult.
What am I doing wrong, or is it impossible?Sincerely,
Gene Wirchenko
[excessive quoting removed by server]
Fineprint PDF writer does it all automatically plus much, much more and is not expensive.
Dave
-----Original Message----- From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Gene Wirchenko Sent: 16 November 2016 22:59 To: ProFox Email List profox@leafe.com Subject: Setting >1 Page Orientation in PDFs
Hello:
One of the print options for my client billing app is to PDF file. I wrote the code for use with Adobe's Adobe PDF printer driver. It works mostly. I am now looking at switching to Bullzip. It works mostly.
I would like to get rid of the "mostly".
The problem I have is with printer orientation. I can set the orientation at the beginning of the print job to either portrait or landscape. That works just fine. What I can not do is change the orientation midjob. This problem exists with both Adobe PDF and Bullzip. Any later change to the orientation during the print job is ignored.
To set the orientation, I first close printer, use a .frx with the appropriate orientation, and then do a =sys(1037,3).
When printing to a physical printer, there is no problem: the orientation changes.
Please note that I generate my output with set printer on and ?. Switching to .frt/.frx is not a viable option.
The reason that I want this is because some PDFs should contain more than one report. (Some invoices should also have a transaction report following them.) Fortunately, I currently do not have a need to have these combined print job PDFs contain both portrait and landscape pages, but it would be nice to have in case it is ever needed. And it does not seem it should be so difficult.
What am I doing wrong, or is it impossible?
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]