Does anyone else deal with this problem or know a solution / workaround that I could try as I run out of ideas ?: - (
I run this code on ColdFusion 9 - the idea is that it creates a PDF page (front cover for the report), applies a watermark (the design that gave me the orange background that I put in my content on) and saves it for use later on the page.
The problem I encountered, firstly, I needed to include backgroundvisible in the cfdocument tag. The reason for this is that I kept getting this white square, showing on top of my created page. When I do this, although cfdocument, I ignore any font color changes that I make.
I tried all kinds of combinations, trying to get this, including styles, classes. internal / external CSS files, but each time ColdFusion is black by default.
Does anyone have any suggestions on what I can do to show this in white?
<cfdocument format="pdf" marginbottom="0" marginleft="0.77" marginright="0" margintop="5" pageType="A4" unit="in" name="cover" backgroundvisible="false">
<cfoutput>
<html>
<head>
</head>
<body style="color:##fff">
here
</body>
</html>
</cfoutput>
</cfdocument>
<cfpdf action="addWatermark" copyFrom="#coverFile#" source="cover" foreground="false" opacity="10" showonprint="true" />
<cfpdf action="write" destination='#PDFDir##frontCoverFile#' source="cover" overwrite="true" />
Thanks a lot James
PS It is possible that the workaround is to use CFIMAGE to create it, and then place it on the page instead. I would not want: - (
source
share