Header OK when printed but gray when PDF emailed

  • We are using WPTools 4.09 and wPDF 3.5 and have a problem that when a document is printed it looks OK similarly when the initial PDF from wPDF is viewed it looks fine but when saved to disk and emailed the text in the header is being rendered in gray

    Initially we thought it might have been a problem with images in the header but even with plain text this graying happens. ( all text colours come out as gray in the PDF header )

    I've tried setting/resetting the ViewOptions flag wpDontGrayHeaderFooterInLayout on the TWPRichText but it seems to have made no difference to the end result

    Is there anything else I can try within the wPDF settings ?

    • Offizieller Beitrag

    WPTools 4.09? That was released according to History.txt on 29.9.2002, nine years ago.

    You should check that, if you save the PDF to file and open it locally it looks ok. If it does, then something in your "convert for email" siwtches on the gray header.

    Usually the header are omnly grayed out on screen - but depending on the drawing code during PDF export the engine can believe it was drawing on screen.

  • Is there any attribute either in WPTools or in wPDF which can turn off the graying of the headers ?

    All we are doing to convert for email is this

    WPDF_Start('user', 'password');
    pdf := TWPPDFExport.Create(nil);
    pdf.DLLName := Working_Directory + 'WPDF300A.DLL';
    pdf.Source := wprtDocument;
    try
    pdf.FileName := AdsDataPath + '\' + fDocName + '.pdf';
    pdf.Print
    finally
    pdf.free
    end;

    EMailDocForm.ListBox1.Items.Add(AdsDataPath + '\' + fDocName + '.pdf');

    Note : wprtDocument is an instance of TWPRichText,
    AdsDataPath is the location of the Advantage Database tables used in this product

  • We have tried using the wPDF attribute :

    pdf.CanvasReference := wprefPrinter;


    We have tried at the TWPRichText level by adding wpDontGrayHeaderFooterInLayout into ViewOptions


    We still get the greyed headers on saving


    Is there anything else we can do ?