Print Page | Close Window

creating custom size document help...

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=2820
Printed Date: 07 Nov 25 at 9:10PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: creating custom size document help...
Posted By: ozgureffe
Subject: creating custom size document help...
Date Posted: 30 Jan 14 at 3:16PM
Hi
I couldn't see any sample about creating custom size document.
For example I want to create a new document in size of 80mm x 100mm in 300 dpi. Is that possible with QP ?

Thank you .



Replies:
Posted By: Ingo
Date Posted: 30 Jan 14 at 8:00PM
Hi ozgureffe!

Yes. What you wanna do you can do with QuickPDF.
Only to give you an idea here's a small Delphi snippet:
// . . .
QP.SetOrigin(1);           // 1 means starting at top, left
QP.SetMeasurementUnits(1); // 1 means millimeters
// . . .
if ( strformat <> '' ) then
   QP.SetPageSize(strformat)
  else
   QP.SetPageDimensions(mmwidth, mmheight);

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo




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