GithubHelp home page GithubHelp logo

gettalong / hexapdf-website Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 3.21 MB

The source of the HexaPDF documentation website

Home Page: https://hexapdf.gettalong.org

Ruby 12.96% JavaScript 0.29% CSS 12.31% SCSS 74.44%

hexapdf-website's People

Contributors

aried3r avatar gettalong avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

aried3r sitedata

hexapdf-website's Issues

Lato font being used?

Hey! First of all, thanks for hexapdf and its extensive documentation!

tl;dr: Lato isn't being used, but if you happen to have Lato fonts installed locally, the website fonts are very thin.

While reading through the documentation I had the โ€“ subjective โ€“ impression that fonts were too thin.

I checked which fonts it used.

$base-font-family: 'Lato, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, \"Helvetica Neue\", Helvetica, sans-serif';

While this repo contains the Lato font files, it doesn't seem like they are loaded by the website. I happen to have them installed on my system so Lato ended up being used. I checked with different font-weights and here are some screenshots when I change the font-weight. On my system, 300 seems even thinner than 100.

100 300 400
Screenshot 2022-03-01 at 15 20 30 Screenshot 2022-03-01 at 15 20 15 Screenshot 2022-03-01 at 15 20 43

Then I uninstalled Lato from my system to check, and indeed, it now renders better:

Screenshot 2022-03-01 at 15 33 16

However as you can see, it doesn't render using Lato, but rather the System Font Stack that also GitHub uses.

So while this only renders wrongly on my system because I had Lato installed locally, perhaps the CSS should switch to only using system fonts or include Lato when loading the website. WDYT?

Permalinks for changelog?

Hey! I was wondering if it's possible to have permalinks to the changelog of hexapdf. Currently, the link to the latest version is always https://hexapdf.gettalong.org/documentation/changelog.html#section. That is currently 0.22.0 (which is not in this repo yet btw), once e.g. 0.22.1 is released that link will point to #section again, while 0.22.0 will be #section-1.

It would be great to be able to link to specific releases. Not a big issues, since there's the CHANGELOG.md in the repo: https://github.com/gettalong/hexapdf/blob/master/CHANGELOG.md#0220---2022-03-26, but even that's not really permanent like GitHub Releases would be for example.

WDYT?

Example for forms doesn't work

Hi! I'm evaluating HexaPDF for work and started adapting this example here:

<pre class="cycle2">require 'hexapdf'
doc = HexaPDF::Document.open(input_file)
doc.acro_form.field_by_name('firstname').value = 'Thomas'
doc.acro_form.field_by_name('city').value = 'Vienna'
doc.write(output_file)</pre>
</div></div>

which did not work for me, I got A PDF dictionary object needs a hash value, not a String (ArgumentError). Eventually I found field_value=(str) in the docs and get my test working.

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.