Package Details: pdfsizeopt-git r533.dc08a10-1

Git Clone URL: https://aur.archlinux.org/pdfsizeopt-git.git (read-only, click to copy)
Package Base: pdfsizeopt-git
Description: PDF file size optimizer
Upstream URL: https://github.com/pts/pdfsizeopt
Licenses: GPL2
Conflicts: pdfsizeopt-svn
Provides: pdfsizeopt
Replaces: pdfsizeopt-svn
Submitter: shtrom
Maintainer: shtrom
Last Packager: shtrom
Votes: 10
Popularity: 0.000000
First Submitted: 2016-08-20 08:10 (UTC)
Last Updated: 2018-08-07 09:33 (UTC)

Dependencies (10)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

ilario commented on 2024-12-25 09:32 (UTC)

I obtained this error, that could be due to an incompatibility with GhostScript 10.04. Instead, installing with the instructions from the README file resulted in a working software: https://github.com/pts/pdfsizeopt/blob/master/README.md#installation-instructions-and-usage-on-linux

Here goes the output of pdfsizeopt as installed using yay:

info: This is pdfsizeopt ZIP rUNKNOWN size=69857.
info: prepending to PATH: /usr/bin
info: loading PDF from: Print_and_play.pdf
info: loaded PDF of 24487758 bytes
info: separated to 1667 objs + xref + trailer
info: parsed 1667 objs
info: found 1 Type1 fonts loaded
info: writing Type1CConverter (9561 font bytes) to: psotmp.163534.conv.tmp.ps
info: using Ghostscript TMPDIR=. TEMP=. gs: GPL Ghostscript 10.04.0 (2024-09-18); see the file COPYING for details.
info: executing Type1CConverter with Ghostscript: TMPDIR=. TEMP=. gs -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dColorConversionStrategy=/LeaveColorUnchanged -sOutputFile=psotmp.163534.conv.tmp.pdf -f psotmp.163534.conv.tmp.ps
Error: /undefined in .setpdfwrite
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1949   1   3   %oparray_pop   1948   1   3   %oparray_pop   1933   1   3   %oparray_pop   1803   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:749/1123(ro)(G)--   --dict:0/20(G)--   --dict:101/200(L)--
Current allocation mode is local
Current file position is 3820
GPL Ghostscript 10.04.0: Unrecoverable error, exit code 1
fatal: Type1CConverter failed, status=0x100

shtrom commented on 2018-08-07 09:37 (UTC)

Thanks for the explanation. I added the optdepend.

wilbowma commented on 2018-07-17 15:17 (UTC)

It's an optional run-time dependency that can be enabled with a command-line flag, the same as pngout and jbig2. It's an image processor like pngout, but with multi-threading support. You can use it by calling:

pdfsizeopt --use-image-optimizer=ECT $input

Or in conjunction with other image optimizes:

pdfsizeopt --use-jbig2 --use-image-optimizer=ECT $input

This is discussed in the Image optimizers section of the pdfsizeopt README.

shtrom commented on 2018-07-04 10:28 (UTC) (edited on 2018-07-04 10:34 (UTC) by shtrom)

Ah, thanks for that. I'll fix the optdepends issue in a minute.

I'm not sure about ECT, though. Is it a compile-time dependency? In this case, I don't think we can make it an optional dependency. I'm also uncertain as to when the command line argument you gave needs to be placed. The upstream README isn't very clear about this either.

wilbowma commented on 2018-06-30 04:37 (UTC)

ect has been added to the AUR (https://aur.archlinux.org/packages/ect), and is supported by pdfsizeopt; it could be made an optional dependency, and enabled with use-image-optimizer=ECT

Also, there's a typo in the description of the optional dependencies:

jbig2enc (jbig2enc-git) (optional) – to manage JBIG2 parts [use --use-pngout=true] 
pngout (optional) – to optimise the size of PNG parts [use --use-jbig2=true]

The flags in the description for these are reverse.

shtrom commented on 2017-09-24 02:25 (UTC)

Done. Not sure why it didn't before...

eduardosm commented on 2017-09-23 16:38 (UTC)

Please, fix the .SRCINFO file

shtrom commented on 2017-01-25 09:53 (UTC)

Ah, good point. Fixed.

OldDragon2A commented on 2017-01-24 17:26 (UTC)

Why does this still depend on subversion?

shtrom commented on 2016-10-12 10:10 (UTC)

Good point, fixed.