csharp-l | | | |
nicola | |
No, I have a PDF not generated with Genexus and I want to add to it an image to use as signature. I can’t create again the pdf with genexus
Nicola Pilli
Sviluppo Software
[virgola25 Midi]
[Descrizione: Descrizione: RTS 1989 Mail]
E nicola@rtsnet.it
T 0758010260
F 0758011789
W www.rtsnet.eu
==================================================================================
Per favore pensa all'ambiente prima di stampare questa mail (o altro documento)
Please consider the environment before printing this mail (or this document)
==================================================================================
Le informazioni contenute in questa comunicazione e negli allegati sono riservate; è vietato a soggetti diversi dall'effettivo destinatario qualsiasi uso, copia, diffusione di quanto in essi contenuto, sia ai sensi dell'articolo 616 c.p., sia ai sensi e per gli effetti del T.U. sulla privacy (D.lgs 196/2003). Qualora il presente messaggio Vi fosse pervenuto per errore, dovrete provvedere alla sua immediata cancellazione dandocene notizia via e-mail all'indirizzo del mittente o all'indirizzo info@rtsnet.it
This e-mail and any attachment(s) are strictly confidential. This message must not be copied, disclosed or used by anybody other than the intended recipient(s). If you are not the intended recipient(s), please inform the sender by e-mail or send a message to info@rtsnet.it and destroy this message immediately
Da: Cesar Adolfo Falchini
Inviato: giovedì 2 luglio 2020 05:36
A: csharp-l@gxtech.com.uy
Oggetto: Re: [csharp-l] Add an image to an existing PDF
Nicola, si lo que estás necesitando es a un Reporte PDF que vos estás generando con Genexus agregarle una firma. lo que podes hacer es incorporar en forma variable la imagen con la firma al proceso y luego generar el pdf.
No se si es esto lo que estás necesitando.
Saludos
El mié., 1 jul. 2020 a las 19:51, Nicola Pilli (>) |
|
|
nicola | |
I didn’t know that the library was in Genexus, thanks. My project is in C#, I have to do the same with the corresponding code in C#, right?
Nicola Pilli
Sviluppo Software
[virgola25 Midi]
[Descrizione: Descrizione: RTS 1989 Mail]
E nicola@rtsnet.it
T 0758010260
F 0758011789
W www.rtsnet.eu
==================================================================================
Per favore pensa all'ambiente prima di stampare questa mail (o altro documento)
Please consider the environment before printing this mail (or this document)
==================================================================================
Le informazioni contenute in questa comunicazione e negli allegati sono riservate; è vietato a soggetti diversi dall'effettivo destinatario qualsiasi uso, copia, diffusione di quanto in essi contenuto, sia ai sensi dell'articolo 616 c.p., sia ai sensi e per gli effetti del T.U. sulla privacy (D.lgs 196/2003). Qualora il presente messaggio Vi fosse pervenuto per errore, dovrete provvedere alla sua immediata cancellazione dandocene notizia via e-mail all'indirizzo del mittente o all'indirizzo info@rtsnet.it
This e-mail and any attachment(s) are strictly confidential. This message must not be copied, disclosed or used by anybody other than the intended recipient(s). If you are not the intended recipient(s), please inform the sender by e-mail or send a message to info@rtsnet.it and destroy this message immediately
Da: Alberto Fernandez
Inviato: giovedì 2 luglio 2020 15:11
A: csharp-l@gxtech.com.uy
Oggetto: Re: [csharp-l] Add an image to an existing PDF
Nicola,
The itextpdf library is already included in the components of the genexus.
You must embed a java code inside.
Each line must start with the word "JAVA".
I leave you the native code.
br,
Alberto
import com.itextpdf.io.image.ImageData;
import com.itextpdf.io.image.ImageDataFactory;
import com.itextpdf.kernel.pdf.PdfDocument;
import com.itextpdf.kernel.pdf.PdfWriter;
import com.itextpdf.layout.Document;
import com.itextpdf.layout.element.Image;
public class AddingImage {
public static void main(String args[]) throws Exception {
// Creating a PdfWriter
String dest = "C:/itextExamples/addingImage.pdf";
PdfWriter writer = new PdfWriter(dest);
// Creating a PdfDocument
PdfDocument pdf = new PdfDocument(writer);
// Creating a Document
Document document = new Document(pdf);
// Creating an ImageData object
String imFile = "C:/itextExamples/logo.jpg";
ImageData data = ImageDataFactory.create(imFile);
// Creating an Image object
Image image = new Image(data);
// Adding image to the document
document.add(image);
// Closing the document
document.close();
System.out.println("Image added");
}
}
El jue., 2 jul. 2020 a las 2:59, Nicola Pilli (>) |
|
|
|
|
Back to csharp-l |
|