Issue #2776✓ SolvedOpened May 14, 2020by math-artist3 reactions

Is it possible to use grapejs for printable documents?

快速解答by Ju99ernaut2

I think grapesjs would be perfect for your use case. Here #2724 it's probably being used in the same context.

Read full answer below ↓

Question

Hello, I have a requirement to create a drag and drop template editor for a desktop application, to generate beautiful reports, and found almost nothing to do that easily. Then I found grapejs, and I am considering using the Qt WebEngine and have grapejs embedded in my application.

I may have a web-based version of my application in 1-2 years, so that could be a better long-term solution.

But I will also need to properly print the documents with headers and footers, and manage height and width more like a "paper" document editor.

Is my idea a bad idea? Is there a better framework for what I am trying to do? I searched and found nothing without having to build everything from scratch.

Answers (3)

👍 Most helpfulJu99ernautMay 14, 2020

I think grapesjs would be perfect for your use case. Here #2724 it's probably being used in the same context.

Ju99ernautMay 14, 2020

For pages that's a matter of creating a page block with height defined. As for variable tags, those can be included in the block as well.

math-artistMay 14, 2020

Ok, that seems like the right solution to manage a long list or table.

Is there a way to lock the height of the web page and see the layout limit while editing? My plan is to create 3 or 4 pages with the same footer and insert variable tags in the layout to fill those pages dynamically.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.