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 - SetFormFieldCheckStyle bug
  FAQ FAQ  Forum Search   Register Register  Login Login

SetFormFieldCheckStyle bug

 Post Reply Post Reply
Author
Message
geonetwork View Drop Down
Team Player
Team Player
Avatar

Joined: 12 Mar 07
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote geonetwork Quote  Post ReplyReply Direct Link To This Post Topic: SetFormFieldCheckStyle bug
    Posted: 08 Jun 18 at 11:06AM
Another strange different behavior (imho another bug) from version 12 to 15: if you put the SetFormFieldCheckStyle instruction before SetFormFieldBound check fields will not be printed (see 1.jpeg). If you invert the instructions you will have the correct print (2.jpeg)

var
  QP: TDebenuPDFLibrary;
  nFieldIndex: integer;
  i,n: integer;
begin
  QP:=TDebenuPDFLibrary.Create;
  try
    QP.UnlockKey('xxx');
    QP.SetOrigin(1);
    QP.SetMeasurementUnits(1); // mm.
    QP.SetPageDimensions(210, 297); // A4
    QP.SelectPage(n);
    QP.AddFormFont(QP.GetFontID(4));
    QP.SetTextSize(10);
    for i:=1 to 3 do begin
      nFieldIndex:=QP.NewFormField('FIELD'+IntToStr(i),3);
      QP.SetFormFieldCheckStyle(nFieldIndex,0,1); // <- if you put this instruction here pdf printed haven't the cross (1.JPEG)
      QP.SetFormFieldBounds(nFieldIndex,40,46+(i-1)*15,5,5);
      // QP.SetFormFieldCheckStyle(nFieldIndex,0,1); // <- if you put this instruction here pdf printed have the cross (2.JPEG)
    end;
    QP.SaveToFile('c:\temp\output.PDF');
    ShellExecute(self.Handle,'open','c:\temp\output.PDF','','',SW_SHOWMAXIMIZED);
  finally
    QP.Free;
  end;
end;

1.JPEG


2.JPEG





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

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 08 Jun 18 at 8:01PM
Why you're posting errors here?
Here's nobody to change them ;-)
BTW: Good for the users here getting you're work around. Thanks for it.

Cheers,
Ingo

Back to Top
geonetwork View Drop Down
Team Player
Team Player
Avatar

Joined: 12 Mar 07
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote geonetwork Quote  Post ReplyReply Direct Link To This Post Posted: 13 Jun 18 at 3:27PM
WorkAround in version 13 or above:
QP.SetNeedAppearances(1)
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