General :: Create Landscape Oriented Pdf With Ghostscript?
Dec 13, 2009
im using cups filter 'texttops', to generate postscript file, then I;m using ghostscript to create pdf file. The problem is, that file generated from texttops don't contain landscape orientation instructions. How can I force ghostscript to do that. Here is the command Im using:
gs -sDEVICE=pdfwrite -sOutputFile=<outfile> -dBATCH -dNOPAUSE -f <infile>
I've found on the internet these instructions, but they don't work for me:
gs -dBATCH -dNOPAUSE -sOutputFile=myfile.pdf -sDEVICE=pdfwrite -dAutoRotatePages=/None -c "<< /PageSize [612 792] /Orientation 3 >> setpagedevice" 90 rotate 0 -612 translate -f myfile.eps
[code]....
View 1 Replies
ADVERTISEMENT
Jan 28, 2010
I have written a programme in gcc
#include <time.h>
#include <stdio.h>
int main(void)
[code]...
View 2 Replies
View Related
Oct 17, 2010
Similarly to this question:Convert a PDF to greyscale on the command line in FLOSS?I have a PDF-document and want to convert it to pure black and white. So I want to discard halftones. To convert to grayscale with ghostscript I can use this command:
gs
-sOutputFile=output.PDF
-sDEVICE=pdfwrite
[code]....
View 2 Replies
View Related
Feb 15, 2010
I'm trying to get GS to print to network Windows printer, but somehow fail to do so . I managed to print through CUPS to that printer but if I use GS with -sDEVICE=cups nothing happens, nothing is printed, CUPS logs remain unchanged... I also found command using smbclient (gs ... | smbclient //machine/printer -U user ... -c 'printmode graphics;print-') but that one fails with "session setup failed: NT_STATUS_REQUEST_NOT_ACCEPTED" Here is why I need it, so maybe you know better way: We need to print thousands of PDF files in one print job (to prevent anybody else to send something else in while we are printing this). I was trying to develop small C program using GS API to achieve this but somehow I fail on something as trivial as print something on shared network printer.
View 3 Replies
View Related
Jul 27, 2010
I know Ghostscript can convert PDFs to JPGs, and in the case of a multi-page PDF, can rip each page to an individual JPG. But is it possible to have it rip them to one JPG, so that the pages are pasted below each other, e.g. the top half of the JPG is page 1, the bottom half is page 2? Or do I have to use another program (and can ImageMagick do this?) to combine the JPG pages into one image?
View 2 Replies
View Related
Jan 14, 2011
I've spent hours trying to scan + shrink a multipage PDF documentlosing readability. This is the first time I've ever needed to do this! (I had to scan each page as ".jpg" in order to email and open on another computer, so I could not scan to PDF directly, which I think is why each page was so large; lower DPIs made the text too blurry.)I found this great tip on UbuntuGeek...but anyone can do this if GhostScript is installed:
View 1 Replies
View Related
Aug 24, 2009
I want to findout how to paint a line in C without using a line function or OOP. I want to control it by pixels.
View 6 Replies
View Related
May 20, 2011
I have a general question regarding php. Suppose that I want to have an array that stores connection-specific data, that can be anything IP address or something similar. However, whenever I use global or server variables (i.e. GLOBALS or _SERVER) the array created in this way is kind of connection-oriented, so that for each connection there is a separate instance of this array. Maybe it has something to do with the MPM of Apache, but I am not sure. Is it possible to implement an array that stores information about all connections that are at a system? In this way, each connection can chip in and upload it with data? Also, I would rather not use cookie's.
View 3 Replies
View Related
Feb 28, 2011
I have a peace of code the does not work:
View 1 Replies
View Related
Mar 22, 2010
I have a PDF document that I need to rotate page through 180 degrees.
Can anyone tell me if Ghostscript can do this and if so how?
I've gone through the documentation and can't seem to find anyting on it nor Google
View 1 Replies
View Related
Jul 27, 2011
I wasn't able to fix it... poor Lappy ), and everything seemed to be going just swimmingly. Then, when I was testing out one of my old scripts in Octave today, it barked at me about needing epstool to print plots to file.
[Code]...
View 9 Replies
View Related
Mar 10, 2011
Compiling ghostscript (9.01 or older) on a SUSE-11.3 does not include the x11 devices.gs -h does not show x11, x11alpa, x11mono, etc.Compiling on an old SLES-9.3 all x11 devices are included.On the old SLES-9.3 there is a library /usr/X11R6 with subdirs lib and include.Apparently including x11 devices depends on the libraries in /usr/X11R6.Question 1: how do I compile ghostscript on suse-11.3 with x11 devices included? The option --with-x does Question 2: where can I get the appropriate /usr/X11R6 for SUSE-11.3?
View 1 Replies
View Related
Feb 19, 2010
I'm trying to convert a jpg to eps with ghostscript using the command
Code:
gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300 -sOutputFile=file1.jpg file1.eps
but I'm getting the error message
Code:
Error: /undefinedfilename in (file1.eps)
[Code].....
View 1 Replies
View Related
Oct 17, 2010
I have to send a FAX (as some recipients are about 20 years behind the times). Sometimes the document looks excellent on the screen, but what comes out the other end looks terrible. So I'm trying to come up with a way to produce the best quality FAX from a vector PDF (which is searchable with images and text). Part of the goal is to preview the fax in advance, so there are no surprises. I start by converting the vector PDF to a raster (bitmap) postscript document:
[code]...
How can these steps above be improved?
View 4 Replies
View Related
Jun 25, 2011
After upgrade to ghostscript 9.02 from current all print jobs fail with: 'There is a missing print filter for printer HP_F2480'
The printer is an All-inone deskjet F2480 and the cups printer queue has been
setup with the hplip tools. Before the upgrade it was 'working' with quite a few bugs...eg image not printed correct, multipage printing garbage. (page for page printing was the workaround)
Do I need to remove the printer and define it again?
View 2 Replies
View Related
Apr 20, 2010
Im trying to print a pdf file in landscape but it always prints as portrait these are the commands that i use...
lpr -o landscape -P printername filename.pdf
lpr -o orientation-requested=4 -P printername filename.pdf
this is the printer standard options
#lpoptions -p printername -l
Duplex/Double-Sided Printing: DuplexNoTumble DuplexTumble None *Notcapable
PageSize/Page Size: Letter *A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
[code]....
View 1 Replies
View Related
Mar 7, 2010
Groovy is an object-oriented programming language for the Java platform. I do not have experience in Java, only perl and shell scripts. Recently I have been asked to maintain a software written in groovy (also to make enhancements). So can I learn groovy without knowing java language. or isit I have to learn java before venturing into groovy.
View 1 Replies
View Related
Jun 6, 2011
I have hp and samsung printers HP L3000, HP P1320,P2035,P2015 and Samsung ML750. Now when i like to print a landscape doc from libre office and i select landscape orientation but still the report comes in portrait format.even if i go to cups n change printing orientation from auto to landscape I still not get a landscape report.Another problem is that in windows I selected the row in excel to print then printed using fit to one page.But in suse I dont see that option
View 1 Replies
View Related
Jun 30, 2010
I am running Lucid x64 on an Gigabyte Mobo with an Intel E6500 CPU.I think this script pulls the temperature from /proc/acpi/thermal_zone. However, that directory is empty.I can get the cpu temp by using lm-sensors or by running this:
Code:
cat /sys/class/hwmon/hwmon0/device/temp1_input
Any ideas on how to get landscape-sysinfo to display the temperature
View 2 Replies
View Related
Jan 21, 2010
Trying to set up a printer for the 1st time using CUPS's GUI system-config-printer. Trying to set up a printer that will print in landscape mode, 132 characaters per line, and 66 lines per page.Got it to print in landscape mode but the line wraps at 108 characters.What settings do I need to get it not to wrap. Current settings are:
cpi: 15
landscape: true
lpi: 8
View 5 Replies
View Related
Sep 13, 2009
uninstall landscape on my Ubuntu 9.04 headless NAS because I do not use it. Running an uninstall simulation: "sudo aptitude -s remove landscape-client" produces: The following packages will be REMOVED:
acl{u} hal{u} hal-info{u} landscape-client landscape-common{u} libffi5{u} libhal-storage1{u} libhal1{u} libpolkit-dbus2{u} libpolkit-grant2{u} libsmbios2{u} pm-utils{u} policykit{u} powermgmt-base{u} python-dbus{u} python-gobject{u} python-pexpect{u} python-pycurl{u} python-smartpm{u} python-twisted-bin{u} python-twisted-core{u} python-twisted-web{u} python-zopeinterface{u} smartdimmer{u}
0 packages upgraded, 0 newly installed, 24 to remove and 3 not upgraded. To me it seems that it want to uninstall support for acl among other things. But I don't want to remove support for acl as I use it on my files. And also should "hal" be removed?
View 3 Replies
View Related
Nov 16, 2009
recently i have upgraded my centos 5.0 or 5.1 installation using 'yum upgrade' to centos 5.4 since the upgrade I am unable to print any PDF files as landscape, they get printed but do not seem to be rotated and are aligned a little bit less than when using portrait (test using the GUI and LP)
when printing a text file in portrait and landscape everything goes well tested on labelprinter Brother QL-580N and tested on Samsung SCX-5530FN Laserprinter both using the network I already tried 'yum downgrade cups' this works but with no success
View 1 Replies
View Related
Feb 6, 2010
Having selected 'Landscape', when printing using 'File|Print' in KWrite, the text is presented in landscape but formatted to a size of approximately 105mm x 590mm (bottom half of a landscape page and stretched to twice the width, printing only the left hand side). I have a similar issue with some other programs too, but not Open Office.Having configured 'cupsd.conf' to log in debug mode it would seem that the problem I'm getting may be to do with applications that output in 'application/pdf' format, because in the CUPS log for Job 57 line 479 seems to indicate that KWrite has output a PDF file:
Code:[Job 57] File of type application/pdf queued by "root". Then at line 490 there's a line that seems to indicate no landscape, even though this was selected through the user interface of KWrite (and works in Open Office)!:Code:[Job 57] argv[5]="document-name=4b69b8710002c media=A4 nolandscape job-uuid=urn:uuid:5c6fae2f-ad2f-3364-5f04-bb5500d1eabc" I would have attached the various 'log' and 'conf' files but I'm new to this and I just can't find a way to get attachments enabled for my login!I've spent hours on this, if anyone can give me any pointers I would be most grateful, however I am no Linux system administrator I'm afraid.Current system: openSUSE 11.2 x64, Kernel 2.6.31.8, CUPS 1.3.11, gutenprint 5.2.4, KWrite 4.3.1 release 6, KDE 4.3.1.1Old system (that worked with this printer): openSUSE 11.1 x32, gutenprint 5.2.2
View 3 Replies
View Related
Apr 28, 2011
My setup:
openSUSE 11.4.
Acer Extensa 5635ZG
Epson Stylus Photo PX710W, connected with WiFi
I have just discovered that I can't print text from libreoffice writer/calc if the layout is set to landscape. The letters seems to have been stretched and printed over each other. If I print the same document in kword/kspread everything is printed as it should be. I have generated a pdf of the document and printed from okular/acroread, even then it's not printed correctly. Although it looks ok in okular/acroread. What else that can be seen is that when it's wrongly printed the printout is printed in the opposite direction compared to when it's printed correctly. I.e. the tail comes first on the paper so to say. Where should I begin to search for faults?
View 9 Replies
View Related
Jan 21, 2010
i'm looking to improve my server's motd, and I found a package called landscape-sysinfo, but when i tried to install it on my server, it was not foundMy server is running debian, so I'm assuming that the repository doesn't contain it..questions:* what repository might i need to add to install this?if i cannot use apt-get, is there another way to get the program?is there a way to get the motd to display system info when i log in with ssh other than landscape-sysinfo or update-motd ?
View 3 Replies
View Related
Apr 27, 2009
Some options are disabled because of some mode I'm in (default) but how to change that?
View 1 Replies
View Related
Mar 5, 2010
I am trying to print a schematic from KPDF (Suse 11.2) onto an 11x17 sheet of paper. Regardless of the printer settings I use or which driver I choose it won't rotate the image and fill the page. I have the same problem with kiCAD. If I use Okular it prints part of the drawing in one corner at the 8.5x11 scale.
View 3 Replies
View Related
Dec 9, 2010
Here is quick fix I did for HP Proliant servers where landscape shows wrong temperature eg:
root ~ # landscape-sysinfo
System load: 0.12 Temperature: 8 C <----- WTF
Usage of /: 0.2% of 808.13GB Processes: 214
[code]....
View 1 Replies
View Related
Dec 3, 2010
I want to print Landscape and I would normally use Code: lp -ddestination -olandscape However this isn't working, it could be another problem (I am passing to a windows print spooler) but I would like to know if I have got the command right.
View 1 Replies
View Related
Aug 12, 2009
I have a Calc spreadsheet that has 3 sheets. The first page is set for Portrait and the remaining pages are Landscape. Currently I am printing each page as a separate print job.I would like to print the entire Calc pages as one job where the printer prints the first page as portrait and the remaining pages as landscape without user intervention.
I do not see any command in the print dialog or in open office dialogs that tell the printer to change orientation. It seems that OpenOffice fails to tell the printer the page orientation. Is there any way to accomplish this. If a macro is required how do you write it and how is it executed?
View 2 Replies
View Related