Displaying 20 results from an estimated 35 matches for "pdfwrite".
2001 Jul 12
1
Should gv be able to read bitmap(... type= "pdfwrite") ?
Hi there folks
I have R 1.3.0 running on Red Hat Linux 7.1 with GhostView 3.5.8. When
I produce a file like:
> bitmap("foo.pdf", type="pdfwrite")
> plot(foo)
> dev.off()
and then try to read it with gv, I get an unrecoverable error and
nothing displayed.
Any help as to whether this ***should*** work would be appreciated.
cheers,
John
--
John Williams
Department of Marketing
Otago University
Dunedin, New Zealand
-.-.-.-.-....
2004 Jan 29
4
Print via print command while using 3.0
...lowing:
------------------------------------------------------------
# smb.conf
[global]
...
printing = cups
...
[pdfprinter]
comment = PDF Drucker, druckt nach H:\print
print command = /usr/bin/tps2file.sh "%s" "%U" "pdf" "pdfwrite" ""
path = /tmp
printable = yes
valid users = @users
------------------------------------------------------------
The script "/usr/bin/tps2file.sh" convert the ps data to pdf. It works fine
under SAMBA 2.2.3 but not under 3.0.
How can I use my scrip...
2008 Nov 03
1
dev2bitmap: extra missing
Hi,
I don't know if I am the first one to report the problem:
in 2.8.0 dev2bitmap gained aa support, but "extra" is null
if neither taa nor naa is specified.
> dev2bitmap("plot.pdf",type="pdfwrite")
Error in paste(shQuote(gsexe), " -dNOPAUSE -dBATCH -q -sDEVICE=", type, :
object "extra" not found
> dev2bitmap("plot.pdf",type="pdfwrite",taa=4)
>
I guess a useful default for extra is missing:
if (!is.na(taa))
extra <- past...
2007 May 22
5
Reducing the size of pdf graphics files produced with R
Hi,
Without trying to print 1000000 points (see <http://
finzi.psych.upenn.edu/R/Rhelp02a/archive/42105.html>), I often print
maps for which I do not want to loose too much of coastline detail,
and/or plots with 1000-5000 points (yes, some are on top of each
other, but using transparency (i.e. rgb colors with alpha
information) this actually comes through as useful information.
2008 Apr 29
2
Legend problem when exporting a plot to PDF
Hi list,
When exporting to PDF a graph with a legend, in the final PDF, the text
is going beyond the legend box.
> dev2bitmap("test.pdf", type="pdfwrite", h=6, w=6)
The legend looks OK on the screen.
I noticed that the size of the legend box depends on the size of the
screen window, which is not the case for other graphical parts (text of
the legend, title, axis text...)
Any tip on how to deal with this?
Another problem I encounter, which m...
2010 Sep 11
2
Latex fonts in R graphics
...cm-lgc/fonts/type1/public/cm-lgc", "."))
Error in embedFonts("cm.pdf", outfile = "cmembed.pdf", fontpaths =
c("cm-lgc/fonts/type1/public/cm-lgc", :
status -1 in running command 'gswin32c.exe -dNOPAUSE -dBATCH -q
-dAutoRotatePages=/None -sDEVICE=pdfwrite
-sOutputFile=C:\DOCUME~1\user\LOCALS~1\Temp\RtmpccEtgV\Rembed28163716
-sFONTPATH=cm-lgc/fonts/type1/public/cm-lgc;. cm.pdf'
In addition: Warning message:
In system(cmd) : gswin32c.exe not found
Operating system: Windows XP, SP2.
cm-lgc has been unzipped in the working directory "C:/P...
2010 Oct 02
2
tyring to save plots using windoze 7 and cygwin
...t script-based plot saving as pdf has not worked.
I have tried the following, none of which seem to function,
xyz <-read.table("time_frac2")
x=plot(xyz,main="imp rate", xlab="Time(GMT)",ylab="imp/minute")
grid()
dev2bitmap("xxx.pdf",type="pdfwrite")
save.plot(x,file="xxx.pdf",format="pdf")
dev.copy("pdf","auto_pdf.pdf")
dev.off()
savePlot("./auto_hit_rate.pdf",type="pdf")
q()
Now apparently R does save the plot in a default file Rplots.pdf which is
just fine for my immediat...
2003 Jan 09
1
GS PDF creator
....pdf. I'd like the output file to be the same as the
input file is this possible? i.e. file.txt into file.pdf
Thanks for your help.
Gabe
[smbpdf]
comment = PDF Generator
path = /var/spool/samba
printable = yes
print command = gs -dNOPAUSE -dbatch -q -sDEVICE=pdfwrite
-sOutputFile=/var/tmp/%s.pdf <%s 1>/dev/null 2>&1; rm -f %s
2011 Aug 09
1
embedFonts() does not embed fonts?
...9;q()' to quit R.
> Sys.setenv("R_GSCMD"="C:/Downloads/gs9.04/bin/gswin32c.exe")
>
> pdf(file = "test.pdf", family = "serif")
> plot(1:10)
> dev.off()
null device
1
>
> embedFonts(file = "test.pdf", format = "pdfwrite", outfile = "test_em.pdf",fontpaths =
"C/Windows/Fonts")
>
> Sys.unsetenv(x = "R_GSCMD")
>
> sessionInfo()
R version 2.13.1 (2011-07-08)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_Un...
2003 Feb 24
5
PDF Printer issue
...any sort.
Here is my smb.conf section:
[purchpdf]
comment = PDF Generator for Purchasing
path = /var/spool/samba
valid users = *UserNames Removed*
write list = *UserNames Removed*
printable = yes
print command = gs -dNOPAUSE -dbatch -q -sDEVICE=pdfwrite
-sOutputFile=/share/purchasing/pdf/%J.pdf <%J 1>/dev/null 2>&1; rm -f %J
Thanks for any assistance that can be rendered.
Regards,
Robert Adkins II
IT Manager/Buyer
Impel Industries, Inc.
586-254-5800
2000 Dec 15
1
Bug in bitmap producing pdf???
...eight = 7,
width = 7,
paper = "special",
... )
{
if ( type=="pdf" )
{
print ( paste( dir, file, ".pdf", sep="" ) ) #just cheking...
bitmap( file = paste( dir, file, ".pdf", sep="" ),
type = "pdfwrite",
height = height,
width = width,
... )
}
if ( type=="eps" )
{
print ( paste( dir, file, ".eps", sep="" ) ) #just checking...
postscript( file = paste( dir, file, ".eps", sep="" ),
height = height...
2007 Oct 04
3
pdf() device uses fonts to represent points - data alteration?
...a little bit) but
font substitution on the data points can really harm the graphic.
Examples of code:
pdf("test.pdf")
plot(0,0,xlab="",ylab="",bty="n",xaxt="n",yaxt="n"); grid(lty=1);
dev.off()
embedFonts("test.pdf","pdfwrite","test_embed.pdf")
visualize the fonts:
pdffonts test.pdf
and a package with the two pdf files and bitmaps of how they render
or are interpreted in various programs:
http://jo.irisson.free.fr/dropbox/test_R_pdf_fonts.zip
Thank you in advance for your attention and help.
JiHO...
2010 Jun 30
1
Why the variation when creating .pdf file output for my plots?
...t C:\gswin32c.exe runs said
program.
All shared insights appreciated!
Karl
Method 1:
In the R graphics device window, form the menu File>Save As>PDF
-yields a .pdf file of 700Kb (in this plot example)
Method 2:
> dev2bitmap(file="expression.density.plotb.pdf", type = "pdfwrite",
> method = "pdf")
> dev.off()
-yields a .pdf file of 300kb (same plot example) indistinguiashble (on
the screen atleast) from method 1.
Method 3:
> pdf(file="my_plot.pdf", paper="a4")
> dev.off()
-yields a .pdf file of 1kb (same plot example)...
2008 Dec 22
0
txfax/rxfax fun
...ia a web
interface, slap a cover page onto it, merge the two into a new tiff and send
it out via txfax. I'm able to get it out to a fax machine using this
sequence:
/usr/bin/tiff2pdf /tmp/faxout/1229978819_filea.tif -o
/tmp/faxout/1229978819_filea.pdf
/usr/bin/gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite
-OutputFile=/srv/www/htdocs/faxout/1229978819_fin.pdf
/srv/www/htdocs/faxout/1229978819_faxout.pdf
/tmp/faxout/1229978819_filea.pdf
cp /srv/www/htdocs/faxout/1229978819_fin.pdf
/srv/www/htdocs/faxout/1229978819_faxout.pdf
convert -compress group4 -monochrome -negate -units pixelsperinch -page
1758x...
2006 Jan 23
0
Samba printing to Hylafax
I'm sure it's been solved before and probably more gracefully but here's
the print string I used to accomplish printing from MS Word.
gs -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile=/tmp/%s.pdf /var/spool/samba/%s;lpr -Pfaxit `strings %s|grep %%Title:|gawk '{print " -o phone="substr($5,1,11)}'` /tmp/%s.pdf;rm -f /tmp/%s.pdf
2001 Apr 11
0
using bitmap to make a multi-page pdf file results in duplication of (PR#908)
When I execute the following code:
bitmap("test.pdf",type="pdfwrite")
plot(1:10,1:10,main="ONE")
plot(1:10,1:10,main="TWO")
dev.off()
the resulting file test.pdf contains four pages: graph ONE, graph TWO,
graph ONE, graph TWO. I can recreate the problem with R version 1.2.1 and
1.2.2. I am using Aladdin ghostscript version 6.50. The tem...
2001 Apr 12
0
using bitmap to make a multi-page pdf file results in (PR#909)
On Wed, 11 Apr 2001 Setzer.Woodrow@epamail.epa.gov wrote:
> When I execute the following code:
>
> bitmap("test.pdf",type="pdfwrite")
> plot(1:10,1:10,main="ONE")
> plot(1:10,1:10,main="TWO")
> dev.off()
>
> the resulting file test.pdf contains four pages: graph ONE, graph TWO,
> graph ONE, graph TWO. I can recreate the problem with R version 1.2.1 and
> 1.2.2. I am using Aladdin...
2007 Feb 23
2
pdf with an exact size
Is it possible to create a pdf output file with an (as nearly as
possible) exact size?
For example, if I want to draw in an A4 paper (210 x 297 mm) a
square of 100 x 100 mm, how can I do it?
FWIW, about 6 months ago I learned here how to create an exact
png image. For example, if I want a 500 x 500 black square in
a 1000 x 1000 white png, occupying the center of the png, the
procedure is this:
2013 Feb 14
1
pcl to pdf
Everyone,
I am currently using a vsifax program (pcltotiff) to convert pcl files
to tiff files on a SCO Unix box, and then I am using tiff2pdf on a
Centos 5.9 box to convert the file to a pdf.
There are other commands that deal with multiple page tiff's and pdf's
that are part of the process, but the above basic process has worked
very well. The only thing I would like to enhance is a
2024 Mar 11
1
evince not showing "greek" and "math" in *.pdf plots
...uot;embedded-example", pdfil),
options = "-dPDFSETTINGS=/prepress")
if(interactive()) {
system(paste("evince", paste0("embedded-example", pdfil), "&"))
}
Or you can do it in the terminal:
gs -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -
dEmbedAllFonts=true -sOutputFile=plotmath-example-output_embedded.pdf -
f plotmath-example_R432.pdf
Compare:
Embedded:
? pdffonts plotmath-example-output_embedded.pdf
name type encoding emb sub uni object ID
---------------------- -------- -------- --- --- --- ------...