From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73454 Path: news.gmane.org!not-for-mail From: Jan Heinen Newsgroups: gmane.comp.tex.context Subject: Re: Huge PDFs Date: Thu, 29 Dec 2011 17:34:51 +0100 Message-ID: <4EFC96AB.5040604@gmx.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1616670812==" X-Trace: dough.gmane.org 1325176508 1868 80.91.229.12 (29 Dec 2011 16:35:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2011 16:35:08 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 29 17:35:02 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RgIwX-0005lN-KF for gctc-ntg-context-518@m.gmane.org; Thu, 29 Dec 2011 17:35:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69D31CB1B8; Thu, 29 Dec 2011 17:35:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CYOKvHdaEhEm; Thu, 29 Dec 2011 17:35:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8143CCB1B3; Thu, 29 Dec 2011 17:34:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 48E46CB1B3 for ; Thu, 29 Dec 2011 17:34:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id f4+KNvx1V5LI for ; Thu, 29 Dec 2011 17:34:54 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 730BFCB1B0 for ; Thu, 29 Dec 2011 17:34:54 +0100 (CET) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBTGYrSc002757 for ; Thu, 29 Dec 2011 17:34:53 +0100 Original-Received: from [192.168.178.101] (p57BA0F82.dip0.t-ipconnect.de [87.186.15.130]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0McnGz-1RP3Cn2Y3F-00HzYS; Thu, 29 Dec 2011 17:34:53 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 In-Reply-To: X-Provags-ID: V02:K0:6LF8PppoqA7cXKnKRYv9/XOweUFRa9hPQsCNUfniKRH WcDfxWNMiqo1zR7MBT7WPUhaf0A2bDOKkJVnO9Z7T+gFlceBFn o9PNjomj2T7Avnt9Xn9pO5Pk23t5Rh8QosnFgu4FaChR6VV/fo 17qIbbYimCH8QZ6qx2C7CUvXXggTH97DiAOYR/hJBejAnTnodW r0c+eWk6KkBiIGBIqNtUXOXayaRxJJ5DuRSavhPRGSKJCaNhIx lV1DV6zrLIar5DTIrejhRXyYru+AQPaUdmCvlLdbCaHOAXv/Y8 HCG8pFZp8K1EraGP54xjRF4cLPcnNnVJynl/gIrws0r4tAueXO rb87vMekSm8dMTx3CZV4= X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.17.10; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08Gf4yRil - e6c88c9ac1c8 - 20111229 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73454 Archived-At: This is a multi-part message in MIME format. --===============1616670812== Content-Type: multipart/alternative; boundary="------------040106060907010506010002" This is a multi-part message in MIME format. --------------040106060907010506010002 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit >/ pdf -> pdftops ->ps ->ghostscript ->pdf />/ seems to be more robust and gives better results />/ -- />/ luigi / I will give it a try: Can you tell me the commands with all the parameters I need ? I have tried the following: #!/bin/sh suffix="_opt.pdf" pdftops -paper match -level3 $1.pdf tmp.ps gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dColorConversionStrategy=/LeaveColorUnchanged -dBATCH -dNOPAUSE -sOutputFile=$1.pdf$suffix tmp.ps rm tmp.ps But in some cases the PDF-files got bigger instead of smaller. Regards Jannis --------------040106060907010506010002 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
>  pdf ->  pdftops ->ps ->ghostscript ->pdf
>  seems to be more robust and gives better results
>  -- 
>  luigi

I will give it a try:
Can you tell me the commands with all the parameters I need ?


I have tried the following:

#!/bin/sh
suffix="_opt.pdf"
pdftops -paper match -level3 $1.pdf tmp.ps
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dColorConversionStrategy=/LeaveColorUnchanged -dBATCH -dNOPAUSE -sOutputFile=$1.pdf$suffix tmp.ps
rm tmp.ps


But in some cases the PDF-files got bigger instead of smaller.


Regards
Jannis

--------------040106060907010506010002-- --===============1616670812== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1616670812==--