Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

348
Visualizações
How to nicely generate and display a picture of a PDF on the screen using React-PDF?

I am trying to create a user-interface in Javascript (React) that allows users to generate PDFs on the screen. The idea is having input boxes on the left, which when filled in, immediately populate the fields on the PDF on the right.

I am currently using react-pdf to build the document, and the <PDFViewer> class to render the document on the screen.

Problem:

(1) Generating the PDF can take a few moments causing an unattractive delay for the users, and (2) the rendering of the PDF on the screen is problematic because it changes based on the internet browser, whether adobe is installed, and much more. I have spent the better part of a week trying to find any packages on npm or any Github repo that has done anything similar, but most examples do not involve the documents being modified and rendered on the screen.

Question:

Is there a way to render the document as an image or some other way, similar to how react-pdf does in this example? The only difference is that users would not be interacting with the code, but filling in details in a nicely displayed input field instead. Again, the objective is to avoid long rendering times, and have control over how the document is displayed on the screen given that users can have different browsers

Thanks!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Might this be of use? I've found it very flexible and relatively easy to get working. https://www.npmjs.com/package/suneditor-react

-Edit-

Here's a link to a nice demo as suggested by: https://stackoverflow.com/users/10802527/k-j

http://suneditor.com/sample/index.html

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda