ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* qpdf broken with beta since 2001/02/08
@ 2011-02-10 11:29 Reviczky, Adam
  2011-02-10 11:43 ` Hans Hagen
  2011-02-10 12:24 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Reviczky, Adam @ 2011-02-10 11:29 UTC (permalink / raw)
  To: ntg-context

Hi

I have a problem using qpdf (http://qpdf.sourceforge.net/) with context beta since 2011.02.08.
Don't really know whose fault it is, but there might be something wrong with mkiv.

All I want to do is generating a linearized (web optimized) pdf using qpdf as hinted on this list (see http://www.ntg.nl/pipermail/ntg-context/2011/055626.html).
I was able to use it until context beta 2011.02.08, and getting an error since.

Here's what I'm doing:

1)
test.tex contains
%%%
\starttext
Hello world!
\stoptext
%%%

2) running "context test.tex" to make the pdf

3) running "qpdf --linearize test.pdf out.pdf"
which creates the optimized out.pdf

So up until and including context beta 2011.02.05 everything was working.
---
reviczky@calcium ~/Desktop % qpdf --linearize test.pdf out.pdf
reviczky@calcium ~/Desktop %                                                   
---

But since beta 2011.02.08 (10:06) I get just a very brief error:
---
reviczky@calcium ~/Desktop % qpdf --linearize test.pdf out.pdf
operation for Name object attempted on object of wrong type
2 reviczky@calcium ~/Desktop %                                              :( 
---

Does anyone have a clue what might go wrong here?
Does context beta (mkiv) generates broken pdf's now? How can I check that?
qpdf isn't too helpful with that:
---
checking test.pdf
PDF Version: 1.6
File is not encrypted
File is not linearized
No syntax or stream encoding errors found; the file may still contain
errors that qpdf cannot detect
---

Perhaps there's something new in context that breaks the qpdf check?

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


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

* Re: qpdf broken with beta since 2001/02/08
  2011-02-10 11:29 qpdf broken with beta since 2001/02/08 Reviczky, Adam
@ 2011-02-10 11:43 ` Hans Hagen
  2011-02-10 11:49   ` Martin Schröder
  2011-02-10 12:24 ` Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2011-02-10 11:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Reviczky, Adam

On 10-2-2011 12:29, Reviczky, Adam wrote:
> Hi
>
> I have a problem using qpdf (http://qpdf.sourceforge.net/) with context beta since 2011.02.08.
> Don't really know whose fault it is, but there might be something wrong with mkiv.
>
> All I want to do is generating a linearized (web optimized) pdf using qpdf as hinted on this list (see http://www.ntg.nl/pipermail/ntg-context/2011/055626.html).
> I was able to use it until context beta 2011.02.08, and getting an error since.
>
> Here's what I'm doing:
>
> 1)
> test.tex contains
> %%%
> \starttext
> Hello world!
> \stoptext
> %%%
>
> 2) running "context test.tex" to make the pdf
>
> 3) running "qpdf --linearize test.pdf out.pdf"
> which creates the optimized out.pdf
>
> So up until and including context beta 2011.02.05 everything was working.
> ---
> reviczky@calcium ~/Desktop % qpdf --linearize test.pdf out.pdf
> reviczky@calcium ~/Desktop %
> ---
>
> But since beta 2011.02.08 (10:06) I get just a very brief error:
> ---
> reviczky@calcium ~/Desktop % qpdf --linearize test.pdf out.pdf
> operation for Name object attempted on object of wrong type
> 2 reviczky@calcium ~/Desktop %                                              :(
> ---
>
> Does anyone have a clue what might go wrong here?
> Does context beta (mkiv) generates broken pdf's now? How can I check that?
> qpdf isn't too helpful with that:
> ---
> checking test.pdf
> PDF Version: 1.6
> File is not encrypted
> File is not linearized
> No syntax or stream encoding errors found; the file may still contain
> errors that qpdf cannot detect

best is to make two pdf files that are as small as possible and send 
them off-list to Luigi and me so that we can look into them.

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
___________________________________________________________________________________


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

* Re: qpdf broken with beta since 2001/02/08
  2011-02-10 11:43 ` Hans Hagen
@ 2011-02-10 11:49   ` Martin Schröder
  2011-02-10 16:40     ` luigi scarso
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Schröder @ 2011-02-10 11:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/2/10 Hans Hagen <pragma@wxs.nl>:
> best is to make two pdf files that are as small as possible and send them
> off-list to Luigi and me so that we can look into them.

And me, please. The qpdf author is very helpfull, though. :-)

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


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

* Re: qpdf broken with beta since 2001/02/08
  2011-02-10 11:29 qpdf broken with beta since 2001/02/08 Reviczky, Adam
  2011-02-10 11:43 ` Hans Hagen
@ 2011-02-10 12:24 ` Hans Hagen
       [not found]   ` <7B4626C28B06A7418E938BF73D6DEE18F9E71DB46C@KCL-MAIL05.kclad.ds.kcl.ac.uk>
  1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2011-02-10 12:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Reviczky, Adam

On 10-2-2011 12:29, Reviczky, Adam wrote:

> Perhaps there's something new in context that breaks the qpdf check?

I can see the problem here. I'll upload a new beta. (There is some 
experimental stuff due to luatex backend changes that I need to disable).

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
___________________________________________________________________________________


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

