Re: [NTG-context] Clarification on methods of toggling maximum compression

2012-08-11 Thread Hans Hagen

On 11-8-2012 01:26, Kip Warner wrote:

On Sat, 2012-08-11 at 01:05 +0200, Hans Hagen wrote:

hm, suspicious


Really? It's over 300 pages in length and contains plenty of vector
graphics (more text). But actually that 70 MB seems an overestimate and
I must have been looking at something else.


yes, that's best because as soon as that command is called, the set
value of 'level' is used, no matter what other values has been set


Here is the result of some experimentation:

23,396,929 Bytes using just \setupbackend[level=9].

21,945,243 Bytes using the aforementioned, \pdfcompresslevel9, and
\maximumpdfcompression.

23,396,827 Bytes using none of those three.

So I guess I'm still not sure which one to use since the one you said
should be sufficient doesn't seem to compress it fully.


never use \pdf* commands directly .. way too low level and use the oher
command only for fast tests (i use it in small test files)


I made

\setupbackend[level=9]

listen to that setting also if no 'format' is set. Also, in the report 
at the end of a run, the compress levels are reported so that you can 
check it.



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Clarification on methods of toggling maximum compression

2012-08-11 Thread Kip Warner
On Sat, 2012-08-11 at 12:02 +0200, Hans Hagen wrote:
 I made
 
 \setupbackend[level=9]
 
 listen to that setting also if no 'format' is set. Also, in the report 
 at the end of a run, the compress levels are reported so that you can 
 check it.

Thanks Hans. I'll use that when I pull the next nightly.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

[NTG-context] Clarification on methods of toggling maximum compression

2012-08-10 Thread Kip Warner
Hey list,

I've noticed at least three methods of setting what I think is the
generated PDF to maximum compression.

\setupbackend[level=9]
\pdfcompresslevel9
\maximumpdfcompression

Are these all redundant? Do they do different things? Do I need but one
to achieve the desired maximum compression of the resulting PDF?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Clarification on methods of toggling maximum compression

2012-08-10 Thread Hans Hagen

On 11-8-2012 00:19, Kip Warner wrote:

Hey list,

I've noticed at least three methods of setting what I think is the
generated PDF to maximum compression.


the official way, plays nicely with pdf standards:


\setupbackend[level=9]


pretty low level, might even disappear (overloaded):


\pdfcompresslevel9


low level, but wil stay:


\maximumpdfcompression



Are these all redundant? Do they do different things? Do I need but one
to achieve the desired maximum compression of the resulting PDF?


keep in mind that max compression slows down processing and often not 
much is gained


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Clarification on methods of toggling maximum compression

2012-08-10 Thread Kip Warner
On Sat, 2012-08-11 at 00:57 +0200, Hans Hagen wrote:
  Are these all redundant? Do they do different things? Do I need but one
  to achieve the desired maximum compression of the resulting PDF?
 
 keep in mind that max compression slows down processing and often not 
 much is gained

Hey Hans. My document shrinks from about 70 MB to 20MB with compression.
But back to my original question, do I need all three or are they all
redundant and only one of them I actually need? If only one is
necessary, should I just use \setupbackend[level=9] ?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Clarification on methods of toggling maximum compression

2012-08-10 Thread Hans Hagen

On 11-8-2012 01:00, Kip Warner wrote:

On Sat, 2012-08-11 at 00:57 +0200, Hans Hagen wrote:

Are these all redundant? Do they do different things? Do I need but one
to achieve the desired maximum compression of the resulting PDF?


keep in mind that max compression slows down processing and often not
much is gained


Hey Hans. My document shrinks from about 70 MB to 20MB with compression.


hm, suspicious


But back to my original question, do I need all three or are they all
redundant and only one of them I actually need? If only one is
necessary, should I just use \setupbackend[level=9] ?


yes, that's best because as soon as that command is called, the set 
value of 'level' is used, no matter what other values has been set


never use \pdf* commands directly .. way too low level and use the oher 
command only for fast tests (i use it in small test files)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Clarification on methods of toggling maximum compression

2012-08-10 Thread Kip Warner
On Sat, 2012-08-11 at 01:05 +0200, Hans Hagen wrote:
 hm, suspicious

Really? It's over 300 pages in length and contains plenty of vector
graphics (more text). But actually that 70 MB seems an overestimate and
I must have been looking at something else.

 yes, that's best because as soon as that command is called, the set 
 value of 'level' is used, no matter what other values has been set

Here is the result of some experimentation:

23,396,929 Bytes using just \setupbackend[level=9].

21,945,243 Bytes using the aforementioned, \pdfcompresslevel9, and
\maximumpdfcompression.

23,396,827 Bytes using none of those three.

So I guess I'm still not sure which one to use since the one you said
should be sufficient doesn't seem to compress it fully.

 never use \pdf* commands directly .. way too low level and use the oher 
 command only for fast tests (i use it in small test files)

Understood.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___