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
 Using TImageEnIO inside a thread with iepdf32.dll

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
dcoun Posted - Oct 08 2021 : 01:34:36
I tried to create TImageEnIO inside a thread and transform a pdf file's pages in PNG images.
I got a lot of out of resources error messages during "loadfromfilePDF" if it is inside a thread and no error in the main thread using the same code.
is it my fault or a canvas is used?

Also, can I print from inside a thread or the same problem exists?

How can I print a pdf without needing to show it in TimageEN component? Just load the file and print it.
I noticed that TImageEnIO can print a PDF's page but not in the correct size.
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 10 2021 : 18:27:00
Hi

Yes, it can.



Nigel
Xequte Software
www.imageen.com
dcoun Posted - Oct 10 2021 : 07:40:29
Can this
ieview := TImageEnView.Create( self );
be like the following?
ieview := TImageEnView.Create( nil );

and be run from a console app?
xequte Posted - Oct 09 2021 : 17:29:02
Hi

Unfortunately PDFium is not thread-safe.

You can print a PDF file as follows:

var
  ieview: TImageEnView;
begin
  // Print a PDF file non-visually
  ieview := TImageEnView.Create( self );
  ieview.PdfViewer.Enabled := True;
  ieview.IO.LoadFromFilePDF( 'D:\File.pdf' );
  ieview.PdfViewer.Print( False );
  ieview.Free();
end;


Nigel
Xequte Software
www.imageen.com