From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53607 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: comparing pdfs Date: Wed, 21 Oct 2009 16:13:19 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1256134435 27781 80.91.229.12 (21 Oct 2009 14:13:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Oct 2009 14:13:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 21 16:13:44 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1N0bwQ-0003Us-UT for gctc-ntg-context-518@m.gmane.org; Wed, 21 Oct 2009 16:13:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F50FC9ABB; Wed, 21 Oct 2009 16:12:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4yGz8n5bDoJ0; Wed, 21 Oct 2009 16:12:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0B207C9AC1; Wed, 21 Oct 2009 16:12:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A60AEC9AC1 for ; Wed, 21 Oct 2009 16:12:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eMCtnRy1FyFN for ; Wed, 21 Oct 2009 16:12:29 +0200 (CEST) Original-Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by balder.ntg.nl (Postfix) with ESMTP id 0BBD1C9ABB for ; Wed, 21 Oct 2009 16:12:28 +0200 (CEST) Original-Received: by bwz20 with SMTP id 20so248788bwz.34 for ; Wed, 21 Oct 2009 07:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=kK2SnZmrN+saAzUu2K+qqVfqzqlofK7aWNgvuhLG9Gs=; b=MT99EYwNZJ1C9dootmoBQegwOITAXSxSOrZy6mkOkH2InU4RlKcmNudDENrDjamtGS dhbIWmlaug4CEWp8fnQwwJcgv1hE5G8kMUO9GfF26nOKFgxneQegiPWMoOli4dWOeJtd r2B9uCv/AW3xvF90VCAayt6ZwAyWWI3qVjfvg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=a/0etGAV3FAhuItVmFy+ibEiz8FrjXJ5Ny9aP8uIpej9Pe/YjTaKy/iyhqOjhqZCDe +B/8ArOzoyFRnY2x/8OSM9pZFTE68U+W9kIfHevXHf7uPfgEO7kE5HLY2jjRQ5e58GBR ilYmbfPEORdlvYuhh9TZTkwjEBk/v6aj9HXfw= Original-Received: by 10.204.8.155 with SMTP id h27mr8024033bkh.55.1256134399106; Wed, 21 Oct 2009 07:13:19 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:53607 Archived-At: Maybe stupid Consider this (you must have cow.pdf in the same dir): %%test-1.tex \setupcolors[state=start] \setupinteraction[state=start] \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{Chapter} \section{Section} \input tufte \externalfigure[cow] \chapter{Chapter 2} \section{Section} \input knuth \stopbodymatter \stoptext with markii $>texexec --pdf test-1.tex $>cp test-1.pdf test-1a.pdf $>texexec --pdf test-1.tex $>pdftoppm test-1a.pdf test-1a- $>pdftoppm test-1.pdf test-1- $> cmp test-1a.pdf test-1.pdf test-1a.pdf test-1.pdf differ: byte 35086, line 220 of course at least /ID is different $>for j in `seq 1 4`; do cmp test-1a--$j.ppm test-1--$j.ppm ; done and, again of course, *no differences* because the files are equals page-by-page -- so they are equals Is there a way more quick and clean than for cycle and ppm files? -- 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 ___________________________________________________________________________________