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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - PDF Width/Height are wrong
  FAQ FAQ  Forum Search   Register Register  Login Login

PDF Width/Height are wrong

 Post Reply Post Reply
Author
Message
FKirch View Drop Down
Team Player
Team Player
Avatar

Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote FKirch Quote  Post ReplyReply Direct Link To This Post Topic: PDF Width/Height are wrong
    Posted: 11 Dec 08 at 12:35PM
Hi to all,
 
can anybody tell me why quickpdf returns pagewidth/pageheight different to the values returned by acrobat reader?
 
This is my sourcecode:
 

procedure TForm1.Button3Click(Sender: TObject);
var
  Q    : TisedQuickPDF;
begin
  Q    := TisedQuickPDF.Create;
  Q.UnlockKey('...');
  Q.LoadFromFile('567153.PDF');
  Q.SetMeasurementUnits(1);
  ShowMessage(Format('Width: %-3.2fmm',[Q.PageWidth])+' '+
              Format('Height: %-3.2fmm',[Q.PageHeight]));
end;
 
Thankx for your help...
 
By the way: How can I upload my file?
 
 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 11 Dec 08 at 2:46PM
Hi Fritz,
 
you can't upload a file here. Perhaps you have anywhere own online-place for the file?
Normally (what's that?) the dimensions should be the same. Perhaps you set it in QuickPDF to unit millimeters and in acrobat there are pixels? Perhaps there are different pages?
What are the dimensions from acrobat and what are the dimensions from QuickPDF? Perhaps seeing both can give an answer already?
 
Cheers, Ingo
 
Back to Top
FKirch View Drop Down
Team Player
Team Player
Avatar

Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote FKirch Quote  Post ReplyReply Direct Link To This Post Posted: 12 Dec 08 at 1:37AM
Hallo Ingo,
 
ich sehe hier nirgends einen UPLOAD-Button. Wie soll ich das PDF hochladen? Ich habe leider keinen WebSpace.
 
Hi Ingo,
I see no UPLOAD-Button. How to do uploading a file in this forum?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 12 Dec 08 at 1:56AM
Hi Fritz!

We don't have an upload-button here. Sorry.
But you can send the file to me and if i won't find an explanation by myself i would upload it in my webspace.

Cheers, Ingo

Back to Top
ukobsa View Drop Down
Senior Member
Senior Member


Joined: 29 May 06
Location: Germany
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote ukobsa Quote  Post ReplyReply Direct Link To This Post Posted: 12 Dec 08 at 3:14AM
Hi,

most probably it is a problem with the combinations of Media, Crop, Trim etc. Box. Can you use GetPageBox and post all dimensions for the different box types?

best regards,
Uli


Edited by ukobsa - 12 Dec 08 at 3:15AM
Back to Top
FKirch View Drop Down
Team Player
Team Player
Avatar

Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote FKirch Quote  Post ReplyReply Direct Link To This Post Posted: 12 Dec 08 at 11:00AM
Hi,
 
at the moment the problem is fixed by:
 

procedure TForm1.Button3Click(Sender: TObject);
var
  Q    : TisedQuickPDF;
begin
  Q    := TisedQuickPDF.Create;
  Q.UnlockKey('...');
  Q.LoadFromFile('567153.PDF');
  Q.SetMeasurementUnits(1);
 
if Q.HasPageBox(2) then
  ShowMessage(Format('Width: %-3.2fmm',[Q.GetPageBox(2,2)])+' '+
              Format('Height: %-3.2fmm',[Q.GetPageBox(2,3)]))
else
  ShowMessage(Format('Width: %-3.2fmm',[Q.PageWidth])+' '+
              Format('Height: %-3.2fmm',[Q.PageHeight]));
end;
 
Is this the correct way to retrieve the page dimensions?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store