Page 1 of 1
Problem using PXCV_GetPageDimensions
Posted: Wed May 27, 2009 2:53 pm
by wesallen
I am trying to use VB to get the dimensions of an existing PDF document. I have tried several things and keep getting an error, can't find dll entry point. Below is what I have tried, what am I missing?
Public Declare Function PXCV_GetPageDimensions Lib "xcpro35" (ByVal prtdoc As Long, ByVal page_num As Long, ByRef pdfwidth As Double, ByRef pdfheight As Double) As Long
res = PXCV_GetPageDimensions(ptrpdf, 0, pdfwidth, pdfheight)
Re: Problem using PXCV_GetPageDimensions
Posted: Thu May 28, 2009 1:26 am
by John - Tracker Supp
Hi,
OOps - your post has been passed by because the developer responsible for this forum is the PDF-Tools SDK dev and your question relates to the Simple DLL Viewer ...
Please post in the correct forum to ensure the speediest reply possible, will move and ensure it is answered as soon as possible.
Re: Problem using PXCV_GetPageDimensions
Posted: Thu May 28, 2009 6:25 am
by Lzcat - Tracker Supp
wesallen wrote:Public Declare Function PXCV_GetPageDimensions Lib "xcpro35" (ByVal prtdoc As Long, ByVal page_num As Long, ByRef pdfwidth As Double, ByRef pdfheight As Double) As Long
This is the expected behaviour -
xcpro35 does not contain the
PXCV_GetPageDimensions function.
The Correct library name is
pxcview the Correct declaration is
Public Declare Function PXCV_GetPageDimensions Lib "pxcview" (ByVal Doc As Long, ByVal page_num As Long, ByRef width As Double, ByRef height As Double) As Long
This can be found in the provided VB sample (along with all others).
HTH