I am trying to print a watermark on every printed page with the help of a custom PPD for a printer. I believe (please correct me if I'm wrong) that I will need to call the script that adds the watermarks inside the ppd with a like similar to this what I found online:
cupsFilter: "application/vnd.cups-postscript 100 /usr/lib/cups/filter/watermark"
How would the watermark filter need to look like? I could not find any examples for that.
Is it possible to incorporate a postscript file as watermark? How is the watermark added to the printed document?
Thank you very much in advance!
Related
Is there a way I could store image url inside VTT file? For example:
WEBVTT
00:00:00.000 --> 00:00:10.000
Chapter tile goes here
thumb_0001.jpg
00:00:10.000 --> 00:00:20.000
Another chapter title
thumb_0002.jpg
I know I could write custom parser, but I am wondering is there some kind of a standard for this?
You would need to have a separate WebVTT metadata track, a player that supports them, and likely some scripting and CSS to act on the cue payload. You can see an AblePlayer demo of a few things a metadata track can do (at the 39 second mark). If you examine the wwa_meta.vtt file, you can see that it references ID selectors that happen to be in the player's page html code.
The example you give is quite similar to what is being done currently across the internet for image thumbnails. It's most commonly used for animated video previews on... adult... websites. If you Google search for ".jpg" filetype:vtt you'll find some interesting examples that take the same approach as yours.
As Murray cited already, it's not really the proper way to do it. The metadata track option he cites is much more inline with correct use of the VTT spec. However it's also not broadly supported. You could follow VTT guidelines and end up with a file that can't be read by many players.
One other option is CSS. VTT is designed to work nicely with CSS. So you could include you image as a CSS background-image. That way it's separate from the text content and (at least in theory) some players might even be able to display it properly.
Am using GhostScript.Net 1.2.0 version. Am converting a pdf file into list of images to print. My Printed image height and width is fine but the printed image quality is poor. Please help me how to improve the image quality while converting a pdf to image using ghostscript.net
You need to either take this up with the Ghostscript.Net maintainer or find some way to tell us what command line/configuration you are using (ALL of it!), you will also need to supply an example file and define what you find objectionable in your current prints. 'image quality is poor' is extremely subjective, not helpful at all, there could be many, many reasons for 'poor quality', starting with your input file.
You also need to state what operating system you are using, and what your printing setup is. If you have tried anything already, then you need to say what you have done or we will waste much time suggesting dead ends.
Note that if you are using the mswinpr2 device, there may be little that can be done as that relies on the printer driver in the Windows system to do the actual printing.
Please someone help me with ghostscript....
I want to create image of a particular page postscript file using ghostscript. I will specify the page number or something like that will get the respective image as output.
Is this possible with ghostscript?
In current versions of Ghostscript you have two choices:
1) Render every page to an image file, use the '%d' file name format so that you know which page you want, delete the others.
2) PostScript is a programming language. Write a customer EndPage procedure which returns true when the page is the one you want, and false for all others.
In a yet to be released version of Ghostscript, the FirstPage and LastPage paramters could be used to do this.
I'm trying to create a presentation with class Beamer in LaTeX. I learnt how to use command like \pause, \only and \onslide but I don't understand how to program with a specific time the effects I've inserted in the slide.
For example, I've the following piece of code
\includegraphics<1>[scale=0.3]{photo1.eps}
\includegraphics<2>[scale=0.3]{photo2.eps}
What I want is... "Dear LaTeX, show me first photo1.eps and after 5 seconds, for example, photo2.eps, on the same slide, of course", automatically, without my action.
Is it possibile to do that??? Can anyone help me??? Thank you in advance
I think you can use the \transduration command, as explained on page 142 in the beamer manual:
You can also specify how long a given slide should be shown, using the
following overlay-specification-aware command: \transduration<⟨overlay
specification⟩>{⟨number of seconds⟩} In full screen mode, show the
slide for ⟨number of seconds⟩. If zero is specified, the slide is
shown as short as possible. This can be used to create interesting
pseudo-animations. Example: \transduration<2>{1}
It's my first experience with tesseract, I'm trying to read the digits contained in these tiff images:
http://imageshack.us/g/703/64553021.png/
As you can see they are in the same format and also same width/height. I don't know why tesseract returns the correct output only for the second image ("150") instead for the first one returns a blank output.
Maybe I should modify them to best fit tesseract? How? I can use Imagemagick if needed.
Thanks in advance.
In the readme they say:
In the executable, page layout analysis is enabled by default. You may need to turn it off to process small images. No command-line control for this yet. Sorry. See tesseractmain.cpp.
I think your images are too small, try editing the code (and recompile).