Hi,
I'm using continuous (ShowAllPages) PDF document mode to show the bottom of one page and the top of the following page. I then want to take a snapshot of what is presented.
I sync the PDF viewer to the Bitmap, then use DrawToTIEBitmap to draw the screenshot to another IEBitmap which I can show and save to file.
Unfortunately it only captures the bottom of the first page, the top of the following page is blank see attached image. Is there another way of capturing what is presented?
regards
Paul
ImageEnView.PdfViewer.SyncToBitmap;
IEBmpSnapshot := TIEBitmap.Create;
IEBmpSnapshot.ParamsEnabled := True;
IEBmpSnapshot.PixelFormat := ie24RGB;
IEBmpSnapshot.Width := IERectangle(imageenview.VisibleBitmapRect).Width;
IEBmpSnapshot.Height := IERectangle(imageenview.VisibleBitmapRect).Height;
{ Check if contains any annotation layers that should be in the snapshot. }
if imageenview.LayersCount > 1 then
begin
imageenview.LayersSaveMergedTo(IEBmpSnapshot);
end { if layers }
else
begin
imageenview.IEBitmap.DrawToTIEBitmap(IEBmpSnapshot, 0, 0,
IERectangle(imageenview.VisibleBitmapRect));
end; { if not layers }