Print Page | Close Window

Proper page size

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=2998
Printed Date: 04 Apr 26 at 7:28PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Proper page size
Posted By: yli
Subject: Proper page size
Date Posted: 31 Oct 14 at 3:44PM
Hi!
Some code
-------------------------------------------------------------------
 DPL.LoadFromFile(Temp & o.FileName, "")
                    Dim numPages As Integer = DPL.PageCount()
                    DPL.SetMeasurementUnits(1)
                    For p As Integer = 1 To numPages
                        DPL.SelectPage(p)
                        Dim H = DPL.PageHeight()
                        Dim W = DPL.PageWidth()
                        Dim H1 As String = Math.Round(H)
                        Dim W1 As String = Math.Round(W)
----------------------------------------------------------------------------
I get full page size, but how to get proper page size without bleed and(or) slug? 



Replies:
Posted By: yli
Date Posted: 31 Oct 14 at 6:01PM
decision found !!!
------------------------
Dim WP = DPL.GetPageBox(5, 2)
Dim HP = DPL.GetPageBox(5, 3)
--------------------------------------



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