Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - FlattenAnnot still opaque in v10.13
  FAQ FAQ  Forum Search   Register Register  Login Login

FlattenAnnot still opaque in v10.13

 Post Reply Post Reply
Author
Message
kk aw View Drop Down
Team Player
Team Player
Avatar

Joined: 02 Feb 10
Location: Malaysia
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote kk aw Quote  Post ReplyReply Direct Link To This Post Topic: FlattenAnnot still opaque in v10.13
    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; 


Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
kk aw View Drop Down
Team Player
Team Player
Avatar

Joined: 02 Feb 10
Location: Malaysia
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote kk aw Quote  Post ReplyReply Direct Link To This Post Posted: 28 Mar 14 at 7:30AM
Can you provide the code example for Delphi.  I am not sure of the DebenuPDFRendererDLL1013.dll function.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store