From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37928 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: Unwanted information in PDF files Date: Wed, 12 Dec 2007 14:18:58 +0100 Message-ID: <475FDFC2.9050609@gmx.net> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1197465640 19030 80.91.229.12 (12 Dec 2007 13:20:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2007 13:20:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 12 14:20:50 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1J2RVx-0005NY-Gs for gctc-ntg-context-518@m.gmane.org; Wed, 12 Dec 2007 14:20:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A50F71FB1B; Wed, 12 Dec 2007 14:20:23 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08606-02-2; Wed, 12 Dec 2007 14:19:45 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5F5AD1FAE4; Wed, 12 Dec 2007 14:19:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B53A71FA63 for ; Wed, 12 Dec 2007 14:19:41 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12087-01-2 for ; Wed, 12 Dec 2007 14:19:02 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 894751FB0B for ; Wed, 12 Dec 2007 14:18:59 +0100 (CET) Original-Received: (qmail invoked by alias); 12 Dec 2007 13:18:58 -0000 Original-Received: from i5387D694.versanet.de (EHLO [192.168.1.3]) [83.135.214.148] by mail.gmx.net (mp057) with SMTP; 12 Dec 2007 14:18:58 +0100 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX1/ZN75ACdTZx9H9hWQduRnKlruIoqXfWQeMb5oLq7 H3cDMbjsnqypZO User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: X-Enigmail-Version: 0.95.5 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37928 Archived-At: Maur=ED=ADcio schrieb: > Hi, > = > After generating a PDF from a .tex file, > I changed the name of the resulting PDF to > something else. But when I open that file in > 'evince', it still shows the old file name. > = > I opened that file in emacs in saw that I lot > of info is stored in the PDF file: original file > name, creation date, "generated by Context" etc. > Hit Ctrl-D in Acrobat (while viewing the document), tabs "Description" and "Custom"... > That can be a problem sometimes. For instance, > someone wouldn't want to write a file like > 'I_hate_my_job.tex' and then change the result > to 'report_to_boss.pdf', just to see his manager > opening the file and reading the first name. Or, > in my situation, write a file with special > Unicode characters and see evince show the file > name as bogus characters. > Not the best example, but in general I agree. In my special case I don't want the overhead for smaler standalone metapost graphics (for inclusion only). > How can I instruct Context not to write anything > inside the PDF file that I have not asked for? > There is currently no interface for this. But you are free (with the risk of breaking things now or in the future) to change the code for your needs. Add this to a standalone file (reporttoboss.tex?) for inclusion and comment the info you don't want: \unprotect % code taken from spec-fdf.tex \def\doPDFsetupidentity#1#2#3#4#5#6% {\bgroup \enablePDFdocencoding \edef\!!stringa{#5}% \ifx\!!stringa\empty \ifx\pdfdate\undefined\else \edef\!!stringa{D:\pdfdate}% \fi \fi \expanded{\doPDFaddtoinfo {/Title (#1) /Subject (#2) /Author (#3) /Creator (#4) /ModDate (\!!stringa) %% /ID (\jobname.\!!stringa) % needed for pdf/x /Keywords (#6)}}% \egroup} \def\addPDFdocumentinfo {\doPDFaddtocatalog{\currentPDFpagemode\currentPDFviewerprefs}% \doPDFaddtocatalog{/Version \ifdim\PDFversion00\points>100\points 1.\fi\PDFversion}% \doPDFaddtoinfo{/Trapped /False}% !leave unchanged! \doPDFaddtoinfo{/ConTeXt.Version (\contextversion)}% \doPDFaddtoinfo{/ConTeXt.Time (\number\normalyear.\twodigits\normalmonth.\twodigits\normalday\space \twodigits\currenthour:\twodigits\currentminute)}% %% \doPDFaddtoinfo{/ConTeXt.Jobname (\jobname)}% \doPDFaddtoinfo{/ConTeXt.Url (www.pragma-ade.com)}} \protect \endinput See the pdf reference manual for more details. And better check from time to time if things have changed. This is ConTeXt ;) Regards, Peter > Thanks, > Maur=EDcio > = > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ > = ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________