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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEPaperSizeToPoints Landscape Issue

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
PaulF Posted - Sep 06 2024 : 03:11:38
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 07 2024 : 00:34:36
Thank you for the report, Paul,

We have fixed this in the latest beta.

Nigel
Xequte Software
www.imageen.com