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]
    it's like making infographics
    but intended for cheap black-white printer
    Guillaume Ayoub
    @liZe
    Hmmm…
    Reordering pages is possible, but reordering columns is not :/
    1 reply
    Rodion Borisov
    @vintprox:matrix.org
    [m]

    but intended for cheap black-white printer

    and that's because I'm handing PDF to my students, and they decide whether they want to print it (we are totally remote)

    Guillaume Ayoub
    @liZe
    OK
    You just want to generate your PDF with the command-line interface, with no extra Python code or no post-processing command?
    Rodion Borisov
    @vintprox:matrix.org
    [m]
    I want it to be one thing that processes source without requiring my colleagues to post-process. Like, shove HTML+CSS, get PDF. Teachers then distribute PDFs arbitrarily.
    Guillaume Ayoub
    @liZe
    And you really don’t have the possibility to launch a command (always the same, can be automated) to modify the PDF after WeasyPrint?
    4 replies
    Rodion Borisov
    @vintprox:matrix.org
    [m]
    Probably asking too much, but single leaflet is not even the concern. I want to make a template for producing other leaflets (about other subjects, cheatsheets).
    Alright, let's suppose there are just two pages. One sheet of paper, two sides printed. Page 1 will have columns #5, 6, and 1. Page 2 - columns #2, 3, and 4.
    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?