coldfusion-9

CFPDF add watermark any level of transparency is coming out opaque

喜夏-厌秋 提交于 2021-01-29 02:10:21
问题 When I watermark a pdf onto another pdf any semi-transparency in the watermark PDF is made completely opaque. Is there anything I can do about this or is this a limitation of CFPDF? Server is CF9 with latest hotfixes. Fun bit, when chrome renders the final product the transparency is preserved, but when Acrobat Pro renders it it's opaque. I can print the final product to AdobePDF and it's accurately transparent, but I don't get a consistent page size to send through our print shop which is a

CFDocument PDF not showing Japanese data

折月煮酒 提交于 2021-01-28 21:06:09
问题 I have created a pdf with Japanese content using CFDocument. But It does not showing the Japanese data. I have used pageEncoding as utf-8. It showing only blank space instead of Japanese data. I have used the following code, <cfcontent type="application/pdf"> <cfheader name="Content-Disposition" value="attachment;filename=test.pdf"> <cfprocessingdirective pageencoding="utf-8"> <cfdocument format="PDF" localurl="yes" marginTop=".25" marginLeft=".25" marginRight=".25" marginBottom=".25"

Google calendar add by URL requirements

孤街浪徒 提交于 2021-01-27 03:55:21
问题 I am trying to add a Google calendar through the add by URL method. I receive a generic error of "Failed to add imported calendar at 'my URL' for 'my username' " from Google calendar. The URL I'm adding to Google calls a Restful service that sends back a .ics file. I am able to validate my URL here: http://severinghaus.org/projects/icv/ and here: http://icalvalid.cloudapp.net/ What is it that Google calendar is expecting to receive that I am missing? These are the contents of the .ics file I

ColdFusion: cfspreadsheet localized date format

≯℡__Kan透↙ 提交于 2020-06-14 07:56:05
问题 My question is basically the same as this one, but I'm not in a position to change the date format in the Excel file: If I format the cell as date english (NZ), ie Date Type "*14/03/2001", it displays right in the spreadsheet, but when I try to upload it switched the day and month. But If I change the format to a custom "dd/mm/yyyy" format [it works fine]. So the question is this: Can I change the way <cfspreadsheet /> handles date formats? Or even better, get a Date object directly from the

SerializeJSON doesn't encode UTF8 characters in ColdFusion 9

我的梦境 提交于 2020-01-28 10:39:23
问题 I'm having some issues with ColdFusion and JSON. My users have filenames and other key words with characters like ç in them which is causing me a pain when I have to pass them back via JSON. When I use the magic JSON command on my variable: <cfcontent type="application/json"> <cfset variables.stGalleryItem = StructNew() /> <cfset variables.stGalleryItem["imagePath"] = siteRoot & '/images/350460/hellç.txt' /> <cfset variables.stGalleryItem["title"] = 'çççç' /> <cfset variables.stGalleryItem[

QueryNew() Data Types in CF9

元气小坏坏 提交于 2020-01-24 15:08:14
问题 I have taken over a system that is on a production server that is running CF9.0.1 and I cannot find a copy of that in the developer's edition, so I am running CF10. I am exporting data from the database to Excel. Because the data comes from multiple datasources, the results are manually entered into a query that is then used to output to Excel. One of my first problems to solve was that, because Excel automatically types data, wierd things were happening like trailing zeros being dropped,

How do I fix SpreadSheetAddRows function crashing when adding a large query?

守給你的承諾、 提交于 2020-01-22 19:40:33
问题 EDIT3: Thanks to the help of @Leigh I've narrowed down the problem to the date columns in the query. Using the original code set and POI, the page crashes when SpreadSheetAddRows() attempts to add a very large query that contains date-like cells. I've made a bug report here: https://bugbase.adobe.com/index.cfm?event=bug&id=3432184. I have a query that I am adding to a spreadhseet object that seems to error when the query has an unweildly amount of rows (18583 in this example). The exact error

How do I fix SpreadSheetAddRows function crashing when adding a large query?

99封情书 提交于 2020-01-22 19:39:47
问题 EDIT3: Thanks to the help of @Leigh I've narrowed down the problem to the date columns in the query. Using the original code set and POI, the page crashes when SpreadSheetAddRows() attempts to add a very large query that contains date-like cells. I've made a bug report here: https://bugbase.adobe.com/index.cfm?event=bug&id=3432184. I have a query that I am adding to a spreadhseet object that seems to error when the query has an unweildly amount of rows (18583 in this example). The exact error

cfxml vs cfsavecontent - unable to build xml using cfxml

杀马特。学长 韩版系。学妹 提交于 2020-01-16 01:07:33
问题 I'm trying build a custom XML file and splitting the building into separate functions, but I'm having trouble doing this with cfxml. This example is obviously simplified. This works fine: <cfcomponent accessors="true"> <cfproperty name="Name" /> <cfproperty name="Model" /> <cfproperty name="Make" /> <cffunction name="BuildCarXML" output="false"> <cfsavecontent variable="xmlCar"> <cfoutput> <?xml version="1.0" encoding="UTF-8" ?> <car> <name>#variables.Name#</name> #AddMakeElement()# </car> <