PXCp_TransformPage

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

Thoni
User
Posts: 12
Joined: Tue Aug 26, 2008 11:46 am

PXCp_TransformPage

Post by Thoni »

Hello again.

I must scale a ready pdf to aprox. 85%.
In the documentation i found a function PXCp_TransformPage to do this.

In Delphi the function is not declared in the unit PXCPro_40, nor the param LPCPXC_Matrix

Why? And can i have the declaration?
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: PXCp_TransformPage

Post by Lzcat - Tracker Supp »

Actually LPCPXC_Matrix is almost same as LPPXC_Matrix (pointer to PXC_Matrix structure), only one difference is that LPCPXC_Matrix may points to constant matrix. In genereal almost all LPC... declarations can be replaced with corresponding LP... declarations.
Here is PXCp_TransformPage declaration:

Code: Select all

function PXCp_TransformPage(pDocument: hPDF; PageNumber: DWORD; matrix: LPPXC_Matrix; flags: DWORD): HRESULT; stdcall;external xcprolib;
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Thoni
User
Posts: 12
Joined: Tue Aug 26, 2008 11:46 am

Re: PXCp_TransformPage

Post by Thoni »

thanks. i will give it a try
Thoni
User
Posts: 12
Joined: Tue Aug 26, 2008 11:46 am

Re: PXCp_TransformPage

Post by Thoni »

Ok. Works :)

Thanks
User avatar
John - Tracker Supp
Site Admin
Posts: 5225
Joined: Tue Jun 29, 2004 10:34 am

Re: PXCp_TransformPage

Post by John - Tracker Supp »

Excellent.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
elponcho99
User
Posts: 1
Joined: Mon Jun 11, 2012 9:16 pm

Re: PXCp_TransformPage

Post by elponcho99 »

Hello!

Do you have the declaration statement for the PXCp_TransformPage function to use it on VB6?

Thanks in advance.
Nico - Tracker Supp
User
Posts: 205
Joined: Fri May 18, 2012 8:41 pm

Re: PXCp_TransformPage

Post by Nico - Tracker Supp »

Hello elponcho99,

The VB6.0 declaration for PXCp_TransformPage follows:

Code: Select all

Public Declare Function PXCp_TransformPage Lib "xcpro40" (ByVal Doc As Long, ByVal PageNumber As Long, ByRef Matrix As PXC_Matrix, ByVal flags As Long) As Long