Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
hans hans is offline
external usenet poster
 
Posts: 72
Default Page Numbering Incorrect: Word 03 -- .PDF

I have set up several hundred Word docs with some code I got on the 'net (via
this forum) that automatically determines if the doc ends on an odd or even
page, then, if odd, adds a page and the text "This page intentionally left
blank."

When I convert the docs using Acrobat Pro, if the doc naturally has an even
number of pages, say, four, then the "Page # of #" in the footer is incorrect
when converted to PDF, i.e., it the Total Pages digit is too high by one,
e.g., "Page 4 of 5." It's as if Word is suppressing a last page because it's
odd-numbered when viewed from within Word (and when a hard-copy is printed),
but it is not suppressed when distilled to PDF.

Is there a solution to this other than nixing the "Page # of #" format?

Thanks!
  #2   Report Post  
Posted to microsoft.public.word.pagelayout
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Page Numbering Incorrect: Word 03 -- .PDF

Hi Hans,

That may depend on how you're adding the extra page. For example, one might do it through vba or via field coding. Perhaps if you
post the code you're using, a solution can be suggested.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hans" wrote in message ...
I have set up several hundred Word docs with some code I got on the 'net (via
this forum) that automatically determines if the doc ends on an odd or even
page, then, if odd, adds a page and the text "This page intentionally left
blank."

When I convert the docs using Acrobat Pro, if the doc naturally has an even
number of pages, say, four, then the "Page # of #" in the footer is incorrect
when converted to PDF, i.e., it the Total Pages digit is too high by one,
e.g., "Page 4 of 5." It's as if Word is suppressing a last page because it's
odd-numbered when viewed from within Word (and when a hard-copy is printed),
but it is not suppressed when distilled to PDF.

Is there a solution to this other than nixing the "Page # of #" format?

Thanks!


  #3   Report Post  
Posted to microsoft.public.word.pagelayout
Jean-Guy Marcil[_2_] Jean-Guy Marcil[_2_] is offline
external usenet poster
 
Posts: 373
Default Page Numbering Incorrect: Word 03 -- .PDF

"Hans" wrote:

I have set up several hundred Word docs with some code I got on the 'net (via
this forum) that automatically determines if the doc ends on an odd or even
page, then, if odd, adds a page and the text "This page intentionally left
blank."

When I convert the docs using Acrobat Pro, if the doc naturally has an even
number of pages, say, four, then the "Page # of #" in the footer is incorrect
when converted to PDF, i.e., it the Total Pages digit is too high by one,
e.g., "Page 4 of 5." It's as if Word is suppressing a last page because it's
odd-numbered when viewed from within Word (and when a hard-copy is printed),
but it is not suppressed when distilled to PDF.


Word does not suppress pages...

The usual error for the Page x of y is:
Page 1 of 1
Page 2 of 2
Page 3 of 3
etc.

You say you get
Page 4 of 5

This is a new one!

How many pages are there in the PDF file, 4 or 5?

And just to be clear, *all* documents with an even number of pages exhibit
this behaviour, whereas those with an odd number do not, even if your code
actually adds a page to make the number of pages even just prior to PDF
ceation. Is that correct?

If that is the case, maybe your code is doing something it shouldn't?
  #4   Report Post  
Posted to microsoft.public.word.pagelayout
hans hans is offline
external usenet poster
 
Posts: 72
Default Page Numbering Incorrect: Word 03 -- .PDF

Hello,

Here is the page, via MVPS' FAQ on Tables, Fields, & Forms, from which I got
the field coding:

http://word.mvps.org/FAQs/TblsFldsFm...nPgEndChap.htm

Note that I could not get it to work as written -- I had to add a space
between the word "IF" and the curly bracket to the right (see link above).

Thanks for your assistance,

-Hans


"macropod" wrote:

Hi Hans,

That may depend on how you're adding the extra page. For example, one might do it through vba or via field coding. Perhaps if you
post the code you're using, a solution can be suggested.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hans" wrote in message ...
I have set up several hundred Word docs with some code I got on the 'net (via
this forum) that automatically determines if the doc ends on an odd or even
page, then, if odd, adds a page and the text "This page intentionally left
blank."

When I convert the docs using Acrobat Pro, if the doc naturally has an even
number of pages, say, four, then the "Page # of #" in the footer is incorrect
when converted to PDF, i.e., it the Total Pages digit is too high by one,
e.g., "Page 4 of 5." It's as if Word is suppressing a last page because it's
odd-numbered when viewed from within Word (and when a hard-copy is printed),
but it is not suppressed when distilled to PDF.

Is there a solution to this other than nixing the "Page # of #" format?

Thanks!



  #5   Report Post  
