Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Output pdf

French message :
Bonjour, Je suis à la recherche d'un système me permettant de convertir un fichier xml ou html en pdf. Sachant que la récupération de ces fichiers se fera avec talend, il aurait été trés agréable de lui faire faire la convertion.
Etant un format de distribution trés répendu, je suis étonnée qu'il n'ait pas fait l'objet d'un composant.
Cela viendrait des droits du format ?
Wikipedia définition du PDF : PDF est un format ouvert, c?est-à-dire que son créateur Adobe Systems autorise des programmes tiers à réutiliser son format.
Il se réserve cependant la propriété de nombreux brevets déposés, et donc le droit de demander des redevances. Il reste très tolérant à ce sujet : en effet, les spécifications sont publiques et utilisables librement (certains éléments sont à disposition sur le site Adobe) et gratuitement (à l'exception de quelques très importantes sociétés commerciales auxquelles Adobe demande alors une participation financière).

Es-ce que quelqu'un a en projet un tel composant ? Est-il envisageable avec les droits du PDF qu'un tel composant existe?
English translantion : (try 0683p000009MAB6.png)
Hello ^^
I search an output component who convert data to pdf format. (i will extract html or xml files with talend and i would convert them)
Could this component be create ? I know, despite PDF format is open but not free, Adobe gives specifications free.
I hope this was comprehensible ^^, it's a long time I don't speak english.
Labels (4)
5 Replies
Anonymous
Not applicable
Author

Hello,
Did you try tFileOutputPDF?
http://www.talendforge.org/ext/extension_view.php?eid=33
JC
Anonymous
Not applicable
Author

I should buy some eyes, I didn't find this component ^^!
I'm not an efficent girl it seems.
I don't look in ecosystem, juste in components, sory sory, I'll try this.
Thanks.
Anonymous
Not applicable
Author

Don't be sorry, I am happy to help people!
Anonymous
Not applicable
Author

Merge two CSV files on PK(Product_Id) and O/P's in PDF format.
Steps:
1: Add component t_Java.
0683p000009MCia.png
2)
Basic Settings:
           
           /* Step -1 : Read input CSV file in Java */
           String inputCSVFile =context.FileOutPutLocation 
           +"/"+context.OutPutFileName+".csv";
           CSVReader reader = new CSVReader(new FileReader(inputCSVFile));
           /* Variables to loop through the CSV File */
           String [] nextLine; /* for every line in the file */            
           int lnNum = 0; /* line number */
           /* Step-2: Initialize PDF documents - logical objects */
           Document my_pdf_data = new Document();
           PdfWriter.getInstance(my_pdf_data, new FileOutputStream(context.FileOutPutLocation +"/" +context.OutPutFileName+".pdf"));
           my_pdf_data.open();            
           String[] header = reader.readNext();
           int hLen = header.length;
           PdfPTable my_first_table = new PdfPTable(hLen);
           PdfPCell table_cell;
           /* Step -3: Loop through CSV file and populate data to PDF table */
          for(int j=0; j<hLen; j++){
          table_cell=new PdfPCell(new Phrase(header<J>));
           
            my_first_table.addCell(table_cell);
          }
while ((nextLine = reader.readNext()) != null) {
lnNum++;
for (int j = 0; j < hLen; j++) {
table_cell = new PdfPCell(new Phrase(nextLine<J>));
my_first_table.addCell(table_cell);
}
}
           /* Step -4: Attach table to PDF and close the document */
           my_pdf_data.add(my_first_table);                       
           my_pdf_data.close();            
    
3)Advance Settings:
 import java.io.FileOutputStream;
 import java.io.FileReader;
 import au.com.bytecode.opencsv.CSVReader;
 import com.itextpdf.text.Document;
 import com.itextpdf.text.Phrase;
 import com.itextpdf.text.pdf.PdfPCell;
 import com.itextpdf.text.pdf.PdfPTable;
 import com.itextpdf.text.pdf.PdfWriter;
4)Exteranal JAR Imports:
0683p000009MCUo.png


Run the Job:
0683p000009MCAn.png
0683p000009MCcO.png

OutPut:
0683p000009MCif.png

I/P:
Product:
Product_ID Product_Name
1 name1
2 name2
3 name3
4 name4
5 name5
6 name6
7 name7
8 name8
9 name9
10 name10

Fact:
Product_ID Metric
1 100
2 200
3 345
4 1234
5 345
6 678
7 1256
8 4567
9 25
10 23
Regards,
Ram Pasupula.
Anonymous
Not applicable
Author

Hi Ram0374,
What's the error you are facing? For input string "Product_ID"?
Could you please elaborate your case with an example with input and expected output values?
Have you tried to use tFileOutputPDF?

Best regards
Sabrina