Re: [NTG-context] mkiv fails to load pdf image

2009-10-06 Thread zs
On Mon, 5 Oct 2009 14:21:27 +0200
Martin Schröder mar...@oneiros.de wrote:

 2009/10/5 Taco Hoekwater t...@elvenkind.com:
  Somehow this is related to the example.pdf, because using cow.pdf works
  just fine.
 
 example.pdf has a /Group. And it works here in pdfTeX 1.50  LaTeX.
 Can LuaTeX handle pdf inclusion with transparency groups?

It was formerly able to handle it seamlessly for very long time, only recent 
version cannot.

Zdenek
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv fails to load pdf image

2009-10-06 Thread Taco Hoekwater


zs wrote:
 On Mon, 5 Oct 2009 14:21:27 +0200
 Martin Schröder mar...@oneiros.de wrote:
 
 2009/10/5 Taco Hoekwater t...@elvenkind.com:
 Somehow this is related to the example.pdf, because using cow.pdf works
 just fine.
 example.pdf has a /Group. And it works here in pdfTeX 1.50  LaTeX.
 Can LuaTeX handle pdf inclusion with transparency groups?
 
 It was formerly able to handle it seamlessly for very long time, only recent 
 version cannot.

That means it is probably a regression caused by the backend rewrite.
I will create an item for this in the bug tracker.

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv fails to load pdf image

2009-10-05 Thread Wolfgang Schuster


Am 05.10.2009 um 12:46 schrieb zs:


Hi all,

I found that using latest I cannot get readable pdf file from  
folowing minimal code.


Works OK here.

This is LuaTeX, Version beta-0.43.0-2009081911
MTXrun | current version: 2009.10.02 13:14


. texexec -pdf minimal


You don't need the 'pdf' parameter for texexec because PDF is the  
default output format.


\placefigure[here,force][]{none}{\externalfigure[example.pdf] 
[width=10cm]}


Use 'none' as \placefigure argument in MkIV (\placefigure 
[here,force,none]{}{...}).


Wolfgang


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv fails to load pdf image

2009-10-05 Thread Taco Hoekwater

Hi,

Wolfgang Schuster wrote:


Am 05.10.2009 um 12:46 schrieb zs:


Hi all,

I found that using latest I cannot get readable pdf file from folowing 
minimal code.


Works OK here.


Here ConTeXt  ver: 2009.09.25 12:15 MKIV  fmt: 2009.9.25, as well as
ConTeXt  ver: 2009.09.28 09:02 MKIV  fmt: 2009.10.5 with luatex 0.43
both result in an invalid page catalog with compression on (default):

  xpdf ex.pdf
  Error: Catalog object is wrong type (null)
  Error: Couldn't read page catalog

and with just a broken xref table with object compression off
(\nopdfcompression or \pdfobjcompresslevel=0):

  xpdf ex.pdf
  Error: PDF file is damaged - attempting to reconstruct xref table...

Somehow this is related to the example.pdf, because using cow.pdf works
just fine.

Best wishes,
Taco

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv fails to load pdf image

2009-10-05 Thread Taco Hoekwater

Taco Hoekwater wrote:

and with just a broken xref table with object compression off
(\nopdfcompression or \pdfobjcompresslevel=0):

  xpdf ex.pdf
  Error: PDF file is damaged - attempting to reconstruct xref table...

Somehow this is related to the example.pdf, because using cow.pdf works
just fine.


Also, after

  pdf2ps  ps2pdf example.pdf

it works correctly also.

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv fails to load pdf image

2009-10-05 Thread zs

 Somehow this is related to the example.pdf, because using cow.pdf works
 just fine.
 
 Best wishes,
 Taco

...yes it it related to the example.pdf or better to any pdf produced by cairo 
library (1.8.6 in my case).
Using other pdf producers (pdflib, gs) file inclusion works fine.

Do you suppose it is cairo's fault? If yes, why did it work before?

Further investigation:
example.pdf does not seem to be corrupted.
Applying pdfopt to that does not help.
Conversion pdf-ps-pdf through gs makes it usable for inclusion by recent 
minimals.

Zdenek
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv fails to load pdf image

2009-10-05 Thread Martin Schröder
2009/10/5 Taco Hoekwater t...@elvenkind.com:
 Somehow this is related to the example.pdf, because using cow.pdf works
 just fine.

example.pdf has a /Group. And it works here in pdfTeX 1.50  LaTeX.
Can LuaTeX handle pdf inclusion with transparency groups?

Best
   Martin
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv fails to load pdf image

2009-10-05 Thread luigi scarso
On Mon, Oct 5, 2009 at 1:26 PM, Taco Hoekwater t...@elvenkind.com wrote:

 Taco Hoekwater wrote:

 and with just a broken xref table with object compression off
 (\nopdfcompression or \pdfobjcompresslevel=0):

  xpdf ex.pdf
  Error: PDF file is damaged - attempting to reconstruct xref table...

 Somehow this is related to the example.pdf, because using cow.pdf works
 just fine.


 Also, after

  pdf2ps  ps2pdf example.pdf

 it works correctly also.


 # context --version
MTXrun | current version: 2009.09.13 14:24

# luatex --credits
This is LuaTeX, Version beta-0.43.0-2009081914


\pdfobjcompresslevel0
\pdfcompresslevel0
\starttext \externalfigure[example] \stoptext

It seems that there is a spurios \n just at the beginning
#hexdump -c test.pdf


000  \n   %   P   D   F   -   1   .   5  \n   % 320 324 305 330  \n
010   1   3   0   o   b   j\n   /   L   e   n



 Best wishes,
 Taco

 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___




-- 
luigi
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv fails to load pdf image

2009-10-05 Thread Taco Hoekwater

Hi,

Martin Schröder wrote:
 2009/10/5 Taco Hoekwater t...@elvenkind.com:
 Somehow this is related to the example.pdf, because using cow.pdf works
 just fine.
 
 example.pdf has a /Group. And it works here in pdfTeX 1.50  LaTeX.
 Can LuaTeX handle pdf inclusion with transparency groups?

This could very well be the problem.

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___