Posted to microsoft.public.word.pagelayout
hans hans is offline
external usenet poster
 
Posts: 72
Default Page Numbering Incorrect: Word 03 -- .PDF

Responding to my own post...

I discovered that if I "Print to PDF" from within Word, the page numbering
is correct. It is only if I first go to Acrobat Pro, then create a .PDF from
multiple docs that I get the problem.

This is not the first time I've gotten different results from converting
within Pro vs. printing to it...



"Hans" wrote:

Hello,

Here is the page, via MVPS' FAQ on Tables, Fields, & Forms, from which I got
the field coding:

http://word.mvps.org/FAQs/TblsFldsFm...nPgEndChap.htm

Note that I could not get it to work as written -- I had to add a space
between the word "IF" and the curly bracket to the right (see link above).

Thanks for your assistance,

-Hans


"macropod" wrote:

Hi Hans,

That may depend on how you're adding the extra page. For example, one might do it through vba or via field coding. Perhaps if you
post the code you're using, a solution can be suggested.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hans" wrote in message ...
I have set up several hundred Word docs with some code I got on the 'net (via
this forum) that automatically determines if the doc ends on an odd or even
page, then, if odd, adds a page and the text "This page intentionally left
blank."

When I convert the docs using Acrobat Pro, if the doc naturally has an even
number of pages, say, four, then the "Page # of #" in the footer is incorrect
when converted to PDF, i.e., it the Total Pages digit is too high by one,
e.g., "Page 4 of 5." It's as if Word is suppressing a last page because it's
odd-numbered when viewed from within Word (and when a hard-copy is printed),
but it is not suppressed when distilled to PDF.

Is there a solution to this other than nixing the "Page # of #" format?

Thanks!





  #6   Report Post  
Posted to microsoft.public.word.pagelayout
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Page Numbering Incorrect: Word 03 -- .PDF

Hi Hans,

