Index
2016-11-16 16:59Gene Wirchenko : Setting >1 Page Orientation in PDFs
2016-11-16 18:18Ted Roche : Re: Setting >1 Page Orientation in PDFs
2016-11-17 02:48Dave Crozier : RE: Setting >1 Page Orientation in PDFs
2016-11-18 17:32Gene Wirchenko : RE: Setting >1 Page Orientation in PDFs
2016-11-21 02:28Dave Crozier : RE: Setting >1 Page Orientation in PDFs
2016-11-21 10:40Gene Wirchenko : RE: Setting >1 Page Orientation in PDFs
2016-11-21 11:21Dave Crozier : RE: Setting >1 Page Orientation in PDFs
2016-11-21 13:20Gene Wirchenko : RE: Setting >1 Page Orientation in PDFs
2016-11-22 03:56Dave Crozier : RE: Setting >1 Page Orientation in PDFs
2016-11-22 11:42Gene Wirchenko : RE: Setting >1 Page Orientation in PDFs
Back to top
Setting >1 Page Orientation in PDFs

Author: Gene Wirchenko

Posted: 2016-11-16 16:59:14   Link

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

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/fc9994f49876c8f35c412558678bd94a@mtlp000084

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Gene Wirchenko
Back to top
Re: Setting >1 Page Orientation in PDFs

Author: Ted Roche

Posted: 2016-11-16 18:18:27   Link

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. 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]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CACW6n4s07b6pN4vUVdQOG5GL-91eeJWoiBVnK3BaYR2GqGwbEA@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Ted Roche
Back to top
RE: Setting >1 Page Orientation in PDFs

Author: Dave Crozier

Posted: 2016-11-17 02:48:39   Link

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]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/18725B8CD2D5D247873A2BAF401D4AB2A43B836C@EX2010-A-FPL.FPL.LOCAL

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Dave Crozier
Back to top
RE: Setting >1 Page Orientation in PDFs

Author: Gene Wirchenko

Posted: 2016-11-18 17:32:48   Link

At 00:48 2016-11-17, Dave Crozier <DaveC@Flexipol.co.uk> wrote:

>Fineprint PDF writer does it all automatically plus much, much more

>and is not expensive.

How do you do it with Fineprint, please?

I have code that I think ought to work. It does set the

orientation correctly for the first time the orientation is set in a

print job. It does not work for subsequent orientation settings in a

print job. It fails the same way with two different PDF generators.

It is quite possible that I am doing something wrong. (No one

has replied with a correct way of how to do it, but that does not

guarantee I am correct. (I wish.)) I would rather not get mixed up

with yet another PDF generator without a reasonable assurance that it

will work. (Besides, the company I am working for already uses

Bullzip in other areas.)

And maybe seeing your code will give me an idea.

[snipped previous]

Sincerely,

Gene Wirchenko

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/8e102644922de61c90407560736505a1@mtlp000087

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Gene Wirchenko
Back to top
RE: Setting >1 Page Orientation in PDFs

Author: Dave Crozier

Posted: 2016-11-21 02:28:17   Link

With Fineprint you simply use the "Fineprint PDF printer" and send whatever you want to it. You can reformat documents, consolidate them, watermark them etc etc.

So, in short as to your question "how do you do it" - the answer is simple.... you don't need to do anything at all.

have used it for many years.

Dave

-----Original Message-----

From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Gene Wirchenko

Sent: 18 November 2016 23:33

To: ProFox Email List <profox@leafe.com>

Subject: RE: Setting >1 Page Orientation in PDFs

At 00:48 2016-11-17, Dave Crozier <DaveC@Flexipol.co.uk> wrote:

>Fineprint PDF writer does it all automatically plus much, much more and

>is not expensive.

How do you do it with Fineprint, please?

I have code that I think ought to work. It does set the orientation correctly for the first time the orientation is set in a print job. It does not work for subsequent orientation settings in a print job. It fails the same way with two different PDF generators.

It is quite possible that I am doing something wrong. (No one has replied with a correct way of how to do it, but that does not guarantee I am correct. (I wish.)) I would rather not get mixed up with yet another PDF generator without a reasonable assurance that it will work. (Besides, the company I am working for already uses Bullzip in other areas.)

And maybe seeing your code will give me an idea.

[snipped previous]

Sincerely,

Gene Wirchenko

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/18725B8CD2D5D247873A2BAF401D4AB2A43BB6DD@EX2010-A-FPL.FPL.LOCAL

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Dave Crozier
Back to top
RE: Setting >1 Page Orientation in PDFs

Author: Gene Wirchenko

Posted: 2016-11-21 10:40:31   Link

At 00:28 2016-11-21, Dave Crozier <DaveC@Flexipol.co.uk> wrote:

>With Fineprint you simply use the "Fineprint PDF printer" and send

>whatever you want to it. You can reformat documents, consolidate

>them, watermark them etc etc.

>

>So, in short as to your question "how do you do it" - the answer is

>simple.... you don't need to do anything at all.

That is not an answer at all.

What you describe in your first paragraph is doing something

which belies your second paragraph. You do have to do something. I

would like to know what that something is.

What do you do to specify that you want a page to be in the

other orientation and all within one print job? I think I have a way

that should work, but it does not. I do not know if it is my error

or the driver's.

I need some details.

> have used it for many years.

[snipped previous]

Sincerely,

