From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18589 Path: news.gmane.org!.POSTED!not-for-mail From: sclarke-DpHT0TjK6O80n/F98K4Iww@public.gmane.org Newsgroups: gmane.text.pandoc Subject: Re: docx to pdf conversion error Date: Thu, 9 Nov 2017 21:10:35 -0800 (PST) Message-ID: References: <9256e740-7530-4dc2-9acd-5d14eca6fc07@googlegroups.com> <20171110044412.GI70590@MacBook-Air-2.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_709_959888735.1510290635577" X-Trace: blaine.gmane.org 1510290635 13290 195.159.176.226 (10 Nov 2017 05:10:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Nov 2017 05:10:35 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDH3TUHF3QCBBTHJSTIAKGQEHCECTGQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 10 06:10:31 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f58.google.com ([209.85.218.58]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eD1aI-0003G4-3l for gtp-pandoc-discuss@m.gmane.org; Fri, 10 Nov 2017 06:10:30 +0100 Original-Received: by mail-oi0-f58.google.com with SMTP id j83sf6031904oif.7 for ; Thu, 09 Nov 2017 21:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=RQBZMqkc6Or2IREiOdILUn7QvooRkq0RegMXicA+Ycc=; b=tj7XCLIRwj+tDsCOvuJGJ15yHl7DukzQhaf+IXAF3ZOWzTUxMY93VcheEr9LnxaHHv dAarvF+p3LifBGyaWc3W3wL1WfhPfTp8AcV77RF+1GtaVC67l9E5vT0LEUZaExRNr3/i pr0R0ko/s1lrpkUSF/laIYsl9Lqz9pDevoJu2wLQN0UIGWxvi/2L2YXRqWQFKiJNOzVd r6g1nali+JuWSK7+XrZaWaCmtdvNmY0QmQsBHMGzy6qTOLUoj5CHIfAEuDe2MiCqbzrS 6TgB8F3PGGgHBoTWPsSRSVr6ayoSBsHwQDrLp2+VGtsnHku33j/6x+bqkheMG30z7K/t obPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netcraft-com-au.20150623.gappssmtp.com; s=20150623; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=RQBZMqkc6Or2IREiOdILUn7QvooRkq0RegMXicA+Ycc=; b=iWvyPbBC6vS/NFvObPrcUUPA88v8iHfTimRcVe+kjxydJHlDpQWEfYJ73RuhGFZvce ege3YZ3Vs82QvnL3ILDZVEu5rk+jjqIvhRTTUirFsbsTl4SMvjAx0wLLroDxbht6csLe o3/hgsSwoPLsmEHHGZeS0JQIlBtHyH2KNBFjyUEIx5QjEdQMWr2rUMnd4C11yboWxW+x HO73fcv6NsY32LDYOVDk8DpCfyL6Xy4w3pwT6DGvvrL9+EM77QNLpKSdVZBrY9g1Rkn9 6TSNrJKDZjninZEZz7WPF7Owf4k6jp7Fx7X6dewRPeW1MLFsYOegukkeEoiA7pSES9Ia ZB6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=RQBZMqkc6Or2IREiOdILUn7QvooRkq0RegMXicA+Ycc=; b=WQnhim7M2UKBxfFlbAGlhuKKME+b6IiC+u3XJxwqKwQPnJVoUHZd4Kvr2be/l3E92m I4C+sQP+xGexafpa5wChZ0acaHhclbvX1GYTcQ2dlS/h5FZrRC1VNrSKciu3PKSjqfhk j43/qvDzOomjvsIVKKkOn7/ejxp0u7NxgulB+SAFtqo5LJnsLFJCtP24PGpSwquYhw6F GTdxo89AU5s/vocII0Cum2+/J/GS0HBR75Fpi8aTcfm/tpMJpjcGK9hUtSiCs4l2Jt1C 7q34ynj33UG8pibjMawTH5DWhnyowgLDZP8q4OJ254tLc9cwaJd7Hmb0EorMKznu6vfi 9U3A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJaThX6eqFGgK0zGkjCZIA2sWiuK6kpQYYuDppUVU+xp+VBOUBO/vJop CaMgxhNFV8Au0iY12J2mjvg= X-Google-Smtp-Source: AGs4zMZz0z9IZVJRTP3VWMNh6k5hyRxTAGaSDLqiYWHD8YF5sLwKitY4+sm8UWl9hoi10WT1CufnEA== X-Received: by 10.157.0.7 with SMTP id 7mr321110ota.14.1510290637412; Thu, 09 Nov 2017 21:10:37 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.202.79.151 with SMTP id d145ls6389206oib.5.gmail; Thu, 09 Nov 2017 21:10:36 -0800 (PST) X-Received: by 10.157.12.211 with SMTP id o19mr320813otd.0.1510290636077; Thu, 09 Nov 2017 21:10:36 -0800 (PST) In-Reply-To: <20171110044412.GI70590-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org> X-Original-Sender: sclarke-DpHT0TjK6O80n/F98K4Iww@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18589 Archived-At: ------=_Part_709_959888735.1510290635577 Content-Type: multipart/alternative; boundary="----=_Part_710_584935029.1510290635577" ------=_Part_710_584935029.1510290635577 Content-Type: text/plain; charset="UTF-8" bugger so by design then :( Looks like I'll have to edit the makefile to put in an intermediate step to cope with word users. Really wanted to be editor agnostic and allow for most options in the conversion. Cheers On Friday, 10 November 2017 15:14:28 UTC+10:30, John MacFarlane wrote: > > YAML metadata only works with Markdown. > > When you specify multiple files on the command line, > pandoc concatenates them together and treats them as > if they were one big file. > > That works when one is yaml and the other is Markdown > (as long as the yaml has proper begin and end delimiters). > > It doesn't work when one is yaml and the other is docx. > > Related issue; > https://github.com/jgm/pandoc/issues/1960 > > > +++ scl...-DpHT0TjK6O80n/F98K4Iww@public.gmane.org [Nov 09 17 15:32 ]: > > OK not sure if this is by design or a bug ;) > > Relatively new to pandoc and coversion, and am coming from the Windowz > > world. > > We have a variety of OSs and editors in use and want to ensure a > > commonality of output format with standardised frontice pages etc. > > Version: pandoc 2.0.1.1 Compiled with pandoc-types 1.17.2, texmath > > 0.10, skylighting 0.4.3.2 > > We have created our own style file for formatting in latex, and our > own > > pandoc.latex to generate the coverpage etc. > > We have been extending into using a yaml metadata file to include > > variables and elements (email address, mulitple authors etc) for our > > reports. > > We have a problem with the yaml metadata file causing failures with > the > > conversion from docx to pdf. > > The file works correctly when used against a markdown file to produce > a > > pdf. > > Behaviour: > > This fails - > > >pandoc --standalone --toc --number-sections --pdf-engine=xelatex > > --template pandoc.latex test.docx metadata.yaml -o test10.pdf > > couldn't parse docx file > > This works without issue - > > >pandoc --standalone --toc --number-sections --pdf-engine=xelatex > > --template pandoc.latex test.docx -o test10.pdf > > Now either I'm doing something I'm not supposed to (and it will be > very > > annoying to have to go through the intermediary step of converting to > > markdown file first then to pdf), or something is wrong with my > syntax. > > The same command when used for a markdown file works without issue and > > draws the variables we want from the markdown.yaml. > > > > -- > > You received this message because you are subscribed to the Google > > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To post to this group, send email to > > [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > > To view this discussion on the web visit > > [3] > https://groups.google.com/d/msgid/pandoc-discuss/9256e740-7530-4dc2- > > 9acd-5d14eca6fc07%40googlegroups.com. > > For more options, visit [4]https://groups.google.com/d/optout. > > > >References > > > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > 3. > https://groups.google.com/d/msgid/pandoc-discuss/9256e740-7530-4dc2-9acd-5d14eca6fc07-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > > 4. https://groups.google.com/d/optout > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e741d764-809b-422b-aee1-75b4e4351569%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_710_584935029.1510290635577 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
bugger so by design then :(

Looks like = I'll have to edit the makefile to put in an intermediate step to cope w= ith word users.
Really wanted to be editor agnostic and allow for= most options in the conversion.

Cheers

On = Friday, 10 November 2017 15:14:28 UTC+10:30, John MacFarlane wrote:YAML metadata only works with Markdow= n.

When you specify multiple files on the command line,
pandoc concatenates them together and treats them as
if they were one big file.

That works when one is yaml and the other is Markdown
(as long as the yaml has proper begin and end delimiters).

It doesn't work when one is yaml and the other is docx.

Related issue;
https://github.com/j= gm/pandoc/issues/1960


+++ scl...-DpHT0TjK6O80n/F98K4Iww@public.gmane.org [Nov 09 17 15:32 ]:
> =C2=A0 OK not sure if this is by design or a bug ;)
> =C2=A0 Relatively new to pandoc and coversion, and am coming from = the Windowz
> =C2=A0 world.
> =C2=A0 We have a variety of OSs and editors in use and want to ens= ure a
> =C2=A0 commonality of =C2=A0output format with standardised fronti= ce pages etc.
> =C2=A0 Version: pandoc 2.0.1.1 Compiled with pandoc-types 1.17.2, = texmath
> =C2=A0 0.10, skylighting 0.4.3.2
> =C2=A0 We have created our own style file for formatting in latex,= and our own
> =C2=A0 pandoc.latex to generate the coverpage etc.
> =C2=A0 We have been extending into using a yaml metadata file to i= nclude
> =C2=A0 variables and elements (email address, mulitple authors etc= ) for our
> =C2=A0 reports.
> =C2=A0 We have a problem with the yaml metadata file causing failu= res with the
> =C2=A0 conversion from docx to pdf.
> =C2=A0 The file works correctly when used against a markdown file = to produce a
> =C2=A0 pdf.
> =C2=A0 Behaviour:
> =C2=A0 This fails -
> =C2=A0 >pandoc --standalone --toc --number-sections --pdf-engin= e=3Dxelatex
> =C2=A0 --template pandoc.latex test.docx metadata.yaml -o test10.p= df
> =C2=A0 couldn't parse docx file
> =C2=A0 This works without issue -
> =C2=A0 >pandoc --standalone --toc --number-sections --pdf-engin= e=3Dxelatex
> =C2=A0 --template pandoc.latex test.docx -o test10.pdf
> =C2=A0 Now either I'm doing something I'm not supposed to = (and it will be very
> =C2=A0 annoying to have to go through the intermediary step of con= verting to
> =C2=A0 markdown file first then to pdf), or something is wrong wit= h my syntax.
> =C2=A0 The same command when used for a markdown file works withou= t issue and
> =C2=A0 draws the variables we want from the markdown.yaml.
>
> =C2=A0 --
> =C2=A0 You received this message because you are subscribed to the= Google
> =C2=A0 Groups "pandoc-discuss" group.
> =C2=A0 To unsubscribe from this group and stop receiving emails fr= om it, send
> =C2=A0 an email to [1]pandoc-discus...@googlegroups.com.
> =C2=A0 To post to this group, send email to
> =C2=A0 [2]pandoc-...@googlegroups.com.
> =C2=A0 To view this discussion on the web visit
> =C2=A0 [3]http= s://groups.google.com/d/msgid/pandoc-discuss/9256e740-7530-4dc2-<= /a>
> =C2=A0 9acd-5d14eca6fc07%
40googlegroups.com.
> =C2=A0 For more options, visit [4]https:= //groups.google.com/d/optout.
>
>References
>
> =C2=A0 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> =C2=A0 2. mailto:pandoc-...@googlegroups.com
> =C2=A0 3. https://groups.google.com/d/msgid/pandoc-discuss/9256e740-7= 530-4dc2-9acd-5d14eca6fc07@googlegroups.com?utm_medium=3Demail&am= p;utm_source=3Dfooter
> =C2=A0 4. https://groups.google.com/d/optout

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/e741d764-809b-422b-aee1-75b4e4351569%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_710_584935029.1510290635577-- ------=_Part_709_959888735.1510290635577--