Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Better builder for spreadsheet #258

Open
inkhey opened this issue Jul 2, 2021 · 0 comments
Open

Feat: Better builder for spreadsheet #258

inkhey opened this issue Jul 2, 2021 · 0 comments
Labels
builder new or improved existing builders enhancement

Comments

@inkhey
Copy link
Contributor

inkhey commented Jul 2, 2021

Feature description and goals

Spreadsheet format (ods, xslx, etc...) and csv preview is complex as the table generated can be really big which cause:

  • issue with builder on too big file
  • issue to find a proper size for the pdf generated (there by default unlimited number of rows).

One solution may be have specific parameter for the libreoffice builder to :

  • refuse generate preview for too big files
  • force a better default format (A3 landscape) is possible ?

Another solution may be use some kind of lib to handle specific format (ods , xslx, csv are the most used):

  • get the number of row and column used (permit to get an idea
  • generate the preview from it.

A good solution may be done with:

  • getting information from the file with a lib
  • converting the file to html
  • convert html to pdf with a tool like weasyprint and specific treatment to get something readable.
  • use the pdf preview as base for image preview as we do now.
@inkhey inkhey added enhancement builder new or improved existing builders labels Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builder new or improved existing builders enhancement
Projects
None yet
Development

No branches or pull requests

1 participant