* Re: qpdf broken with beta since 2001/02/08
       [not found]   ` <7B4626C28B06A7418E938BF73D6DEE18F9E71DB46C@KCL-MAIL05.kclad.ds.kcl.ac.uk>
@ 2011-02-10 13:08     ` Reviczky, Adam
  0 siblings, 0 replies; 6+ messages in thread
From: Reviczky, Adam @ 2011-02-10 13:08 UTC (permalink / raw)
  To: ntg-context

Thanks Hans!

> I can see the problem here. I'll upload a new beta. (There is some
> experimental stuff due to luatex backend changes that I need to disable).
That solved the problem. It works now with the newest beta!

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


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

* Re: qpdf broken with beta since 2001/02/08
  2011-02-10 11:49   ` Martin Schröder
@ 2011-02-10 16:40     ` luigi scarso
  0 siblings, 0 replies; 6+ messages in thread
From: luigi scarso @ 2011-02-10 16:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Feb 10, 2011 at 12:49 PM, Martin Schröder <martin@oneiros.de> wrote:
> 2011/2/10 Hans Hagen <pragma@wxs.nl>:
>> best is to make two pdf files that are as small as possible and send them
>> off-list to Luigi and me so that we can look into them.
>
> And me, please. The qpdf author is very helpfull, though. :-)
>
for emacs users:
save this in qdf-mode.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; the command to comment/uncomment text
(defun qdf-comment-dwim (arg)
"Comment or uncomment current line or region in a smart way.
For detail, see `comment-dwim'."
   (interactive "*P")
   (require 'newcomment)
   (let ((deactivate-mark nil) (comment-start "%") (comment-end ""))
     (comment-dwim arg)))

;; keywords for syntax coloring
(setq myKeywords
 `(
;;   ( ,(regexp-opt '("Sin" "Cos" "Sum") 'word) . font-lock-function-name-face)
;;   ( ,(regexp-opt '("Pi" "Infinity") 'word) . font-lock-constant-face)
  )
)

;; define the major mode.
(define-derived-mode qdf-mode fundamental-mode
"qdf-mode is a major mode for editing language qdf."
  (setq font-lock-defaults '(myKeywords))

  ;; modify the keymap
  (define-key qdf-mode-map [remap comment-dwim] 'qdf-comment-dwim)

  (modify-syntax-entry ?% "< b" qdf-mode-syntax-table)
  (modify-syntax-entry ?\n "> b" qdf-mode-syntax-table)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



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

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

end of thread, other threads:[~2011-02-10 16:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-10 11:29 qpdf broken with beta since 2001/02/08 Reviczky, Adam
2011-02-10 11:43 ` Hans Hagen
2011-02-10 11:49   ` Martin Schröder
2011-02-10 16:40     ` luigi scarso
2011-02-10 12:24 ` Hans Hagen
     [not found]   ` <7B4626C28B06A7418E938BF73D6DEE18F9E71DB46C@KCL-MAIL05.kclad.ds.kcl.ac.uk>
2011-02-10 13:08     ` Reviczky, Adam

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