I'd use a slightly different field code to create the intentional page break:
{IF{=MOD({PAGE},2)}= 1 "{QUOTE 12 "This page intentionally left blank"}}
or
{IF{=MOD({PAGE},2)}= 0 "{QUOTE 12 "This page intentionally left blank"}}
depending on whether you want an odd or even page, but the results would be much the same.

As you've noted, "Print to PDF" from within Word,works correctly, but combining multiple files to create the PDF from Acrobat Pro
doesn't. I think you'll find, though, that using the Adobe 'Create PDF' button from within Word will also work correctly. This gives
you the choice of first creating the PDF from the Word document before using the PDF thus created as one of the files to be combined
via Acrobat Pro, or combining all the files in Word (eg via INCLUDETEXT, INCLUDEPICTURE & LINK fields) beforehand.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hans" wrote in message ...
Hello,

Here is the page, via MVPS' FAQ on Tables, Fields, & Forms, from which I got
the field coding:

http://word.mvps.org/FAQs/TblsFldsFm...nPgEndChap.htm

Note that I could not get it to work as written -- I had to add a space
between the word "IF" and the curly bracket to the right (see link above).

Thanks for your assistance,

-Hans


"macropod" wrote:

Hi Hans,

That may depend on how you're adding the extra page. For example, one might do it through vba or via field coding. Perhaps if you
post the code you're using, a solution can be suggested.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hans" wrote in message ...
I have set up several hundred Word docs with some code I got on the 'net (via
this forum) that automatically determines if the doc ends on an odd or even
page, then, if odd, adds a page and the text "This page intentionally left
blank."

When I convert the docs using Acrobat Pro, if the doc naturally has an even
number of pages, say, four, then the "Page # of #" in the footer is incorrect
when converted to PDF, i.e., it the Total Pages digit is too high by one,
e.g., "Page 4 of 5." It's as if Word is suppressing a last page because it's
odd-numbered when viewed from within Word (and when a hard-copy is printed),
but it is not suppressed when distilled to PDF.

Is there a solution to this other than nixing the "Page # of #" format?

Thanks!




  #7   Report Post  
Posted to microsoft.public.word.pagelayout
hans hans is offline
external usenet poster
 
Posts: 72
Default Page Numbering Incorrect: Word 03 -- .PDF

I will give your code a try. I really should get a book on VB and read up...

Thanks again for your help!

-Hans

"macropod" wrote:

Hi Hans,

I'd use a slightly different field code to create the intentional page break:
{IF{=MOD({PAGE},2)}= 1 "{QUOTE 12 "This page intentionally left blank"}}
or
{IF{=MOD({PAGE},2)}= 0 "{QUOTE 12 "This page intentionally left blank"}}
depending on whether you want an odd or even page, but the results would be much the same.

As you've noted, "Print to PDF" from within Word,works correctly, but combining multiple files to create the PDF from Acrobat Pro
doesn't. I think you'll find, though, that using the Adobe 'Create PDF' button from within Word will also work correctly. This gives
you the choice of first creating the PDF from the Word document before using the PDF thus created as one of the files to be combined
via Acrobat Pro, or combining all the files in Word (eg via INCLUDETEXT, INCLUDEPICTURE & LINK fields) beforehand.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hans" wrote in message ...
Hello,

Here is the page, via MVPS' FAQ on Tables, Fields, & Forms, from which I got
the field coding:

http://word.mvps.org/FAQs/TblsFldsFm...nPgEndChap.htm

Note that I could not get it to work as written -- I had to add a space
between the word "IF" and the curly bracket to the right (see link above).

Thanks for your assistance,

-Hans


"macropod" wrote:

Hi Hans,

That may depend on how you're adding the extra page. For example, one might do it through vba or via field coding. Perhaps if you
post the code you're using, a solution can be suggested.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hans" wrote in message ...
I have set up several hundred Word docs with some code I got on the 'net (via
this forum) that automatically determines if the doc ends on an odd or even
page, then, if odd, adds a page and the text "This page intentionally left
blank."

When I convert the docs using Acrobat Pro, if the doc naturally has an even
number of pages, say, four, then the "Page # of #" in the footer is incorrect
when converted to PDF, i.e., it the Total Pages digit is too high by one,
e.g., "Page 4 of 5." It's as if Word is suppressing a last page because it's
odd-numbered when viewed from within Word (and when a hard-copy is printed),
but it is not suppressed when distilled to PDF.

Is there a solution to this other than nixing the "Page # of #" format?

Thanks!




  #8   Report Post  
Posted to microsoft.public.word.pagelayout
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Page Numbering Incorrect: Word 03 -- .PDF

Hi Hans,

This isn't vb/vba - it's field coding.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hans" wrote in message ...
I will give your code a try. I really should get a book on VB and read up...

Thanks again for your help!

-Hans

"macropod" wrote:

Hi Hans,

I'd use a slightly different field code to create the intentional page break:
{IF{=MOD({PAGE},2)}= 1 "{QUOTE 12 "This page intentionally left blank"}}
or
{IF{=MOD({PAGE},2)}= 0 "{QUOTE 12 "This page intentionally left blank"}}
depending on whether you want an odd or even page, but the results would be much the same.

As you've noted, "Print to PDF" from within Word,works correctly, but combining multiple files to create the PDF from Acrobat Pro
doesn't. I think you'll find, though, that using the Adobe 'Create PDF' button from within Word will also work correctly. This
gives
you the choice of first creating the PDF from the Word document before using the PDF thus created as one of the files to be
combined
via Acrobat Pro, or combining all the files in Word (eg via INCLUDETEXT, INCLUDEPICTURE & LINK fields) beforehand.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hans" wrote in message ...
Hello,

Here is the page, via MVPS' FAQ on Tables, Fields, & Forms, from which I got
the field coding:

http://word.mvps.org/FAQs/TblsFldsFm...nPgEndChap.htm

Note that I could not get it to work as written -- I had to add a space
between the word "IF" and the curly bracket to the right (see link above).

Thanks for your assistance,

-Hans


"macropod" wrote:

Hi Hans,

That may depend on how you're adding the extra page. For example, one might do it through vba or via field coding. Perhaps if
you
post the code you're using, a solution can be suggested.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hans" wrote in message ...
I have set up several hundred Word docs with some code I got on the 'net (via
this forum) that automatically determines if the doc ends on an odd or even
page, then, if odd, adds a page and the text "This page intentionally left
blank."

When I convert the docs using Acrobat Pro, if the doc naturally has an even
number of pages, say, four, then the "Page # of #" in the footer is incorrect
when converted to PDF, i.e., it the Total Pages digit is too high by one,
e.g., "Page 4 of 5." It's as if Word is suppressing a last page because it's
odd-numbered when viewed from within Word (and when a hard-copy is printed),
but it is not suppressed when distilled to PDF.

Is there a solution to this other than nixing the "Page # of #" format?

Thanks!





Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is chapter in page number sometimes incorrect in Word? KathyInAZ Page Layout 7 September 7th 07 10:26 AM
TOC Page numbering Incorrect after Sending Via Email Darren B Microsoft Word Help 2 June 5th 07 02:28 PM
incorrect page numbers - Word 2007 LesaMMiller Page Layout 0 April 5th 07 02:54 PM
incorrect chapter numbering in figure captions anilca Microsoft Word Help 2 October 21st 06 06:26 PM
Incorrect Page Numbering Dixon Microsoft Word Help 1 May 14th 05 05:05 AM


All times are GMT +1. The time now is 04:33 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"