Gene Wirchenko

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/70ea8043fde8263bb750f2f0bc105a17@mtlp000087

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Gene Wirchenko
Back to top
RE: Setting >1 Page Orientation in PDFs

Author: Dave Crozier

Posted: 2016-11-21 11:21:01   Link

Gene,

You use Fineprint PDF as a standard printer and set your orientation in the same way you would a printer.

Another simple solution is to configure two Fineprint printers, one portrait and one Landscape by setting the preferences on each printer then simply print to the one you need for the specific job.

Hope this explains the simplicity of using it.

Dave

-----Original Message-----

From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Gene Wirchenko

Sent: 21 November 2016 16:41

To: ProFox Email List <profox@leafe.com>

Subject: RE: Setting >1 Page Orientation in PDFs

At 00:28 2016-11-21, Dave Crozier <DaveC@Flexipol.co.uk> wrote:

>With Fineprint you simply use the "Fineprint PDF printer" and send

>whatever you want to it. You can reformat documents, consolidate them,

>watermark them etc etc.

>

>So, in short as to your question "how do you do it" - the answer is

>simple.... you don't need to do anything at all.

That is not an answer at all.

What you describe in your first paragraph is doing something which belies your second paragraph. You do have to do something. I would like to know what that something is.

What do you do to specify that you want a page to be in the other orientation and all within one print job? I think I have a way that should work, but it does not. I do not know if it is my error or the driver's.

I need some details.

> have used it for many years.

[snipped previous]

Sincerely,

Gene Wirchenko

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/18725B8CD2D5D247873A2BAF401D4AB2A43BC0A0@EX2010-A-FPL.FPL.LOCAL

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Dave Crozier
Back to top
RE: Setting >1 Page Orientation in PDFs

Author: Gene Wirchenko

Posted: 2016-11-21 13:20:04   Link

At 09:21 2016-11-21, Dave Crozier <DaveC@Flexipol.co.uk> wrote:

>Gene,

>You use Fineprint PDF as a standard printer and set your orientation

>in the same way you would a printer.

That is my problem. I have something that works with a

hardcopy printer, but it does not work with the Adobe PDF or Bullzip

PDF Printer PDF generators. I would like to know what others do to

change the orientation of the PDF output in the middle of a print job.

>Another simple solution is to configure two Fineprint printers, one

>portrait and one Landscape by setting the preferences on each

>printer then simply print to the one you need for the specific job.

That is not the issue. I can set the orientation of the

printer / PDF pages at the beginning of a print job to portrait or

landscape as I wish. What I can not do is change it in the middle of

a PDF print job as in:

portrait page

portrait page

portrait page

landscape page

landscape page

portrait page

portrait page

portrait page

>Hope this explains the simplicity of using it.

Nope.

It seems to me that it should not be so difficult, but I am

unable to see where I have gone wrong (or even whether I have and it

is a bug in both drivers).

[snipped previous]

Sincerely,

Gene Wirchenko

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/0d2a61ac4cdf5950f61048d3a1341c0f@mtlp000085

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Gene Wirchenko
Back to top
RE: Setting >1 Page Orientation in PDFs

Author: Dave Crozier

Posted: 2016-11-22 03:56:49   Link

Gene,

Now I see what you mean... the dynamic size change! Must admit I have never tried to do this but I'll give it a go and report back

Dave

-----Original Message-----

From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Gene Wirchenko

Sent: 21 November 2016 19:20

To: ProFox Email List <profox@leafe.com>

Subject: RE: Setting >1 Page Orientation in PDFs

At 09:21 2016-11-21, Dave Crozier <DaveC@Flexipol.co.uk> wrote:

>Gene,

>You use Fineprint PDF as a standard printer and set your orientation in

>the same way you would a printer.

That is my problem. I have something that works with a hardcopy printer, but it does not work with the Adobe PDF or Bullzip PDF Printer PDF generators. I would like to know what others do to change the orientation of the PDF output in the middle of a print job.

>Another simple solution is to configure two Fineprint printers, one

>portrait and one Landscape by setting the preferences on each printer

>then simply print to the one you need for the specific job.

That is not the issue. I can set the orientation of the printer / PDF pages at the beginning of a print job to portrait or landscape as I wish. What I can not do is change it in the middle of a PDF print job as in:

portrait page

portrait page

portrait page

landscape page

landscape page

portrait page

portrait page

portrait page

>Hope this explains the simplicity of using it.

Nope.

It seems to me that it should not be so difficult, but I am unable to see where I have gone wrong (or even whether I have and it is a bug in both drivers).

[snipped previous]

Sincerely,

Gene Wirchenko

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/18725B8CD2D5D247873A2BAF401D4AB2A43BC967@EX2010-A-FPL.FPL.LOCAL

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Dave Crozier
Back to top
RE: Setting >1 Page Orientation in PDFs

Author: Gene Wirchenko

Posted: 2016-11-22 11:42:41   Link

At 01:56 2016-11-22, Dave Crozier <DaveC@Flexipol.co.uk> wrote:

>Gene,

>Now I see what you mean... the dynamic size change! Must admit I

>have never tried to do this but I'll give it a go and report back

Even if you end up telling me that you could not make it go,

that would be appreciated. Note that I do reports using set printer

on and not .frx. (I use .frx only to set the orientation.)

[snipped previous]

Sincerely,

Gene Wirchenko

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/3ccc98f3517e7c2baa89531ecc378060@mtlp000086

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Gene Wirchenko