Is there a way to include/wrap PDF data generated from a ColdFusion template inside another ColdFusion template, or a cfdocument tag?
I'm working with a system that has generates lots of different reports, some are generated from .CFR templates, others are created by cfdocument/cfdocumentitem tags with HTML inside.
What I need to do is to add a header and a footer to every report, which should look the same everywhere.
My first idea was to create the header+footer as a separate .pdf file, adjust the scale/margins on the existing reports, and then use a DDX and a PageOverlay to merge the report with the header+footer file. However this does not work since ColdFusion does not support PageOverlay.
My second idea was to create a header and footer in HTML, then paste together header+content+footer. This works on the reports that are created from HTML but not on the ones that are created from .CFR templates, because I can't figure out a way to combine HTML code and generated PDF data in the same report. Rewriting all the reports as HTML is not an option.
Any ideas?
Which version of CF are you working with? You can now add header and footer to a PDF using CFPDF with addheader/addfooter attribute.
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7995.html
You could use ColdFusion Report Builder tool itself to generate the above using sub-reporting concept. When you say
Also the ColdFusion Report Builder tool helps to set common Header and Footer.
I think the Report Builder standard would be top down (Label & Values). Because it has a set bands for Report Header, Page Header, Column Header, Column Detail, Report Footer.
Related
I am trying to create a PDF in BIRT and I need to have bookmarks linking from a summary page to each detail page. The links work fine in the HTML preview and a similar http link works in published PDFs. However, the internal links do not work in the PDF format.
What I have tried so far is setting the bookmark property to "detail_" + row["nodeid"] and setting the hyperlink to the same. As stated, this works for the HTML preview, but not the PDF export.
The PDF has automatically generated TOC items that I would prefer to leverage off, but I don't know how to link to those.
Is there a way that I can get the PDF output to contain the required links using either bookmark properties, or the generated TOC items?
Sample PDF output (Customer data removed, alternate locations selected)
The solution to the problem lies not in the format of the bookmark/hyperlink, but in the placement of the bookmark.
The problem was, I was placing the bookmark on the row of the table I wanted to link to. Instead, the bookmark needed to be on the label in the first column of the row.
I believe the issue is that, in the HTML version, the table row is a <tr> tag, however in the PDF, the row doesn't physically exist, so there's nothing to set the bookmark on. However the label/text item exists in both versions, so the bookmark is created correctly.
I have a few documents that all look the same initially, but then have different content in the middle of the document.
Is there a way to make a base template pdf, and then tell a pdf to use it as the base and then add additional template data to the result.
i.e. like a modular class system.
I am using pdf, adobe acrobat pro DC, and its Prepare Form component.
and I am usign Itext to read the template and then populate the data into a final pdf.
please remove tag if this is not related to itext, but i wondered if there was an option within itext to pull a template and then add the contents from another template.
the answer seems to be use livecycle designer for dynamic tempaltes.
or wait for itexts new dynamic forms.
I want to create a document from an existing Word 2010 document and convert it to PDF using docx4j 3.1.0. I've built upon the sample in
https://github.com/plutext/docx4j/blob/master/src/samples/docx4j/org/docx4j/samples/ConvertOutPDF.java
The Word document already contains a header with text and an image that I do not modify in my processing. The resulting PDF document, however, doesn't contain the header.
Is this someting that is supposed to work? If yes: how can I find out what I am missing?
Yes, if you can see the header when you "save as PDF" in Word, then you should also see the header in docx4j's PDF output.
To have it fixed, we'll need to see the docx.
Just for the curious reader: the specific cause for the missing header turned out to be a wrong approach of setting page margins on the document. Instead of modifiying the existing settings via body.getSectPr().getPgMar() (or even simpler: setting it in the template right away), the code created new PageDimensions and set a new SectPtr on the body, thereby somehow overwriting or removing the header.
I have a PDF that I want to append some text to. the addFooter() that is available in CF9 would work perfectly, but I only have access to CF8.
Any one have workarounds for this feature in 8?
Thanks
Yes, even in ColdFusion 8 you can use DDX to add footers and headers to a PDF. See the specific Adobe 8 Livedocs on how to do this. I also have a couple blog posts 1 and 2 that might help. ALthough I tested on CF9, there's CF8 valid information as well. You might also want to get the almost impossible to find DDX reference. Also check out ColdFusion Jedi's 8 part series on PDF manipulation in CF8.
UPDATE (Added information below on combining text):
To take PDF1 and PDF2 and put the text on a single page in resulting PDF, the first thing that comes to mind is that you could use cfpdf with the getinfo action to get the text (if you don't already have it in a plain text or HTML format). Then you could cfoutput the text into a cfdocument element of type pdf. That way you get a new merged PDF with the contents combined.
Using the print module and tcpdf I'm trying to fix the layout of the PDF files for a specific content type. I'm messing around in the tpl.php file and can't find a way to modify individual fields. There's just the massive $print['content'] variable that contains all of the page content. So, is there a way to access each field?
Basically I want full control over how fields (their labels, data, etc) are displayed. Currently, they are displayed like inline elements, one after the other. This looks pretty ugly.
When you edit a "View" you will notice a link that says "Theme: Information" it retrieves all suggested tpl's for the whole $output and also for each of the fields.