Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Rodion Borisov
    @vintprox:matrix.org
    [m]
    Thank you, I'm at least confident to try out the workaround
    Yeah, but what about sharing background between "pages"?
    like, between 2 and 3, then 5 and 6
    ah
    in fact, I have an example
    Guillaume Ayoub
    @liZe
    You can achieve that by using the same background image but a different background-position for each page
    4 replies
    Rodion Borisov
    @vintprox:matrix.org
    [m]
    not arguing against it being a normal way to handle this use case
    Ahha, I see, seems neat
    True, in my case margins are same even between horizont and vertical
    8 mm
    Guillaume Ayoub
    @liZe
    Then you just have different values for left/right (or background-position), depending on the page number
    Rodion Borisov
    @vintprox:matrix.org
    [m]
    Alright, so there are another two questions.
    1. Am I able to export PDF fields with WeasyPrint?
    1. How does one add JavaScript in exported PDF with WeasyPrint?
    Rodion Borisov
    @vintprox:matrix.org
    [m]
    :point_up: Edit: 2. How does one embed JavaScript in PDF with WeasyPrint? (viewer applications should be able to execute it by themself - for example, to fill out the date of printing)
    :point_up: Edit: 2. How does one embed JavaScript in PDF with WeasyPrint? (viewer applications should be able to execute it by themself - for example, to fill out the field with print timestamp)
    :point_up: Edit: 2. How does one embed JavaScript in PDF with WeasyPrint?
    (viewer applications should be able to execute it by themself - for example, to fill out the field with print timestamp)
    :point_up: Edit: 2. How does one embed JavaScript in PDF with WeasyPrint?
    (viewer applications should be able to execute it by themself - for example, to fill out the field with opening timestamp)
    Guillaume Ayoub
    @liZe

    Am I able to export PDF fields with WeasyPrint?

    No, it’s not supported (yet), see Kozea/WeasyPrint#61

    Rodion Borisov
    @vintprox:matrix.org
    [m]
    Oh, alright, thanks for info
    Guillaume Ayoub
    @liZe

    Edit: 2. How does one embed JavaScript in PDF with WeasyPrint? (viewer applications should be able to execute it by themself - for example, to fill out the field with opening timestamp)

    I have no idea about how it’s done in PDF, but it’s probably not supported

    Rodion Borisov
    @vintprox:matrix.org
    [m]
    I see. It's kinda expected, since additional JavaScript brings some confusion in conversion tool that crosses with JS-as-backend
    oh wait
    I forgot it's pythonic
    Guillaume Ayoub
    @liZe
    :)
    Rodion Borisov
    @vintprox:matrix.org
    [m]
    anyways, yeah, there would be less point in it if we don't have Form Fields first
    Guillaume Ayoub
    @liZe
    Form fields have been quite difficult to handle for a long time, but now that we use our own PDF generation background, it’s a bit easier to implement the feature
    Gordon George
    @llappall:matrix.org
    [m]
    Hi. We Saw some comments on ligatures, and a bug that wasn't. The bug showed ligatures in regular English text, but I don't think the ligatures work for Khmer. Is this known? Should I create a bug or something?
    Guillaume Ayoub
    @liZe
    @llappall:matrix.org Hello!
    You can share an HTML/CSS sample here or in an issue, as you want
    Guillaume Ayoub
    @liZe
    (You can also share the PDF you get)
    srt8driver
    @srt8driver:matrix.org
    [m]
    can weasy print be run as a lambda function? (AWS Lambda)
    srt8driver
    @srt8driver:matrix.org
    [m]
    thx I missed that in the docs
    jjsa
    @jjsa:matrix.org
    [m]
    I have an paragraph with 2 columns containing 2 images (the same size).
    Within the browser the images are places correctly. Weasyprint set these
    images not horizontalky but vertically.
    Is this bug known?
    Guillaume Ayoub
    @liZe
    @jjsa:matrix.org Hi! Could you please share your example?
    jjsa
    @jjsa:matrix.org
    [m]
    I Try to build an example, for github.com, the original code don't work, the actual example work well!
    jjsa
    @jjsa:matrix.org
    [m]
    I have found what is annying. The error appaired after I inserted an <h1> element but this can be anythings.
    I have send the test file, of course the picture are not uploaded, there sites are 800x533px.
    Lucie Anglade
    @grewn0uille
    Hello! Seems to be a bug in WeasyPrint. Can you please open an issue on GitHub?
    jjsa
    @jjsa:matrix.org
    [m]
    This is allready done. I have also reported an other bug concerning hyphenations. the browser work well weasyprint shall work better as now.
    Lucie Anglade
    @grewn0uille
    Great, thanks!
    jjsa
    @jjsa:matrix.org
    [m]
    Lucie, j'ais fait le nécessaire. Je m'excuse si cela a duré.
    jjsa
    @jjsa:matrix.org
    [m]
    Bonjour, j'ais intallés MacOS dans une machine virtuelle et installé weasyprint. Les consignes sur la documentation du site courtbouillon ne sont pas correctes, pip n'est pas pésent par contre pip3. L'installation de weasyprint peu également s'effectuée sans environement virtuel, ceci pirrair être mentionné.
    Guillaume Ayoub
    @liZe
    @jjsa:matrix.org Bonjour ! Nous avons mis pip3 à la place de pip dans la documentation.
    jjsa
    @jjsa:matrix.org
    [m]
    Merci!
    Guillaume Ayoub
    @liZe
    Pour l’installation, il est bien sûr possible d’installer WeasyPrint sans utiliser d’environnement virtuel, mais il est plus simple et moins risqué pour les débutants d’utiliser un environnement virtuel, c’est pour cela que nous avons mis cela en avant.
    jjsa
    @jjsa:matrix.org
    [m]
    OK
    Guillaume Ayoub
    @liZe
    Les utilisateurs avancés savent qu’ils peuvent installer sans environnement virtuel (ou avec d’autres méthodes).