ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEPaperSizeToPoints Landscape Issue
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PaulF

United Kingdom
9 Posts

Posted - Sep 06 2024 :  03:11:38  Show Profile  Reply
Hi,
sorry think I may have found a bug. I'm calling PdfViewer.AddPage( IEBitMap, TIOPDFPaperSize.iepA4, TIEPageLayout.ielLandscape...... and the page stayed as portrait.
Had a look at IEPaperSizeToPoints in iepdf.pas and the function exits before reaching the layout check, I think it should be a break call not an exit call.


  Result := Point( 0, 0 );
  for I := Low(IOPDFPaperSizes) to High(IOPDFPaperSizes) do
    if IOPDFPaperSizes[I].Size = Size then
    begin
      Result.X := IOPDFPaperSizes[I].Width;
      Result.Y := IOPDFPaperSizes[I].Height;
      exit;    
    end;
  if Layout = ielLandscape then
    IESwap( Result.X, Result.Y );


regards
Paul

xequte

38529 Posts

Posted - Sep 07 2024 :  00:34:36  Show Profile  Reply
Thank you for the report, Paul,

We have fixed this in the latest beta.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: