Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

PDF Quality

edited August 2005 in Devices
Greetings,

When I print a ReportBuilder report (with some of my custom components) to
Adobe's printer driver the quality of the output is perfect. When I print
the same report using the suggested method:

uses
ppPDFDevice;

begin
with ppReport do
begin
AllowPrintToFile := True;
ShowPrintDialog := False;
DeviceType := 'PDF';
TextFileName := 'C:\Temp\myPDFFile.pdf';

PDFSettings.Author := 'RB Master';
PDFSettings.Title := 'Export to PDF!';
PDFSettings.OpenPDFFile := True;

Print;
end;

The print quality is very poor and pixelated (that is of my custom
components). When printing to a printer or to the screen my components print
fine. I took a quick look at the Draw function of some of the ReportBuilder
components. I did not discover how to use the TppPDFDevice in the Draw
function of my custom components. However the Adobe printer driver does not
require it.

Is there a way to use TppPDFDevice in the Draw function of my custom
components? Or is there a way to improve the resolution using the procedure
above?

Many Thanks,
Tommy Dillard

Comments

  • edited August 2005
    Hi Tommy,

    The current version of ReportBuilder converts all custom components as well
    as RichText and Barcode components into bitmaps before drawing them to the
    PDF file. This sometimes causes it to loose much of the detail of certain
    components. Unfortunately this is a limitation for the current release.
    For the next major release of RB you will be able to create and register
    your own PDF "renderer" to handle each of your custom components. This will
    allow you to generate the actual PDF commands and add them to the PDF
    content stream during the generation process ensuring optimal output.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2005

  • edited August 2005
    Hi Girish,

    Thanks for the suggestions :).

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.