If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
...and is there a way of direct print a pdf from outside pdf application ? I.E a button on a control application that creates a PDF using an SC pdf_report application and print it directly to the default printer instead of opening PDF file on the browser ?
I have spent a lot of time on this question, namely, how to programatically use a PHP script to send a PDF document to the printer without launching the Adobe print dialog that results from using arcord32.exe (the adobe reader). PHP has some useful classes for creating PDF's, i.e., the FPDF library, but printing the created file is a bear. For Windows XP and Windows 7 servers, the one open -source solution which works is to use the PDFBOX java library. Here are the steps.
1) Download the latest java pdfbox binary: http://www.apache.org/dyn/closer.cgi...-app-1.7.1.jar and put it in a directory. I will call my example c:/java/libs
2) Create a PDF file you want to send to the printer. I will call it example.pdf.
3) Configure the printer on the server (where PHP is running) you want to use to have a one-word name, like HPOfficeJET. You can't get away with a name like HP 8600 OfficeJet.
4) Create a command string like this:
5) Use one of the PHP exec commands to launch this command:
If all goes well, your server's printer will start, the pdf will print, and you will have created a way to have a client page request the server to print a server PDF you select or create.
You are true, I writed my asumption based in your previous message talking about "$printcmd = "java -classpath c:/java/libs/..."
Mobile browsing, sometimes is not so good
for mobile solution, I made separate application just for the mobile screen and install on the server with sub-domain like m.domain.com, I designed only necessary screens which is very important for the application users whos on the road.
and everybody love it ;D
I post the threat long time ago, when they will bring bootstrap with sass or less, but still no progression but they did with html3/css3, which was a good step for the chart system you know that...