printing

Can you detect when a PDF is printed or downloaded from the browser PDF viewer?

↘锁芯ラ 提交于 2020-05-25 13:13:05
问题 We have an AngularJS web app that loads PDF documents from the server and displays them within the page like this: <object id="preview" type="application/pdf" data="blob:{fileUrl}"> We have a new requirement to audit whenever a user performs certain actions: views a document (done) prints a document downloads a document The PDF download and print controls are within the browser PDF viewer. We only have to support latest Google Chrome (Chrome 68 as of July 2018). Is it possible to detect when

What is the easiest way to print text to screen in OpenGL?

百般思念 提交于 2020-05-24 21:58:50
问题 I need to print 3 lines of text to a window as a menu. 1 - Menu 2 - Pause 3 - Exit 回答1: Considering that you used GLUT in previous questions, the easiest would be using GLUT's built in font rendering functions. Example: void output(int x, int y, float r, float g, float b, int font, char *string) { glColor3f( r, g, b ); glRasterPos2f(x, y); int len, i; len = (int)strlen(string); for (i = 0; i < len; i++) { glutBitmapCharacter(font, string[i]); } } Where font is one of GLUT font constants: GLUT

What is the easiest way to print text to screen in OpenGL?

冷暖自知 提交于 2020-05-24 21:58:16
问题 I need to print 3 lines of text to a window as a menu. 1 - Menu 2 - Pause 3 - Exit 回答1: Considering that you used GLUT in previous questions, the easiest would be using GLUT's built in font rendering functions. Example: void output(int x, int y, float r, float g, float b, int font, char *string) { glColor3f( r, g, b ); glRasterPos2f(x, y); int len, i; len = (int)strlen(string); for (i = 0; i < len; i++) { glutBitmapCharacter(font, string[i]); } } Where font is one of GLUT font constants: GLUT

CSS media queries for print paper size

こ雲淡風輕ζ 提交于 2020-05-16 01:37:08
问题 Paper isn't the same shape the world over. I have a document that I want to print differently when it's printed on A4 versus US Letter. Some elements should be hidden or shown. The obvious suggestion is to use a media query like so: @media print and (max-height: 280mm) { .a4-only { display: none; } } This doesn't appear to work, though, presumably because it's using the total document height or some irrelevant window height rather than the page height. Is there a way of addressing page size

How to send multiple files to the printer with one Process call

孤人 提交于 2020-05-15 06:27:06
问题 I need to print multiple PDF-files from the hard-drive. I have found this beautiful solution of how to send a file to the printer. The problem with this solution is that if you want to print multiple files you have to wait for each file for the process to finish. in the command shell it is possible to use the same command with multiple filenames: print /D:printerName file1.pdf file2.pdf and one call would print them all. unfortunately simply just to put all the filenames into the

Cannot specify the correct size for printing

梦想与她 提交于 2020-05-14 14:51:05
问题 We have acquired a brother QL-700 printer recently and we are doing some sticker printing through this machine. The paper that we have been feeding is a 62mm-wide sticker roll without "length" restriction. The issue is, no matter how I do (I've tried Book , PrintRequestAttributeSet ), I couldn't use Java to tells the printer dialog window to use the correct paper size for the printer. I couldn't make it, for example, exact 62mm × 40mm as we needed. It always "snap" to a nearest paper as it

Writing data to a datacard using the IBidiSpl interface

早过忘川 提交于 2020-05-13 20:31:03
问题 I'm developing a C # application to write data to smartcards through the Datacard SD360 printer. After downloading the SDK provided by the manufacturer (at this link: https://www.datacard.com/id-card-printer-support-and-drivers/sd360-id-card-printer#drivers-and-downloads), I encountered some issues with the IBidiSpl Interface, used in the SDK examples. I am using the SendRecv method to send data to the printer, however the xml returned always brings the CDATA [] field empty. public string

Writing data to a datacard using the IBidiSpl interface

那年仲夏 提交于 2020-05-13 20:22:41
问题 I'm developing a C # application to write data to smartcards through the Datacard SD360 printer. After downloading the SDK provided by the manufacturer (at this link: https://www.datacard.com/id-card-printer-support-and-drivers/sd360-id-card-printer#drivers-and-downloads), I encountered some issues with the IBidiSpl Interface, used in the SDK examples. I am using the SendRecv method to send data to the printer, however the xml returned always brings the CDATA [] field empty. public string

Writing data to a datacard using the IBidiSpl interface

纵饮孤独 提交于 2020-05-13 20:21:40
问题 I'm developing a C # application to write data to smartcards through the Datacard SD360 printer. After downloading the SDK provided by the manufacturer (at this link: https://www.datacard.com/id-card-printer-support-and-drivers/sd360-id-card-printer#drivers-and-downloads), I encountered some issues with the IBidiSpl Interface, used in the SDK examples. I am using the SendRecv method to send data to the printer, however the xml returned always brings the CDATA [] field empty. public string

Writing data to a datacard using the IBidiSpl interface

隐身守侯 提交于 2020-05-13 20:18:54
问题 I'm developing a C # application to write data to smartcards through the Datacard SD360 printer. After downloading the SDK provided by the manufacturer (at this link: https://www.datacard.com/id-card-printer-support-and-drivers/sd360-id-card-printer#drivers-and-downloads), I encountered some issues with the IBidiSpl Interface, used in the SDK examples. I am using the SendRecv method to send data to the printer, however the xml returned always brings the CDATA [] field empty. public string