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
 PDF-Creating do similiar like Mio.PrintImages
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Ralf

112 Posts

Posted - Jan 18 2017 :  02:50:50  Show Profile  Reply
Hallo,

the ImageEnMView has a function Printimages (ImageEnMView.Mio.PrintImages) to Print more than one Image on a Page. Is there s simple way to do the same for PDF-Creating?

Thanks
Ralf

xequte

38176 Posts

Posted - Jan 19 2017 :  04:19:05  Show Profile  Reply
Hi Ralf

PDF saving in ImageEn only supports a single image per page, so you would need to generate an image upon which you have drawn your multiple images, and then output that as your PDF page.

But you are probably better off to get a specialist PDF product for this.





Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Ralf

112 Posts

Posted - Jan 19 2017 :  06:33:59  Show Profile  Reply
Hi Nigel,

OK. We have wpPDF vom Julian. Short Question:
Is it possible to give ImageEn a PDFCanvas and say paint page 1,2,3,4 on it then we give him the next PDFCanvas and the Page 5... and it always paint the page on it. If yes it is very easy to do the rest.

Thanks
Ralf
Go to Top of Page

xequte

38176 Posts

Posted - Jan 19 2017 :  18:41:15  Show Profile  Reply
Hi Ralf

I don't know wPDF well, but ImageEn does not support a PDFCanvas. You would need either a TCanvas of TBitmap for ImageEn to make use of it.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Ralf

112 Posts

Posted - Jan 20 2017 :  03:34:02  Show Profile  Reply
Hi Nigel,

the PDFCanvas i only named it is still a normal Canvas. What was nice if i can only give in a Canvas and you paint on it.

Best Regards
Ralf
Go to Top of Page

xequte

38176 Posts

Posted - Jan 20 2017 :  14:36:41  Show Profile  Reply
Hi Ralf

Sorry, I'm not following. If it is a standard canvas, then you can just use normal canvas methods to paint images onto it, e.g.

http://www.imageen.com/help/TIEBitmap.DrawToCanvas.html
http://www.imageen.com/help/TIEBitmap.RenderToCanvas.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Ralf

112 Posts

Posted - Jan 23 2017 :  04:33:48  Show Profile  Reply
Hi Nigel,

well then i try again. What i want, is that i make a PDF that looks like the pages i print with TImageEnMIO.PrintImages.

In the
procedure TImageEnMIO.PrintImages(Columns: integer; Rows: integer;...
you call
procedure TImageEnMIO.PrintImagesEx(PrtCanvas: TCanvas;...

My wpPDF works like

PDFPrinter : TWPPDFPrinter;

While <images to print> do
begin
  PDFPrinter.StartPage(pageWidth, pageHeight, res, res, 0);

  pCanvas:=PDFPrinter.Canvas;

  <Print the Imges to this canvas; For example with PrintImagesEx(pCanvas, Array od IDX...>

  PDFPrinter.EndPage;
end;

What i thought i can do give my PDF Canvas in the PrintImageEX and the Information witch Images i want to print on it.

Why you give in the PrnCanvas i don't know? Inside you do Printer.NewPage to get a new page so you also can get the PrnCanvas inside as Printer.Canvas.

I think i try to make a copy of the PrintImageEx source outside your unit to change it to PrintImageExPDF.

Best regards

Ralf
Go to Top of Page

Ralf

112 Posts

Posted - Jan 23 2017 :  08:06:26  Show Profile  Reply
Hi Nigel,
i tried Printing to my PDFPrinter.Canvas (TWPPDFPrinter). To do that i have moved some procedure and functions in your source to public and it work.

One Problem at the moment is, that Julians Canvas delivers the screen width and height wenn i ask the

pagewidth := GetDeviceCaps(PDFCanvas.Handle, 8) / dpix;
pageheight := GetDeviceCaps(PDFCanvas.Handle, 10) / dpiy;

Wenn i give in the Sizes i used to create the PDF Page it work but the borders are not OK. I wait for a feedback from Julian to my support email.

One Question to you:
At the moment the Images are printed centered. We use the imaging for scanning Mails and so it would be nice, wenn the image is printed with alignment top. Is this possible? Or may be can it become a feature.

Thanks

Best Regards

Ralf
Go to Top of Page

xequte

38176 Posts

Posted - Jan 23 2017 :  20:05:55  Show Profile  Reply
Hi Ralf

Do you mean the alignment of each thumbnail within each print out should be the top?

You might want to request it on our user voice page:

https://imageen.uservoice.com/forums/187893-general

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Ralf

112 Posts

Posted - Jan 24 2017 :  03:48:05  Show Profile  Reply
Hi Nigel,

yes i want to print it at top. Our Users Scan in the most case Mail's. When they print it it is better when the printing is on Top.

Also you can use the rest of the paper better when you don't need it. Cut and write notice on it.

Best Regards

Ralf
Go to Top of Page

Ralf

112 Posts

Posted - Jan 24 2017 :  03:57:51  Show Profile  Reply
Hi Nigel,

i tried to add my topic at user voice page. I only got an error "Sorry we couldn't submit your request"

Ralf
Go to Top of Page

xequte

38176 Posts

Posted - Jan 24 2017 :  19:16:20  Show Profile  Reply
Hi Ralf

UserVoice appears to be working when I test it here...

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Ralf

112 Posts

Posted - Jan 25 2017 :  04:41:43  Show Profile  Reply
I had found the reason why it doesn't work and solved it. My idea is now online.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: