Hello
this is my problem :
When I generate a PDF for an invoice, I need to add at the end of the pdf , one page : "Terms of Sales of the company" wich is stored as an image and needs to be part of the final PDF file
So I would like to print this after the last page of the invoice.I did a break frame with an image field .But Uniface adds the header of my form which I dont want for this last page.Is there a way to do this?
Dominique
Hi Dominique,
I solved a similar issue a couple of (many!) years ago using a PDF utility to concatenate two PDF:
the dynamic one just generated from the application plus a static one saved in an application parameter.
If I remember well the PDF utility used was named PDFTK.
Hope it helps.
Gianni
Hello
this is my problem :
When I generate a PDF for an invoice, I need to add at the end of the pdf , one page : "Terms of Sales of the company" wich is stored as an image and needs to be part of the final PDF file
So I would like to print this after the last page of the invoice.I did a break frame with an image field .But Uniface adds the header of my form which I dont want for this last page.Is there a way to do this?
Dominique
Hello Dominique,
you can do this with gostscript at command line :
gswin64c.exe -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dAutoRotatePages=/none -sOutputFile=result.pdf file1.pdf file2.pdf
Hello
this is my problem :
When I generate a PDF for an invoice, I need to add at the end of the pdf , one page : "Terms of Sales of the company" wich is stored as an image and needs to be part of the final PDF file
So I would like to print this after the last page of the invoice.I did a break frame with an image field .But Uniface adds the header of my form which I dont want for this last page.Is there a way to do this?
Dominique
Philippe
I don't have the gswin64c.exe, where can I found this , is it part of a product ?
Philippe
I don't have the gswin64c.exe, where can I found this , is it part of a product ?
It's a AGPL software which be found here : https://www.ghostscript.com/download/gsdnld.html
Philippe
I don't have the gswin64c.exe, where can I found this , is it part of a product ?
need to buy licence if i want do use this part of my software.Quite expensive for just doing a merge
Philippe
I don't have the gswin64c.exe, where can I found this , is it part of a product ?
Hello Dominique,
You don't have to buy a license if you use this software as is.
AGPLv3 license is sufficient https://www.gnu.org/licenses/agpl-3.0.en.html.
A call spawn# statement from uniface do the job.
Only in the case you need a modified version of this software, you need a commercial license.
Philippe
I don't have the gswin64c.exe, where can I found this , is it part of a product ?
Thanks Philippe
just to be sure, don't need it even as a software distributor?
Hello
this is my problem :
When I generate a PDF for an invoice, I need to add at the end of the pdf , one page : "Terms of Sales of the company" wich is stored as an image and needs to be part of the final PDF file
So I would like to print this after the last page of the invoice.I did a break frame with an image field .But Uniface adds the header of my form which I dont want for this last page.Is there a way to do this?
Dominique
Haven't trided this - but -
Since this is at the of the report - when you get the -8 (end of hitlist)
on your outermost entitiy -
do the print_break for the image, but - in the header frame -
if ($status = -8)
return -1 ; this should prevent the header frame from being printed.... hopefully
endif
Hope this works.
Knut