creating an image of cfdump

I want to list the <cfdump for a page and create the image of the same, how can i do, it, please guide

i mean create the image of cfdump
LVL 16
Gurpreet Singh RandhawaCEOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SidFishesCommented:
It's not the best solution but it works

<cfsavecontent variable="src">
<cfdump var="#dumpsrc#" > 
</cfsavecontent>

<cfdocument format="pdf" name="img"  >
      <cfoutput>#src#</cfoutput>
</cfdocument>
<cfpdf action = "thumbnail" source = "img" destination = "test\" format = "jpeg" overwrite = "yes" resolution= "high" scale = "100">
<img src="test/thumbnail_page_1.jpg">
Gurpreet Singh RandhawaCEOAuthor Commented:
for sure, but for this

<cfpdf action = "thumbnail" source = "img" destination = "test\" format = "jpeg" overwrite = "yes" resolution= "high" scale = "100">
<img src="test/thumbnail_page_1.jpg">

i want to save the generated file in a folder and then read it and attach it in email inline

and the height width should be enough to handle the cfdump properly and without any breaking border
SidFishesCommented:
You aren't going to be able to have as much control over this as it sounds like you want - the code already creates a file in a folder (test) I've changed it slightly and added a pseudo cfmail to show you how to mail it. There is no way to control the naming of the file automatically afaik

There's also no real good way of controlling size - basically it's going to be a 8x11in image

<cfsavecontent variable="src">
<cfdump var="#tempqry#" > 
</cfsavecontent>

<cfdocument format="pdf" name="img" pageheight="4" pagewidth="4" >
      <cfoutput>#src#</cfoutput>
</cfdocument>
<cfpdf action = "thumbnail" source = "img" destination = "debugImages\" format = "jpeg" overwrite = "yes" resolution= "high" scale = "100" >

<cfmail ....>
      
Here's the debug info      
<img src="debugImages/thumbnail_page_1.jpg">
</cfmail>  

As I said this is not optimal but I believe it's the only way to do it in CF - cfdump was never meant for this kind of thing. You may not be able to get where you want with this


CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

Gurpreet Singh RandhawaCEOAuthor Commented:
got this error

The attribute source specified in the CFPDF tag is either empty or invalid.
SidFishesCommented:
works for me -


can you post your code
Gurpreet Singh RandhawaCEOAuthor Commented:
umm, i cannot post code, unfortunately i switched to cfdocument to put all the dump in pdf and attach it, an alternative way, but seriously i want to try it because in future i may have to change it how it works

So if you can try it on ur server or something i can do on my side, let me know

thanks

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gurpreet Singh RandhawaCEOAuthor Commented:
apparently cfpdf did not worked for me, do not know what was wrong, so used cfdocument instead
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.