Recent

Author Topic: [Solved] adding a picture with transparency in a PDF  (Read 883 times)

Nono Reading Activity

  • Jr. Member
  • **
  • Posts: 56
[Solved] adding a picture with transparency in a PDF
« on: March 10, 2024, 02:18:38 pm »
Greeting
i'm using fpPDF for the PDF i create, but i can't find how to manage picture's transparency
is there a way or should i use another Package ?
« Last Edit: March 15, 2024, 06:18:36 am by Nono Reading Activity »

Nono Reading Activity

  • Jr. Member
  • **
  • Posts: 56
Re: adding a picture with transparency in a PDF
« Reply #1 on: March 13, 2024, 06:15:56 pm »
as i received the answer in another post, i add the solution if someone need it

Code: Pascal  [Select][+][-]
  1. var
  2.   PDFDoc:         TPDFDocument;
  3.   PDFSection:     TPDFSection;
  4.   PDFPage:        TPDFPage;
  5.   PDFOption:      TPDFOptions;  
  6. ...
  7. begin
  8. ...
  9.   PDFOption        := [poUseImageTransparency];
  10.   PDFDoc           := TPDFDocument.Create(nil);
  11.   PDFDoc.Options   := PDFOption;
  12.   PDFDoc.StartDocument;
  13.  

         

 

TinyPortal © 2005-2018