Code Monkey home page Code Monkey logo

examples-vivliostyle-pagedjs's People

Contributors

akabekobeko avatar

Stargazers

 avatar

Watchers

 avatar

examples-vivliostyle-pagedjs's Issues

Remove unnecessary samples and previews

Remove some Vivliostyle samples that are not needed for your own extensions or comparisons. Also, remove the preview command because build (PDF) is sufficient for comparison.

Some samples cannot be built with Paged.js

The following sample does not finish building.

> [email protected] p:viv05 .../examples-vivliostyle-pagedjs
> pagedjs-cli ./vivliostyle/samples/gutenberg/Sherlock.html -o pdf/pagedjs/viv05.pdf

✔ Loaded
◶ Rendering: Page 5

> [email protected] p:css24 .../examples-vivliostyle-pagedjs
> pagedjs-cli ./print-css-rocks/lessons/lesson-footnotes/index.html -o pdf/pagedjs/css24.pdf

◷ Loading: ./print-css-rocks/lessons/lesson-footnotes/index.html

> [email protected] p:css32 .../examples-vivliostyle-pagedjs
> pagedjs-cli ./print-css-rocks/lessons/lesson-mathml-native/index.html -o pdf/pagedjs/css32.pdf

◵ Loading: ./print-css-rocks/lessons/lesson-mathml-native/index.html

Unable to reference relative path CSS in print-css.rocks

The CSS of print-css.rocks refers to the files in the upper layer as follows.

@import url("../styles/a4.css");

However, vivliostyle-cli specifies a sample directory, so the upper layers are ignored. Need to specify the directory with -r to refer to the upper layer.

print-css.rocks Incorrect path specification for sample

HTML is specified for the XML file.

{
  "scripts": {
    "v:css56": "vivliostyle build ./print-css-rocks/lessons/lesson-two-column-with-author-box/index.html -o pdf/css56.pdf",
    "p:css56": "pagedjs-cli ./print-css-rocks/lessons/lesson-two-column-with-author-box/index.html -o pdf/css56.pdf",
  }
}

The correct name is *.xml.

{
  "scripts": {
    "v:css56": "vivliostyle build ./print-css-rocks/lessons/lesson-two-column-with-author-box/index.xml -o pdf/css56.pdf",
    "p:css56": "pagedjs-cli ./print-css-rocks/lessons/lesson-two-column-with-author-box/index.xml -o pdf/css56.pdf",
  }
}

Build an environment

  • contents/ ... Sample for CSS Paged Media HTML/CSS
  • package.json ... Settings of Node.js project
  • and others

Duplicate commands and incorrect paths

Reports from @MurakamiShinyu

{
  "scripts": {
    "v:css02": "vivliostyle build ./print-css-rocks/lessons/lesson-antennahouse-multicol-with-sidenotes/index.html -o pdf/vivliostyle/css02.pdf",
    "v:css03": "vivliostyle build ./print-css-rocks/lessons/lesson-archive-pdf/vivliostyle/index.html -o pdf/vivliostyle/css03.pdf",
    "v:css04": "vivliostyle build ./print-css-rocks/lessons/lesson-antennahouse-multicol-with-sidenotes/index.html -o pdf/vivliostyle/css04.pdf",
    "v:css05": "vivliostyle build ./print-css-rocks/lessons/lesson-archive-pdf/vivliostyle/index.html -o pdf/vivliostyle/css05.pdf",

    "p:css02": "pagedjs-cli ./print-css-rocks/lessons/lesson-antennahouse-multicol-with-sidenotes/index.html -o pdf/pagedjs/css02.pdf",
    "p:css03": "pagedjs-cli ./print-css-rocks/lessons/lesson-archive-pdf/pagedjs/index.html -o pdf/pagedjs/css03.pdf",
    "p:css04": "pagedjs-cli ./print-css-rocks/lessons/lesson-antennahouse-multicol-with-sidenotes/index.html -o pdf/pagedjs/css04.pdf",
    "p:css05": "pagedjs-cli ./print-css-rocks/lessons/lesson-archive-pdf/pagedjs/index.html -o pdf/pagedjs/css05.pdf"
}
  • css02とcss04, css03とcss05が重複している
  • lesson-archive-pdf/ と index.html の間に存在しないディレクトリ名 vivliostyle と pagedjs が入っている(一括置換ミス?)

lesson-two-column-with-author-box gives an error

vivliostyle-cli

> [email protected] v:css56 .../examples-vivliostyle-pagedjs
> vivliostyle build ./print-css-rocks/lessons/lesson-two-column-with-author-box/index.xml -o pdf/css56.pdf

===> Launching build environment...
===> Building pages...
Error: waiting for function failed: timeout 30000ms exceeded

If you think this is a bug, please report at https://github.com/vivliostyle/vivliostyle-cli/issues

pagedjs-cli

> [email protected] p:css56 .../examples-vivliostyle-pagedjs
> pagedjs-cli ./print-css-rocks/lessons/lesson-two-column-with-author-box/index.xml -o pdf/css56.pdf

Must pass a html or xhtml file as input

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.