Print Page | Close Window

SetFormFieldRotation

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=3562
Printed Date: 25 Apr 24 at 1:18AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: SetFormFieldRotation
Posted By: geonetwork
Subject: SetFormFieldRotation
Date Posted: 15 May 18 at 2:48PM
SetFormFieldRotation since version 13 has a strange behavior. Compiling the code below with version 13, 14 or 15, the rotated field is displayed incorrectly (in version 12 this problem was not present).

The problem exists with Acrobat Reader DC and with other versions of Adobe, but not with FoxIt Reader

QP.SetMeasurementUnits(1);
for i:=0 to 13 do aFont:=QP.AddStandardFont(i);
nDoc:=QP.SelectedDocument;
QP.SelectDocument(nDoc);
QP.SetOrigin(0);
// 90° VERTICAL FIELD
nFieldIndex:=QP.NewFormField('FIELD1',1);
QP.SetFormFieldFont(nFieldIndex,aFont[3]);
QP.SetFormFieldTextSize(nFieldIndex,10);
QP.SetFormFieldValue(nFieldIndex,'TEXT');
QP.SetFormFieldBounds(nFieldIndex,10,270,5,100);
QP.SetFormFieldRotation(nFieldIndex,90);
QP.SaveToFile('test.pdf');

http://geonetwork.biz/tmp/deb/screenshot.jpg" rel="nofollow - See this image



Replies:
Posted By: geonetwork
Date Posted: 13 Jun 18 at 3:27PM
WorkAround in version 13 or above: 
QP.SetNeedAppearances(1)



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