Git Product home page Git Product logo

pdf's People

Contributors

delta456 avatar jalonsolov avatar keitotobi1 avatar penguindark avatar spytheman avatar t4we avatar ttytm avatar yuyi98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pdf's Issues

Typo in the line

pdf/README.md

Line 11 in 51ef90e

This module was created to simplify PDF file creation using the [V programming langauge](https://vlang.io/).

There is a typo for "language"

Strange output when using some commen symbols like €

Input string is "187,50 €" and v/PDF prints "187,50¬†‚Ǩ".

mut fnt_params_list := pdf.Text_params{
  font_size: 14.0
  font_name: 'Helvetica'
  s_color: pdf.RGB{
    r: 0
    g: 0
    b: 0
    }
  f_color: pdf.RGB{
    r: 0
    g: 0
    b: 0
    }
}
fnt_params_list.text_align = .right
//item.price = 187,50 €
page.text_box(item.price, pdf.Box{
  x: 180
  y: y - 5
  w: 200 - 180
  h: 4
}, fnt_params_list)

example_07_jpeg.v figure not displayed when w larger than h

Seems that when V divides two integers doesn't promote the result to float.
In the code below h_scale will be set to zero if w is larger than h.


// Line 48 example_07_jpeg.v 
// get width and height in pixel of the jpeg image
_, w, h := pdf.get_jpeg_info(jpeg_data)
h_scale := h / w

I suggest:
h_scale := f32(h)/f32(w)

Do you prefer a PR?

compress true option fails

Hi,
I can see someone has put a lot of care in developing this library. I just want to report that the examples which have the compress: true option fail. It returns -10000 error

Also, I want to generate a pdf with a table. Is there any ready-made or approximate solution I can use ?
Thanks

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.