Forum How do I...?

How to increase font size(using prince-shrink-to-fit : auto)

spatnaik
Hello

I have a pdf with a wide table containing about 31 columns.

I am using a css file to format this pdf and to print it on a page. My css file looks as follows -

@CHARSET "ISO-8859-1";

@page {
   size: US-Legal landscape;
   margin-left: 1cm;
   margin-right: 1cm;
   margin-top: 1cm;
   margin-bottom: 1cm;
   padding: 0;
   prince-shrink-to-fit: auto;
   	@bottom-center {
		content: counter(page);
		text-align: center;
		vertical-align: top;
		padding-top: 2em;
	} 
	@bottom-right-corner {
		content: $date;
		text-align: right;
	}
}

.custom-td {
	height:100px;
	width: 80px;
	line-height: 100%;
	overflow: visible;
   	page-break-inside: avoid;
}

.custom-font {
	font-family: sans-serif;
	font-size: larger;
	font-weight: bolder;
}

.iss-font {
	font-family: sans-serif;
	font-stretch: narrower;
	font-weight:bold;
	line-height: 80%;
}


Using prince-shrink-to-fit: auto gets my whole table into my pdf(which is what I want) but makes the font illegible(which is not what I want). Nothing is readable when this pdf is printed out. Using iss-font class to stylise the text does not help.

Can you suggest any workaround for this?

I appreciate any help or suggestion.
Thanks,
Smita
mikeday
Try increasing the font size? Ultimately though, if the table is too wide for a landscape page it is going to be difficult to fit it all in without making the text ridiculously small.