David, do you have a version problem with Adobe, perhaps? I think this is the
message trying to open an Adobe 6 pdf with Adobe 5.
--- "David M. Blocker" <[EMAIL PROTECTED]> wrote:
> The following code prints a PDF file of an invoice in 7.1. The PDF file gets
> created, I can open the file successfully here with both Adobe 5.1 and 6.0
> readers, and with Adobe Acrobat 6.0. However, Acrobat can't convert it to RTF
> giving this error:
>
> Bad PDF: could not read page structure (bad page contents)
>
> Many people I've sent these files to cannot open the file at all withe Adobe
> reader.
>
> The code:
>
> SET VAR vFileName = ('C:\Documents and Settings\David Blocker\My Documents\'+
> +'DB'+.vCPID+'INV'+CTXT(.vINV#)+'.'+'PDF')
>
> SET VAR vOptions = ('Filename'&.vFileName)
> PRINT INVOICE WHERE CPID = .vCPID AND BILL IS NULL ORDER BY InvoiceDate T# +
> OPTION PDF|.vOptions
>
> It creates a file like "DBBmaINV66.PDF"
>
> Any suggestions?
>
> David Blocker
> [EMAIL PROTECTED]
> 781-784-1919
> Fax: 781-784-1860
> Cell: 339-206-0261
>
=====
Albert Berry
Management Consultant
RR2 - 1252 Ponderosa Drive
Sparwood BC, V0B 2G2
Canada
(250) 425-5806
(250) 425-7259
(708) 575-3952 (fax)
[EMAIL PROTECTED]