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
 TImageEnView.PdfViewer.AddPage Issue Adding Multiple Pages

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 - Jan 30 2026 : 04:35:19
Hi,
In my application, I'm using the PDF Viewer to append a series of pages to a new document. I'm using another ImageEnView to open up the source document, then select specific pages and zooms then copy the IEBitmap to the new destination document. It calls the PdfViewer.AddPage( IEBitmap, Width, Height, -1, 0, True, True) with the first image and returns OK, when it is called the second time with a different image it doesn't return, this is a new black document.

I've tried the PDFPageObjects demo program, if you open a PDF, leave it on the first page, select '...Add Page' down bottom right and append the Butterfly Image to the end of the doc, it creates a new blank page at the end of the doc, but the image is inserted on the second page, if you repeat it, blank pages are appended to the end but images are inserted on second page over the top of each other. I tried the 'create from layers' and 'create from TControls' options and they caused a stack overflow adding a Path. Not sure if that is related to my non-returning issue above.

I'm using latest version 14.2.7 and IEPDF32.dll. It has worked OK on previous versions: 13.5.0.

I might try the TPDFBuilder as a temp workaround.

regards
Paul

2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 30 2026 : 16:11:41
Hi Paul

Can you email me for the latest beta to confirm our fix of this issue?


Nigel
Xequte Software
www.imageen.com
PaulF Posted - Jan 30 2026 : 06:32:36
I've managed to implement a work around in my application after adding each new page/image, save the PDF, re-open the PDF and navigate to the last page:
IEViewDocGen.PdfViewer.AddPage( LIEBmp, LPaperSize.X, LPaperSize.Y, -1, 0, True, True );
IEViewDocGen.IO.SaveToFilePDF( LExpMediaPathAbs );
IEViewDocGen.IO.ClosePDFFile;
IEViewDocGen.IO.LoadFromFilePDF( LExpMediaPathAbs );
IEViewDocGen.PdfViewer.PageIndex := IEViewDocGen.PdfViewer.PageCount-1;