ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* merging pdf (repost)
@ 2003-08-07 12:29 scarso luigi
  2003-08-07 13:52 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: scarso luigi @ 2003-08-07 12:29 UTC (permalink / raw)


Hello, I use this code to merge file1.pdf, file2.pdf, file3.pdf  in
file4.pdf

% format=english
\definepapersize[A3large][width=320mm,height=450mm,offset=0pt]
\setuppapersize[A3,landscape][A3large,landscape]
\setuplayout
    [backspace=0pt,marking=on,
     height=middle,width=middle,location=middle,
     topspace=0pt,
     header=0pt,
     footer=0pt]
\starttext';

\insertpages[file1.pdf][width=0pt]
\insertpages[file2.pdf][width=0pt]
\insertpages[file3.pdf][width=0pt]
\stoptext

where 
file1 is    481 031 bytes
file2 is  1 277 167 bytes and
file3 is     43 574 bytes. I expected ~2 Mbytes for file4.pdf but 
file4 is 10 601 693 bytes, ie ~five times the size expected.
Why ?

Thanks in advance
luigi

PS.
I have a context distribution that is 1 year old, but i can't actually
upgrade it (well, if I must do it, I will do !)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: merging pdf (repost)
  2003-08-07 12:29 merging pdf (repost) scarso luigi
@ 2003-08-07 13:52 ` Hans Hagen
  2003-08-07 16:10   ` merging pdf scarso luigi
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2003-08-07 13:52 UTC (permalink / raw)


At 14:29 07/08/2003 +0200, you wrote:
>Hello, I use this code to merge file1.pdf, file2.pdf, file3.pdf  in
>file4.pdf
>
>% format=english
>\definepapersize[A3large][width=320mm,height=450mm,offset=0pt]
>\setuppapersize[A3,landscape][A3large,landscape]
>\setuplayout
>     [backspace=0pt,marking=on,
>      height=middle,width=middle,location=middle,
>      topspace=0pt,
>      header=0pt,
>      footer=0pt]
>\starttext';
>
>\insertpages[file1.pdf][width=0pt]
>\insertpages[file2.pdf][width=0pt]
>\insertpages[file3.pdf][width=0pt]
>\stoptext
>
>where
>file1 is    481 031 bytes
>file2 is  1 277 167 bytes and
>file3 is     43 574 bytes. I expected ~2 Mbytes for file4.pdf but
>file4 is 10 601 693 bytes, ie ~five times the size expected.
>Why ?
>
>Thanks in advance
>luigi
>
>PS.
>I have a context distribution that is 1 year old, but i can't actually
>upgrade it (well, if I must do it, I will do !)

maybe an not supported compression scheme?

in a couple of weeks a new tex live is out, so a newer pdftex (xpdf lib) 
may have solvedthe problem.

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: merging pdf
  2003-08-07 13:52 ` Hans Hagen
@ 2003-08-07 16:10   ` scarso luigi
  2003-08-08  7:58     ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: scarso luigi @ 2003-08-07 16:10 UTC (permalink / raw)


Thanks Hans for the answer.

I made another try with
file1.tex:

\setuppapersize[A3,landscape][A3,landscape]
\starttext
\dorecurse{1500}{\input tufte \par \input knuth \par}
\stoptext


and merge.tex:

\definepapersize[A3large][width=320mm,height=450mm,offset=0pt]
\setuppapersize[A3,landscape][A3,landscape]
\setuplayout
    [backspace=0pt,marking=on,
     height=middle,width=middle,location=middle,
     topspace=0pt,
     header=0pt,
     footer=0pt]
\starttext
\insertpages[file1.pdf][width=0pt]
\stoptext

The results are:
 799537 ago  7 17:55 file1.pdf
1515097 ago  7 17:56 merge.pdf

Also pdffonts file1.pdf give
name                                 type         emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
EGNYTD+CMR12                         Type 1       yes yes no       6  0


but  pdffonts merge.pdf give
name                                 type         emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
AGPRLI+CMSS8                         Type 1       yes yes no      15  0
MGUYCG+CMR12                         Type 1       yes yes no       7  0
:
:
MGUYCG+CMR12                         Type 1       yes yes no       7  0


