Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revoir option -noimage #16

Open
JLuc opened this issue Sep 1, 2017 · 0 comments
Open

revoir option -noimage #16

JLuc opened this issue Sep 1, 2017 · 0 comments

Comments

@JLuc
Copy link
Owner

JLuc commented Sep 1, 2017

Plutôt que la bidouille actuelle qui renomme temporairement les répertoires d'images et regénére le PDF (Cf #35), utiliser les outils PDFs permettant d'enlever les images ou les vecteurs d'un PDF , et sauvegarder sous un autre nom.

  • Il semble qu'il n'y a pas d'option scribus pour générer le PDF sans image. Vérifier.

  • ghostscript : (Cf stackoverflow )

 gs -o noIMG.pdf   -sDEVICE=pdfwrite -dFILTERIMAGE                input.pdf
 gs -o noTXT.pdf   -sDEVICE=pdfwrite -dFILTERTEXT                 input.pdf
 gs -o noVCT.pdf   -sDEVICE=pdfwrite -dFILTERVECTOR               input.pdf

 gs -o onlyTXT.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERIMAGE input.pdf 
 gs -o onlyIMG.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERTEXT  input.pdf
 gs -o onlyVCT.pdf -sDEVICE=pdfwrite -dFILTERIMAGE  -dFILTERTEXT  input.pdf

  • cpdf -draft original.pdf -o version_without_images.pdf (Cf askubuntu )

It is not in the repositories but you can find a download (pre-compiled or source) on their website.

Manual: 15.1 Draft Documents
The -draft option removes bitmap (photographic) images from a file, so that it can be printed with less ink. Optionally, the -boxes option can be added, filling the spaces left blank with a crossed box denoting where the image was. This is not guaranteed to be fully visible in all cases (the bitmap may be have been partially covered by vector objects or clipped in the original).

For example: cpdf -draft -boxes in.pdf -o out.pdf

@JLuc JLuc changed the title option -noimage revoir option -noimage Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant