Git Product home page Git Product logo

Comments (12)

Zulko avatar Zulko commented on May 23, 2024

but will it be able to generate PDFs ?

from relaxed.

linonetwo avatar linonetwo commented on May 23, 2024

I guess iFrame will work.

iframe.focus();
iframe.contentWindow.print();

https://plungjan.name/SO/testprintiframe.html

This requires the user to click print as PDF too...

from relaxed.

linonetwo avatar linonetwo commented on May 23, 2024

Another way:

  1. open another tab that display generated HTML without editor(Just likes what stackblitz can do)
  2. run window.print();
  3. let user click print as PDF

from relaxed.

linonetwo avatar linonetwo commented on May 23, 2024

Maybe one day, author of a paper only need to send a link to his editor.

from relaxed.

Zulko avatar Zulko commented on May 23, 2024

Do you know overleaf ? Its basically that, but for latex

from relaxed.

linonetwo avatar linonetwo commented on May 23, 2024

It will be different if we are using web technology.
Overleaf may be running their own server, but with ReLaXed, it can be serverless.

Deliver page via ipfs and ipfs-browser-gateway. Even the storage can use ipfs.

from relaxed.

Zulko avatar Zulko commented on May 23, 2024

Definitely something I want to explore, but it would be quite a different project, and at the moment I dont like that the user would need to go through the print-page interface, possibly redefining paper size etc. everytime. It would also be some work to let users manage file and assets in their browser. Other drawbacks would be that you couldnt edit an image file in gimp/inkscape, and see real-time changes in your PDF.

But I agree that it would be orders of magnitude more accessible than the current solution.

from relaxed.

DanielRuf avatar DanielRuf commented on May 23, 2024

I think it should be still standalone and available as Node.js solution with headless Chrome (puppeteer) in the background.

Personally I see not much sense in migrating the codebase and let this run in all browsers.
IF you start supporting one you have to support them all probably.

from relaxed.

Zulko avatar Zulko commented on May 23, 2024

One good aspect would be user conversion, since you could get started on an example in seconds, nothing to install. You could also make a custom UI with relaxed-specific features. But yeah, huge project.

from relaxed.

DanielRuf avatar DanielRuf commented on May 23, 2024

One good aspect would be user conversion, since you could get started on an example in seconds, nothing to install. You could also make a custom UI with relaxed-specific features. But yeah, huge project.

Could be easily done with React which can run Node.js code in the background and consume Node.js modules.

So basically we have a feature request for a different implementation (which needs proper planning and evaulation of possible solutions).

from relaxed.

Zulko avatar Zulko commented on May 23, 2024

...with the problem that the main feature (automatic PDF generation with custom margins, footers, headers, etc.) is certainly not doable from a browser.

from relaxed.

linonetwo avatar linonetwo commented on May 23, 2024

Let me close this till there are out-of-box solutions to manage folders of assets in service worker(like stackblitz-core), html-to-pdf generator (maybe pdfjs but doc said it's deprecated) and assert editors (for images).

from relaxed.

Related Issues (20)

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.