From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: PDF docs from Org-mode: not valid PDF? Date: Fri, 14 Dec 2012 19:18:42 +0530 Message-ID: <87pq2ckamd.fsf@gmail.com> References: <1355001391.68403.YahooMailNeo@web122205.mail.ne1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjVp0-00024E-Pc for emacs-orgmode@gnu.org; Fri, 14 Dec 2012 09:01:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjVoy-0003tr-Oz for emacs-orgmode@gnu.org; Fri, 14 Dec 2012 09:01:02 -0500 Received: from mail-da0-f41.google.com ([209.85.210.41]:39911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjVa4-000098-0T for emacs-orgmode@gnu.org; Fri, 14 Dec 2012 08:45:36 -0500 Received: by mail-da0-f41.google.com with SMTP id e20so1374139dak.0 for ; Fri, 14 Dec 2012 05:45:35 -0800 (PST) In-Reply-To: <1355001391.68403.YahooMailNeo@web122205.mail.ne1.yahoo.com> (Michael Hannon's message of "Sat, 8 Dec 2012 13:16:31 -0800 (PST)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Hannon Cc: Org-Mode List LibreOffice's export to PDF has this option File->Export as PDF->PDF/A-1a If you change the preferences in the UI, I am not sure whether it will kicked in with command line export. I will be interested in knowing what you find with the above option. ps: You can export to PDF via OpenDocument/ODT export. See or search for `org-odt-preferred-document-format' or `org-e-odt-preferred-document-format' in the manual/mailing list. > Greetings.=C2=A0 The woman that runs our research group complains that sh= e is > unable to print PDF documents that a couple of us in the group send her, = and > that the two of us are the only source of such troublesome documents. > > It occurred to me that the two of us are the only ones in the group that = use > Emacs Org-mode to produce PDF documents. > > I know there are web sites that can validate (i.e., measure conformance t= o the > standard of) HTML documents.=C2=A0 I wondered if there might be something= similar > for PDF documents. > > I found the following site: > > =C2=A0=C2=A0=C2=A0 http://www.validatepdfa.com/ > > I don't much about the PDF standard, and I don't know anything about the > reliability of this site, but I've found that PDF documents that I genera= te > using Org-mode and send to that site come back with a boatload of validat= ion > errors. > > I've appended a sample Org-mode file that generates errors when I try to > validate it.=C2=A0 I've appended details of my configuration below the sa= mple file. > > I should mention that I have no trouble viewing the PDF file (using "evin= ce" > on my Fedora system) or printing this file (to a Brother b/w printer).=C2= =A0 Ditto for > my colleague on a MacOS X system.=C2=A0 Hence, I personally have no reaso= n to > complain.=C2=A0 But there's that nagging issue with the boss. > > Can anybody comment as to what I should expect in the way of validation? > And/or are there any settings that would affect this behavior?=C2=A0 I.e., > something like: > > =C2=A0=C2=A0=C2=A0 (setq org-export-pdf-use-strict t) > > Thanks. > > -- Mike > > ###### Beginning of sample Org-mode file > > #+PROPERTY: session *R* > #+PROPERTY: cache yes > > #+PROPERTY: results output verbatim > #+PROPERTY: tangle yes > > > > * This is a test > > > #+BEGIN_SRC R :exports both >=20=20 > x <- 7.2 > y <- 3 >=20=20 > print(x * y) >=20=20 >=20=20 > #+END_SRC > > > #+RESULTS: > : 21.6 > ###### End of sample Org-mode file > > Emacs=C2=A0 : GNU Emacs 24.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.2= 4.13) > =C2=A0of 2012-11-17 on buildvm-30.phx2.fedoraproject.org > Package: Org-mode version 7.9.2 (release_7.9.2-656-g2f9dda @ > /usr/local/emacs.d/org-mode/org-devel/org-mode/lisp/) > > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > =C2=A0org-export-preprocess-before-selecting-backend-code-hook > '(org-beamer-select-beamer-code) > =C2=A0org-tab-first-hook '(org-hide-block-toggle-maybe > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-= src-native-tab-command-maybe > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-= babel-hide-result-toggle-maybe > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-= babel-header-arg-expand) > =C2=A0org-speed-command-hook '(org-speed-command-default-hook > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 org-babel= -speed-command-hook) > =C2=A0org-export-html-after-blockquotes-hook > '(org-special-blocks-convert-html-special-cookies) > =C2=A0org-occur-hook '(org-first-headline-recenter) > =C2=A0org-metaup-hook '(org-babel-load-in-session-maybe) > =C2=A0org-export-preprocess-before-normalizing-links-hook > '(org-remove-file-link-modifiers) > =C2=A0org-confirm-shell-link-function 'yes-or-no-p > =C2=A0org-export-latex-after-blockquotes-hook > '(org-special-blocks-convert-latex-special-cookies) > =C2=A0org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fi= x-toc > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 org-beamer-auto-fragile-frames > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 org-beamer-place-default-actions-for-lists) > =C2=A0org-export-latex-after-initial-vars-hook '(org-beamer-after-initial= -vars) > =C2=A0org-after-todo-state-change-hook '(org-clock-out-if-current) > =C2=A0org-from-is-user-regexp "\\" > =C2=A0org-src-mode-hook '(org-src-babel-configure-edit-buffer > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 org-src-mo= de-configure-edit-buffer) > =C2=A0org-agenda-before-write-hook '(org-agenda-add-entry-text) > =C2=A0org-babel-pre-tangle-hook '(save-buffer) > =C2=A0org-mode-hook '(#[nil "\300\301\302\303\304$\207" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 [org-add-hook change-m= ajor-mode-hook org-show-block-all > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 append local] > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 5] > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0#[nil "\300\301\302\303\304$\= 207" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 [org-add-hook change-m= ajor-mode-hook > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 org-babel-show-r= esult-all append local] > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 5] > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org-babel-result-hide-spec or= g-babel-hide-all-hashes) > =C2=A0org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 org-babel= -execute-safely-maybe) > =C2=A0org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-dr= awers > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 org-cycle-hide-inline-tasks = org-cycle-show-empty-lines > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 org-optimize-window-after-vi= sibility-change) > =C2=A0org-export-latex-format-toc-function 'org-export-latex-format-toc-d= efault > =C2=A0org-export-first-hook '(org-beamer-initialize-open-trackers) > =C2=A0org-babel-tangle-lang-exts '(("C++" . "cpp") ("latex" . "tex") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ("python" . "py") ("lisp" . "lisp") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ("emacs-lisp" . "el")) > =C2=A0org-confirm-elisp-link-function 'yes-or-no-p > =C2=A0org-metadown-hook '(org-babel-pop-to-session-maybe) > =C2=A0org-structure-template-alist '(("r" "#+begin_src R\n\n#+end_src" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0"\n\n") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 ("S" "#+BEGIN_SRC ?\n\n#+END_SRC" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0"\n\n") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 ("s" "#+BEGIN_SRC ?\n\n#+END_SRC" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0"\n\n") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 ("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE" > =C2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t) (gnuplot . t= ) (R . t) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 (dot . t) (python . t) (sh . t) (latex . t) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 (C . t) (octave \.t)) > =C2=A0org-agenda-files '("~/Documents/scratch.org") > =C2=A0org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > =C2=A0org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate > =C2=A0org-export-preprocess-after-blockquote-hook > '(org-special-blocks-make-special-cookies) > =C2=A0org-src-fontify-natively t > =C2=A0) > > --=20