search for: compactpdf

Displaying 20 results from an estimated 23 matches for "compactpdf".

Did you mean: compacted
2011 Mar 27
1
Bug in tools::compactPDF() in 2.13-0-alpha
Dear List, There seems to be an bug in compactPDF() or at least an inconsistency with the documented behaviour. The documentations states: Details: This by default makes use of ?qpdf?, available from <URL: http://qpdf.sourceforge.net/>, including a Windows binary. If ?gs_cmd? is non-empty, GhostScript is used. I don't...
2012 Jan 24
1
Failure to get compactPDF to compact a pdf file
I am failing to get compactPDF to make any change to a pdf file that, a/c to the message from the CRAN upload site, can be very substantially compacted. Any ideas what may be wrong? I have also tried recreating the pdf file. I also tried R CMD build --resave-data --compact-vignettes DAAG The data files compact alright (but I...
2018 Jul 08
2
[R] consider running tools::compactPDF(gs_quality = "ebook")
...ttes="gs+qpdf" gRbase and in the log from r-devel (on winbuilder) I get * checking sizes of PDF files under 'inst/doc' ... WARNING 'gs+qpdf' made some significant size reductions: compacted 'gRbase-arrays.pdf' from 421Kb to 115Kb consider running tools::compactPDF(gs_quality = "ebook") on these files According to "writing R extensions" things should be fine (I have gs and qpdf on my system): "The --compact-vignettes option will run tools::compactPDF over the PDF files in inst/doc (and its subdirectories) to losslessly compress them...
2018 Jul 08
0
[R] consider running tools::compactPDF(gs_quality = "ebook")
?did this inside R; not ideal but worked. ________________________________ From: R-devel <r-devel-bounces at r-project.org> on behalf of S?ren H?jsgaard <sorenh at math.aau.dk> Sent: 08 July 2018 15:46 To: r-devel at r-project.org Subject: Re: [Rd] [R] consider running tools::compactPDF(gs_quality = "ebook") Dear all, I run R CMD build --compact-vignettes="both" gRbase and/or R CMD build --compact-vignettes="gs+qpdf" gRbase and in the log from r-devel (on winbuilder) I get * checking sizes of PDF files under 'inst/doc' ... WARNING &...
2018 Jul 08
2
consider running tools::compactPDF(gs_quality = "ebook")
...ttes="gs+qpdf" gRbase and in the log from r-devel (on winbuilder) I get * checking sizes of PDF files under 'inst/doc' ... WARNING 'gs+qpdf' made some significant size reductions: compacted 'gRbase-arrays.pdf' from 421Kb to 115Kb consider running tools::compactPDF(gs_quality = "ebook") on these files According to "writing R extensions" things should be fine (I have gs and qpdf on my system): "The --compact-vignettes option will run tools::compactPDF over the PDF files in inst/doc (and its subdirectories) to losslessly compress them...
2018 Jul 08
2
consider running tools::compactPDF(gs_quality = "ebook")
...ttes="gs+qpdf" gRbase and in the log from r-devel (on winbuilder) I get * checking sizes of PDF files under 'inst/doc' ... WARNING 'gs+qpdf' made some significant size reductions: compacted 'gRbase-arrays.pdf' from 421Kb to 115Kb consider running tools::compactPDF(gs_quality = "ebook") on these files According to "writing R extensions" things should be fine (I have gs and qpdf on my system): "The --compact-vignettes option will run tools::compactPDF over the PDF files in inst/doc (and its subdirectories) to losslessly compress them...
2014 Jul 14
1
Error in compactPDF/find_gs_cmd or documentation?
I am using tools::compactPDF for reducing the size of some pdf-files with GhostScript. I had some trouble in the beginning as the documentation seems not to match the usage of the function. For GhostScript, one has to set the argument gs_cmd, which has the following description: gs_cmd - Character string giving the path to...
2013 Apr 21
2
vignettes: problems with PDF compaction
...ettes/ HE-examples.pdf HE-examples.Rnw HE-examples.bib fig/ ... I have qpdf installed: > Sys.which(Sys.getenv("R_QPDF", "qpdf")) qpdf "c:\\Rtools\\bin\\qpdf.exe" > but, if I try to run it on the vignettes/HE-examples.pdf file, nothing happens: > tools::compactPDF("C:/Documents/workspace/heplots/vignettes/HE-examples.pdf") > Since vignettes are re-built from sources and then installed into inst/doc, I don't see why PDF compaction cannot be run as part of the build process. That is, if R CMD check --as-cran detects a problem, shouldn't...
2020 Nov 01
2
vignettes present in 2 folders or won't work
...the vignette by hand using a Makefile (because this is the only way that has proven 100% reliable to me, across a variety of situations). In my Makefile, I have something like: build: clean mkdir -p inst/doc mkdir vignettes -cp sources_vignettes/*/*.pdf* vignettes Rscript -e "tools::compactPDF(paths = 'vignettes', gs_quality = 'printer')" cp vignettes/*.pdf* inst/doc Rscript -e "devtools::document()" mkdir inst/extdata/sources_vignettes cp sources_vignettes/*/*.Rnw inst/extdata/sources_vignettes Rscript -e "devtools::build(vignettes = FALSE)&...
2024 Oct 14
1
Warning object has offset 0. PDF file
...the same warning and [2] where a number of possible ways to corrupt PDF (and warning messages from various software) is investigated, including this one. Ironically, this is almost in scope for R-package-devel, because the message comes from "qpdf", a tool used by R CMD check (and tools::compactPDF() in particular). The internal "table of contents" at the end of the PDF file contains nonsensical references, which "qpdf" complains about. If you run the following command line: qpdf "/path/to/original/file.pdf" "/path/to/reconstructed/file.pdf" ...qpdf w...
2012 Jun 06
1
stumped on re-building package vignette
...plastic1.pdf' Execution halted * checking PDF version of manual ... OK I am unable to determine why the file fig/plot-plastic1.pdf cannot be opened. It is in my inst/doc/fig directory & is regenerated by the .Rnw file. What could cause this? Second, I have tried manually running tools::compactPDF("HE-examples.pdf) on the .pdf file under inst/doc in the package, but no change is made to the .pdf file. I can't see any way to correct this. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736...
2011 Jun 23
5
Reducción tamaño de gráficos en PDF
Buenas tardes a todos, Estoy interesado en realizar varios gráficos y luego guardarlos individualmente como PDF. Hasta ahí todo bien. Sin embargo, el archivo resultante tiene aproximadamente 20MB. Podría alguien por favor indicarme cómo reducir su tamaño? A continuación un ejemplo de lo que intento hacer y mi sessionInfo(). Estoy usando Mac OS X. Muchas gracias, Jorge Ivan Velez # R code
2020 Nov 01
0
vignettes present in 2 folders or won't work
...s the > only way that has proven 100% reliable to me, across a variety of > situations). > > In my Makefile, I have something like: > > build: clean > mkdir -p inst/doc > mkdir vignettes > -cp sources_vignettes/*/*.pdf* vignettes > Rscript -e "tools::compactPDF(paths = 'vignettes', gs_quality = > 'printer')" > cp vignettes/*.pdf* inst/doc > Rscript -e "devtools::document()" > mkdir inst/extdata/sources_vignettes > cp sources_vignettes/*/*.Rnw inst/extdata/sources_vignettes > Rscript -e "...
2024 Oct 13
1
Warning object has offset 0. PDF file
Good day to all Using > library(pdftools) Using poppler version 23.04.0 I get a number of warnings such as: > pdf_subset(infile, pages = 156:157, output = outfile) WARNING: /Users/jla/Library/CloudStorage/Dropbox/7cordas/Caio/record/90 NEW RODA SONG BOOK.pdf (object 7 0): object has offset 0 WARNING: /Users/jla/Library/CloudStorage/Dropbox/7cordas/Caio/record/90 NEW RODA SONG BOOK.pdf
2020 Nov 01
2
vignettes present in 2 folders or won't work
...liable to me, across a variety of > > situations). > > > > In my Makefile, I have something like: > > > > build: clean > > mkdir -p inst/doc > > mkdir vignettes > > -cp sources_vignettes/*/*.pdf* vignettes > > Rscript -e "tools::compactPDF(paths = 'vignettes', gs_quality = > > 'printer')" > > cp vignettes/*.pdf* inst/doc > > Rscript -e "devtools::document()" > > mkdir inst/extdata/sources_vignettes > > cp sources_vignettes/*/*.Rnw inst/extdata/sources_vignettes...
2012 Feb 29
0
R 2.14.2 is released + R anniversary
...ed to version 8.21: as well as bug fixes and greater Perl compatibility, this adds a JIT pattern compiler, about which PCRE's news says 'large performance benefits can be had in many situations'. This is supported on most but not all R platforms. o Function compactPDF() in package tools now takes the default for argument gs_quality from environment variable GS_QUALITY: there is a new value "none", the ultimate default, which prevents GhostScript being used in preference to qpdf just because environment variable R_GSCMD is set....
2012 Feb 29
0
R 2.14.2 is released + R anniversary
...ed to version 8.21: as well as bug fixes and greater Perl compatibility, this adds a JIT pattern compiler, about which PCRE's news says 'large performance benefits can be had in many situations'. This is supported on most but not all R platforms. o Function compactPDF() in package tools now takes the default for argument gs_quality from environment variable GS_QUALITY: there is a new value "none", the ultimate default, which prevents GhostScript being used in preference to qpdf just because environment variable R_GSCMD is set....
2011 Jul 08
0
R 2.13.1 is released
...in package tools. ? nobs() now has a "mle" method in package stats4. ? trace() now deals correctly with S4 reference classes and corresponding reference methods (e.g., $trace()) have been added. ? xz has been updated to 5.0.3 (very minor bugfix release). ? tools::compactPDF() gets more compression (usually a little, sometimes a lot) by using the compressed object streams of PDF 1.5. ? cairo_ps(onefile = TRUE) generates encapsulated EPS on platforms with cairo >= 1.6. ? Binary reads (e.g. by readChar() and readBin()) are now supported...
2011 Jul 08
0
R 2.13.1 is released
...in package tools. ? nobs() now has a "mle" method in package stats4. ? trace() now deals correctly with S4 reference classes and corresponding reference methods (e.g., $trace()) have been added. ? xz has been updated to 5.0.3 (very minor bugfix release). ? tools::compactPDF() gets more compression (usually a little, sometimes a lot) by using the compressed object streams of PDF 1.5. ? cairo_ps(onefile = TRUE) generates encapsulated EPS on platforms with cairo >= 1.6. ? Binary reads (e.g. by readChar() and readBin()) are now supported...
2011 Apr 13
0
R 2.13.0 is released
...no longer fails for vectors or matrices containing NAs. ? New hook "before.new.plot" allows functions to be run just before advancing the frame in plot.new, which is potentially useful for custom figure layout implementations. ? Package tools has a new function compactPDF() to try to reduce the size of PDF files _via_ qpdf or gs. ? tar() has a new argument extra_flags. ? dotchart() accepts more general objects x such as 1D tables which can be coerced by as.numeric() to a numeric vector, with a warning since that might not be appropriate....