Page 1 of 1

Integrator PDFSpoolFileService - Image Size

Posted: Thu Apr 30, 2020 1:22 am
by Joerg Hamacher
Hi,

we are converting spool files to PDF via LANSA Integrator PDFSpoolFileService.
Now we want to embed the company's letter paper design as background into the PDF.


We have both a jpg file and a pdf document available (both files are covering a complete DINA4 page). Files for 1st page and following pages differ.

What is better / easier - using an image file or a PDF for the background?
How can I embed a jpg into the PDF document as background? With SET *IMAGES? How are the correct parameter settings for x,y,width, height when I want the image to cover the whole PDF page? How is the correct JSM command for using SET *IMAGES? How can I tell the program to use another jpg or pdf for page 2?
Or should I use the PDF - how could this work with PDF as background?

Or are there some new ways to generate a PDF from a Spoolfile that I do not know of? Maybe in Visual LANSA?


Many thanks in advance,
Joerg

Re: Integrator PDFSpoolFileService - Image Size

Posted: Wed May 20, 2020 10:00 pm
by Joerg Hamacher
Hi again,

is there really no way to embed an background image into a PDF?
Neither in LANSA Integrator nor in VL?
And no working example how to do it?

I can't imagine ;)

Best regards,
Joerg

Re: Integrator PDFSpoolFileService - Image Size

Posted: Thu May 21, 2020 8:59 am
by soa
The PDF Document Service allows PDFs to be manipulated.

You would need to create a PDF from PDFSpoolFileService the use DDF Document Service to create a new PDF enclosing the initial to which you should be able to add an overlayed image/watermark which can be defined as an image in the xml file.