Author |
Topic |
|
Ralf
112 Posts |
Posted - Jan 18 2017 : 02:50:50
|
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
|
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
|
|
|
Ralf
112 Posts |
Posted - Jan 19 2017 : 06:33:59
|
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 |
|
|
xequte
38176 Posts |
Posted - Jan 19 2017 : 18:41:15
|
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
|
|
|
Ralf
112 Posts |
Posted - Jan 20 2017 : 03:34:02
|
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 |
|
|
xequte
38176 Posts |
|
Ralf
112 Posts |
Posted - Jan 23 2017 : 04:33:48
|
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 |
|
|
Ralf
112 Posts |
Posted - Jan 23 2017 : 08:06:26
|
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 |
|
|
xequte
38176 Posts |
|
Ralf
112 Posts |
Posted - Jan 24 2017 : 03:48:05
|
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 |
|
|
Ralf
112 Posts |
Posted - Jan 24 2017 : 03:57:51
|
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 |
|
|
xequte
38176 Posts |
|
Ralf
112 Posts |
Posted - Jan 25 2017 : 04:41:43
|
I had found the reason why it doesn't work and solved it. My idea is now online. |
|
|
|
Topic |
|