ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mkiv fails to load pdf image
@ 2009-10-05 10:46 zs
  2009-10-05 11:06 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: zs @ 2009-10-05 10:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

Hi all,

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

This is LuaTeX, Version beta-0.43.0-2009081914
ConTeXt  ver: 2009.10.02 13:14 MKIV  fmt: 2009.10.5  int: english/english
..... "context minimal" gives me corrupted pdf.
..... "texexec -pdf minimal" works OK.


This is LuaTeX, Version beta-0.40.6-2009062513
ConTeXt  ver: 2009.06.14 21:01 MKIV  fmt: 2009.7.15  int: english/english
..... everything works OK.


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

The "example.pdf" is attached.

Zdenek


[-- Attachment #2: example.pdf --]
[-- Type: application/pdf, Size: 3270 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: mkiv fails to load pdf image
  2009-10-05 10:46 mkiv fails to load pdf image zs
@ 2009-10-05 11:06 ` Wolfgang Schuster
  2009-10-05 11:24   ` Taco Hoekwater
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2009-10-05 11:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: mkiv fails to load pdf image
  2009-10-05 11:06 ` Wolfgang Schuster
@ 2009-10-05 11:24   ` Taco Hoekwater
  2009-10-05 11:26     ` Taco Hoekwater
                       ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Taco Hoekwater @ 2009-10-05 11:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: mkiv fails to load pdf image
  2009-10-05 11:24   ` Taco Hoekwater
@ 2009-10-05 11:26     ` Taco Hoekwater
  2009-10-05 12:37       ` luigi scarso
  2009-10-05 11:47     ` zs
  2009-10-05 12:21     ` Martin Schröder
  2 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2009-10-05 11:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: mkiv fails to load pdf image
  2009-10-05 11:24   ` Taco Hoekwater
  2009-10-05 11:26     ` Taco Hoekwater
@ 2009-10-05 11:47     ` zs
  2009-10-05 12:21     ` Martin Schröder
  2 siblings, 0 replies; 10+ messages in thread
From: zs @ 2009-10-05 11:47 UTC (permalink / raw)
  To: ntg-context


> 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
___________________________________________________________________________________


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

* Re: mkiv fails to load pdf image
  2009-10-05 11:24   ` Taco Hoekwater
  2009-10-05 11:26     ` Taco Hoekwater
  2009-10-05 11:47     ` zs
@ 2009-10-05 12:21     ` Martin Schröder
  2009-10-05 12:43       ` Taco Hoekwater
  2009-10-06  7:09       ` zs
  2 siblings, 2 replies; 10+ messages in thread
From: Martin Schröder @ 2009-10-05 12:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2009/10/5 Taco Hoekwater <taco@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
___________________________________________________________________________________


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

* Re: mkiv fails to load pdf image
  2009-10-05 11:26     ` Taco Hoekwater
@ 2009-10-05 12:37       ` luigi scarso
  0 siblings, 0 replies; 10+ messages in thread
From: luigi scarso @ 2009-10-05 12:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1484 bytes --]

On Mon, Oct 5, 2009 at 1:26 PM, Taco Hoekwater <taco@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


0000000  \n   %   P   D   F   -   1   .   5  \n   % 320 324 305 330  \n
0000010   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

[-- Attachment #1.2: Type: text/html, Size: 2752 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: mkiv fails to load pdf image
  2009-10-05 12:21     ` Martin Schröder
@ 2009-10-05 12:43       ` Taco Hoekwater
  2009-10-06  7:09       ` zs
  1 sibling, 0 replies; 10+ messages in thread
From: Taco Hoekwater @ 2009-10-05 12:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Hi,

Martin Schröder wrote:
> 2009/10/5 Taco Hoekwater <taco@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
___________________________________________________________________________________


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

* Re: mkiv fails to load pdf image
  2009-10-05 12:21     ` Martin Schröder
  2009-10-05 12:43       ` Taco Hoekwater
@ 2009-10-06  7:09       ` zs
  2009-10-06  7:13         ` Taco Hoekwater
  1 sibling, 1 reply; 10+ messages in thread
From: zs @ 2009-10-06  7:09 UTC (permalink / raw)
  To: ntg-context

On Mon, 5 Oct 2009 14:21:27 +0200
Martin Schröder <martin@oneiros.de> wrote:

> 2009/10/5 Taco Hoekwater <taco@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
___________________________________________________________________________________

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

* Re: mkiv fails to load pdf image
  2009-10-06  7:09       ` zs
@ 2009-10-06  7:13         ` Taco Hoekwater
  0 siblings, 0 replies; 10+ messages in thread
From: Taco Hoekwater @ 2009-10-06  7:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users



zs wrote:
> On Mon, 5 Oct 2009 14:21:27 +0200
> Martin Schröder <martin@oneiros.de> wrote:
> 
>> 2009/10/5 Taco Hoekwater <taco@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
___________________________________________________________________________________

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

end of thread, other threads:[~2009-10-06  7:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-05 10:46 mkiv fails to load pdf image zs
2009-10-05 11:06 ` Wolfgang Schuster
2009-10-05 11:24   ` Taco Hoekwater
2009-10-05 11:26     ` Taco Hoekwater
2009-10-05 12:37       ` luigi scarso
2009-10-05 11:47     ` zs
2009-10-05 12:21     ` Martin Schröder
2009-10-05 12:43       ` Taco Hoekwater
2009-10-06  7:09       ` zs
2009-10-06  7:13         ` Taco Hoekwater

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).