Skip to content

PDF no longer uses a "to" argument.  #10

Open

Description

@michaelerobertsjr

According to the docs, pandoc no longer uses a "to" argument, and instead uses the passed in file extension:

http://johnmacfarlane.net/pandoc/demo/example19/Creating-a-PDF.html

I assume this means that this module will not be able to produce pdfs without an update...

Activity

  1. self-assigned this
    on Jan 9, 2015
  2. pvorb commented on Jan 9, 2015

    @pvorb
    Owner

    Ah yes, that's correct. I'll try to solve the problem.

  3. briandk commented on Jun 9, 2015

    @briandk

    @michaelerobertsjr and @pvorb - One workaround I'm currently trying is passing an explicit --output=FILE.pdf argument to my pdc() call, like so

    // In this case, my input to pdc is some compiled HTML from handlebars.
    // My goal is to convert that HTML to a pdf document
    
    pdc(
        compiled_html,
        'html',
        'latex',
        ['--output=test1.pdf'], // including this argument seems to produce a valid PDF file
        function (err, result) { }
    )

    Also, thanks so much to @pvorb for creating this package. It's been super helpful in my work! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions