Home
Analytics
Add PDF File to the Report
dudumanbog
Hello, does anybody know how to append to a report an pdf file from disk or if it is possible to do this? I am new here and I don't know were to ask. Thanks!
Find more posts tagged with
Comments
JasonW
If you are using the Report Engine API, you can call iText and probably do this.
Jason
dudumanbog
<blockquote class='ipsBlockquote' data-author="'JasonW'" data-cid="106986" data-time="1341589837" data-date="06 July 2012 - 08:50 AM"><p>
If you are using the Report Engine API, you can call iText and probably do this.<br />
<br />
Jason<br /></p></blockquote>
<br />
<br />
Yes I am using Report Engine API, but how can I use iText ?! Can you give me more details for appending an pdf file to the report?
CBR
Hi,
appending a PDF file to the report is not possible using Eclipse BIRT. What Jason meant is to create the report as a PDF file and after that merging the PDF created by the report engine API with the existing PDF that has to be appended.
To merge two PDF file using iText have look here:
http://java-x.blogspot.com/2006/11/merge-pdf-files-with-itext.html
This only works for PDF output. I don't know of a way to append the content of a PDF file to the HTML, Doc, Excel, PowerPoint,... output of the report.
dudumanbog
Hi, <br />
<br />
Thanks a lot! But if we are going to use this solution, it will be a problem with the page number & summary which is seted by the number of the components. Thank you!<br />
<br />
<blockquote class='ipsBlockquote' data-author="'cbrell'" data-cid="107057" data-time="1341906220" data-date="10 July 2012 - 12:43 AM"><p>
Hi,<br />
<br />
appending a PDF file to the report is not possible using Eclipse BIRT. What Jason meant is to create the report as a PDF file and after that merging the PDF created by the report engine API with the existing PDF that has to be appended.<br />
<br />
To merge two PDF file using iText have look here: <a class='bbc_url' href='
http://java-x.blogspot.com/2006/11/merge-pdf-files-with-itext.html'>http://java-x.blogspot.com/2006/11/merge-pdf-files-with-itext.html</a><br
/>
<br />
This only works for PDF output. I don't know of a way to append the content of a PDF file to the HTML, Doc, Excel, PowerPoint,... output of the report.<br /></p></blockquote>
CBR
Yes that's true. The only workaround would be to not set any page number in the two orginial PDF files but in the resulting merged PDF. You could manipulate the resulting pages the time you merge. You also will also run into problems if you want to use PDF bookmarks.
I would rather not merge PDF files if the user couldn't live with a very simple document.
Is it possible to rebuilt the PDF to be appended in BIRT? Seems to be some static document...correct?