Solved

CFdocumnet font issue

Posted on 2008-10-13
5
39 Views
Last Modified: 2016-05-14
Hi all,
          I am using cf8 for my site. I tried to create a PDF report by using cfdocumnet tag and its content is dynamic. If the page number is less, that is one or two, its font is correct. But if the number of pages increases, the font becoming smaller....Can any one help me?
0
Comment
Question by:Digitalmesh
  • 3
5 Comments
 
LVL 39

Expert Comment

by:gdemaria
ID: 22844099
Each page auto-sizes depending on the amount of content.  It will scale down to fit bigger content and give you a smaller font size.  Check to make sure that your content can fit in the same amount of space on each page.  
0
 
LVL 1

Expert Comment

by:sir-fal
ID: 33324095
You can just specify an absolute font-size using CSS try adding the following after your <cfdocumentsection> and of course remember to include a <body> tag-set in the document.


<style type="text/css" media="all">
  body { font-size: 11pt; font-family: arial; }
</style>

Open in new window

0
 
LVL 39

Accepted Solution

by:
gdemaria earned 500 total points
ID: 33325186
Even if you specify the font-size (which I assume you're already doing) cfdocument can auto-size or shrink the page if the other content is too large.  For example, you may have an image or a table or perhaps just the width of the page is too big, then cfdocument will shrink everything to fit.

0
 

Expert Comment

by:EE_AutoDeleter
ID: 41594764
I've requested that this question be deleted for the following reason:

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Not enough information to confirm an answer.

If you feel this question should be closed differently, post an objection and a moderator will read all objections and then close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Experts-Exchange Auto Deleter
0
 
LVL 39

Expert Comment

by:gdemaria
ID: 41594765
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now