Dear All
I have developed a lease management System.
I have stored 4000+ Lease agreements and purchase orders.
Folders Structure
Main Folder : LAPO
Subfolders: North , Center , South
Subfolders : 1245 , 9867 like these (numeric)
In each numeric folder there are 2 files
LA.pdf and PO.Pdf
How I can print them all

I can clarify my problem
Please give me some hint how to print PDF DOcument using PDF.

I can clarify my problem
Please give me some hint how to print PDF DOcument using PDF.

look for some javascript -

window.print()

how i can print pdf files without opening

Is it possible to print PDF Files using PHP?
any Idea
If file is placed in Drive D name LA.pdf without opening.

Is it possible to print PDF Files using PHP?
any Idea
If file is placed in Drive D name LA.pdf without opening.

Is it possible to print PDF Files using PHP?
any Idea
If file is placed in Drive D name LA.pdf without opening.

use

print_open()

if you know the name of your printer put it inside this or else it will try to connect to the default printer.

Do some function like below -

function printIssue()
{
	$your_printer_name = "EPSON LX-300";
	$handle=printer_open($your_printer_name);
//set the font characteristics here
	$font_face = "Draft Condensed";
	$font_height = 20;
	$font_width = 6;
$font=printer_create_font($font_face,$font_height,$font_width,PRINTER_FW_THIN,false,false,false,0);
printer_select_font($handle,$font);

printer_write($handle,"My PDF file content below");
//here loop through your pdf file and print the line by line or else get the entire content inside the string at once and print
$your_pdf_file = "somethng.pdf";

	if(!eof($file_handle))
	{
		//do something
		printer_write($handle,$name);
	}
	printer_delete_font($font);
	printer_close($handle);
}

thanks for your reply
above function looks functional for pdf containing text. In my case, pdf contain the images can you modify the function for a image containing pdf

thanks in advance

thanks for your reply
above function looks functional for pdf containing text. In my case, pdf contain the images can you modify the function for a image containing pdf

thanks in advance

You getting some errors with the code, if so post your modified code here and those errors.
We can deal with them one by one.

this code is not working for me me knidly help i want to print multiple pdf files using php_printer.dll and php?

Thanks!

$handle = printer_open("\\\\server\Brother MFC-J430W Printer");

printer_start_doc($handle, "doc");
printer_start_page($handle);
$filename="455.pdf";
$fhandle=fopen($filename, 'r');
$contents = fread($fhandle, filesize($filename));
fclose($fhandle);
printer_set_option($handle, PRINTER_MODE, "RAW");
printer_write($handle,"hekkp");
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);

i am using above code its sending file to printer to be print but its printing blank page..

@chandrama

At the moment you are not escaping the third backslash in the sequence: \\server\printer. So, if the dll is correctly loaded as the pecl package, try:

$handle = printer_open("\\\\server\\Brother MFC-J430W Printer");

Or with single quotes:

$handle = printer_open('\\server\Brother MFC-J430W Printer');

Else, I'm not sure Microsoft Windows supports the IPP protocol, if that's the case you could use this class: http://www.nongnu.org/phpprintipp/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.