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!
Page numbering |
Post Reply |
Author | |
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 453 |
Post Options
Thanks(0)
Posted: 15 Jun 15 at 2:03AM |
On AutoIt forum some member ask me about page numbering.
Here is example: Func _QPDF_PageEnumerator(ByRef $oQP, $sFormat = 'Page %d of %d') Local $iX = 0 Local $iY = $__eQPDF_A4_HeightInMM - 30 Local $iCounter = $oQP.PageCount() Local $sText = '' Local $iTextWidth = 0 For $iPage = 1 To $iCounter $oQP.SelectPage($iPage) $oQP.SetOrigin($__eQPDF_SORIGIN_TopLeft); $oQP.SetMeasurementUnits($__eQPDF_MUNITS_Milimeters) $sText = StringFormat($sFormat, $iPage, $iCounter) $iTextWidth = $oQP.GetTextWidth($sText) $iX = $__eQPDF_A4_WidthInMM - $iTextWidth - 10 $oQP.SetTextSize(5) $oQP.DrawText($iX, $iY, $sText) Next EndFunc ;==>_QPDF_PageEnumerator
Edited by mLipok - 15 Jun 15 at 2:10AM |
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store