Print Page | Close Window

FlattenAnnot still opaque in v10.13

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2854
Printed Date: 02 Feb 26 at 4:01PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: FlattenAnnot still opaque in v10.13
Posted By: kk aw
Subject: FlattenAnnot still opaque in v10.13
Date Posted: 28 Mar 14 at 12:36AM
The FlattenAnnot function in version 10.13 still create an opaque bar when use with the renderto.. function.

The codes I use are as follows:

  iPageCount:= Qp.PageCount;
  With Qp do
    begin
      For i:= 1 to iPagecount do
        begin
          QP.SelectPage(i);
          iAnnotCount:= qp.AnnotationCount;
          for j:= iAnnotCount downto 1 do
            begin
              s1:= qp.GetAnnotStrProperty(j, 101);
              If sm.equalIC(s1,'Highlight') then
                begin
                  retval:= qp.FlattenAnnot(j, 0);
                  if retval = 0 then
                    ShowMessage(Format('Annotation No. %d cannot be flattened',[j]));
                end;
            end;
        end;
    end; 





Replies:
Posted By: AndrewC
Date Posted: 28 Mar 14 at 6:12AM
kk aw,

Have you tried opening your PDF file in Acrobat ?  Your code is working for me if I open the flattened PDF in Acrobat.

The Highlight annotation uses transparency object and will require the new rendering engine to render correctly if you use any of the Debenu Quick PDF Library rendering functions such as RenderPageToFile etc...

   ret = QP.SetDPLRFileName(@"DebenuPDFRendererDLL1013.dll");
  SelectRenderer(3);

The extra DLL can be found in the "Rendering and Printing Add-On" directory in your Debenu Quick PDF Library 10.13 installation directory.

Andrew. 


Posted By: kk aw
Date Posted: 28 Mar 14 at 7:30AM
Can you provide the code example for Delphi.  I am not sure of the DebenuPDFRendererDLL1013.dll function.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk