eDocEngine VCL
Create documents and reports in 18 formats
Compatibility
Delphi C++Builder

Rendering text in PDF with varying opacity using eDocEngine

With the TgtPDFEngine.TextEffects property.

eDocEngine VCL provides document-creation components for several formats. A document-creation engine component may have some format-specific API. The PDF engine component has a PDF-specific TextEffects property. Its Opacity property can be used to control the opacity of the text that is rendered on a PDF page. Similar opacity settings are also available for line drawings (path or shape objects) and images.

procedure TForm20.Button1Click(Sender: TObject);
var
  i: Integer;
begin
  try
    with gtPDFEngine1 do begin
      Preferences.ShowSetupDialog := False;
      FileName := 'e:\opacity_test.pdf';
      Font.Size := 40;

      BeginDoc;
      for i := 10 downto 1 do begin
        TextEffects.Opacity := i * 10;
        TextOut(1, 11-i, 'Hello, world!');
      end;
      EndDoc;
    end;
  except on Err:Exception do
     ShowMessage(Err.Message);
  end;
  close;
end;

---o0O0o---

Our .NET Developer Tools
XtremeDocumentStudio .NET

Multi-format document-processing component suite for .NET developers.

PDFOne .NET

A .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications.

Our Delphi/C++Builder developer tools
XtremeDocumentStudio Delphi

Multi-format document-processing component suite for Delphi/C++Builder developers, covering both VCL and FireMonkey platforms.

eDocEngine VCL

A Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools.

PDFtoolkit VCL

A Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents.

Our Java developer tools
XtremeDocumentStudio (for Java)

Multi-format document-processing component suite for Java developers.

PDFOne (for Java)

A Java PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java applications.

Our Platform-Agnostic Cloud and On-Premises APIs
StarDocs

Cloud-hosted and On-Premises REST-based document-processing and document-viewing APIs

Privacy | Legal | Feedback | Newsletter | Blog | Resellers © 2002-2017 Gnostice Information Technologies Private Limited. All rights reserved.