Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Print labels in PDF
Re: Print labels in PDF [message #1754 is a reply to message #1744] Tue, 21 October 2008 10:48 Go to previous messageGo to previous message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
Another update, I modified std.pdf.class.inc so that it doesn't split the filename if it's an image:
if ($celldata['fieldspec']['subtype']!='image'){
            	if ($this->GetStringWidth($line) > $cell_width-2.25 ) {
            		// this line is too long for current cell
            		if ($last_split > 0) {
            			// truncate current line at last split character
            			if ($char == '_') {
            				$split_point = $ix - $last_split +1;
            			} else {
            		    	$split_point = $ix - $last_split;
            			} // if
            			$line = substr($line, 0, strlen($line) - $split_point);
            			if ($char == '_') {
            				$ix = $last_split -1;
            			} else {
            		    	$ix = $last_split;
            			} // f
            		} // if
            		$celldata['line_array'][] = trim($line);
            		$line = '';
            		$last_split = 0;
            	} // if
}


OTOH, I added this code:
$text='';

on line 1048 of the same file to hide the image name.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help in New Window
Next Topic: PDF Document Margin Setup
Goto Forum:
  


Current Time: Tue Aug 06 19:32:21 EDT 2024

Total time taken to generate the page: 0.01058 seconds