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
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
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
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
On Mon, Oct 5, 2009 at 1:26 PM, 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.
# 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
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
Hi, Martin Schröder wrote:
2009/10/5 Taco Hoekwater
: 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
On Mon, 5 Oct 2009 14:21:27 +0200
Martin Schröder
2009/10/5 Taco Hoekwater
: 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
zs wrote:
On Mon, 5 Oct 2009 14:21:27 +0200 Martin Schröder
wrote: 2009/10/5 Taco Hoekwater
: 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
participants (5)
-
luigi scarso
-
Martin Schröder
-
Taco Hoekwater
-
Wolfgang Schuster
-
zs