ie the  line
MGUYCG+CMR12                         Type 1       yes yes no       7  0
 is repeated 408 (yes, four hundred) times .

Do I mess with pdftex.cfg or some *.map files ?


luigi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: merging pdf
  2003-08-07 16:10   ` merging pdf scarso luigi
@ 2003-08-08  7:58     ` Hans Hagen
  2003-08-08  8:48       ` scarso luigi
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2003-08-08  7:58 UTC (permalink / raw)


At 18:10 07/08/2003 +0200, you wrote:

>The results are:
>  799537 ago  7 17:55 file1.pdf
>1515097 ago  7 17:56 merge.pdf

here i get:

   805,366 test.pdf
1,053,739 test1.pdf

so .. what version of pdftex are you running

normally pdftex combines fonts data (esp the glyph code) that it knows; 
some overhead is to be expected form the rather verbose resource related code

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: merging pdf
  2003-08-08  7:58     ` Hans Hagen
@ 2003-08-08  8:48       ` scarso luigi
  2003-08-08 10:20         ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: scarso luigi @ 2003-08-08  8:48 UTC (permalink / raw)



> 
> >The results are:
> >  799537 ago  7 17:55 file1.pdf
> >1515097 ago  7 17:56 merge.pdf
> 
> here i get:
> 
>    805,366 test.pdf
> 1,053,739 test1.pdf
> 
> so .. what version of pdftex are you running
> 
This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1)

luigi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: merging pdf
  2003-08-08  8:48       ` scarso luigi
@ 2003-08-08 10:20         ` Hans Hagen
  2003-08-08 12:15           ` scarso luigi
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2003-08-08 10:20 UTC (permalink / raw)


At 10:48 08/08/2003 +0200, you wrote:

>This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1)

hm, then update to 1.0 or higher

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: merging pdf
  2003-08-08 10:20         ` Hans Hagen
@ 2003-08-08 12:15           ` scarso luigi
  2003-08-08 12:59             ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: scarso luigi @ 2003-08-08 12:15 UTC (permalink / raw)


Good news, 
it seem to work after updating to 1.11
( This is pdfTeXk, Version 3.141592-1.11a (Web2C 7.5.2))

I get
  797,077 test.pdf
1,078,539 test1.pdf
and your test was
  805,366 test.pdf
1,053,739 test1.pdf 

(Does it depend from pdftex version ?)

Previous merging is also good: I have now  1,767,252 bytes
(it was ~10Mbytes)

Many thanks Hans

luigi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: merging pdf
  2003-08-08 12:15           ` scarso luigi
@ 2003-08-08 12:59             ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2003-08-08 12:59 UTC (permalink / raw)


At 14:15 08/08/2003 +0200, scarso luigi wrote:
>Good news,
>it seem to work after updating to 1.11
>( This is pdfTeXk, Version 3.141592-1.11a (Web2C 7.5.2))
>
>I get
>   797,077 test.pdf
>1,078,539 test1.pdf
>and your test was
>   805,366 test.pdf
>1,053,739 test1.pdf
>
>(Does it depend from pdftex version ?)
>
>Previous merging is also good: I have now  1,767,252 bytes
>(it was ~10Mbytes)

i used 1.10a for that test (1.11 is in my test suite) and there are indeed 
differences between pdftex versions: the latest greatest has a couple of 
optimizations, even more accuracy, a few more features etc. Also, the xpdf 
lib plays a role in producing code.

(version 1+ avoids redundant copies of objects when including multiple 
pages from a file)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-08-08 12:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-07 12:29 merging pdf (repost) scarso luigi
2003-08-07 13:52 ` Hans Hagen
2003-08-07 16:10   ` merging pdf scarso luigi
2003-08-08  7:58     ` Hans Hagen
2003-08-08  8:48       ` scarso luigi
2003-08-08 10:20         ` Hans Hagen
2003-08-08 12:15           ` scarso luigi
2003-08-08 12:59             ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).