react-to-pdf icon indicating copy to clipboard operation
react-to-pdf copied to clipboard

it only prints a quarter of my table

Open thealgoritmo opened this issue 4 years ago • 12 comments

I'm trying to print and save as PDF my table, but every time I generate the PDF it only prints a quarter... avaliação.pdf

thealgoritmo avatar Sep 01 '20 20:09 thealgoritmo

@thealgoritmo can you provide a codesandbox showing the issue?

ivmarcos avatar Sep 02 '20 10:09 ivmarcos

@thealgoritmo can you provide a codesandbox showing the issue?

can I send you the code?

thealgoritmo avatar Sep 02 '20 11:09 thealgoritmo

A codesandbox or jsfiddle would be much better please.

ivmarcos avatar Sep 02 '20 12:09 ivmarcos

A codesandbox or jsfiddle would be much better please.

https://codesandbox.io/s/smoosh-wood-zgq8f?file=/src/App.js

thealgoritmo avatar Sep 02 '20 12:09 thealgoritmo

The page isn't rendering, syntax errors showing up.

ivmarcos avatar Sep 02 '20 13:09 ivmarcos

it's a bit complicated because I get the values from axios (localhost) and other stuff...

thealgoritmo avatar Sep 02 '20 13:09 thealgoritmo

No problem. You could share a screenshot. The problem is related to multiple pages? If so, please note that isn't supported.

ivmarcos avatar Sep 02 '20 13:09 ivmarcos

Screenshot's code?

thealgoritmo avatar Sep 02 '20 14:09 thealgoritmo

Só uma questão, Vi que és do Brasil. Não é melhor falar pt-BR? xD

thealgoritmo avatar Sep 02 '20 15:09 thealgoritmo

@thealgoritmo opa! Então eu me referi a enviar uma cópia da tela demonstrando o corte na tabela. E que se for o problema de a área de impressão ocupar mais de uma página, esse recurso não é suportado (ainda).

ivmarcos avatar Sep 02 '20 20:09 ivmarcos

print Como podes ver no print ele devia gerar um PDF disso, mas não só até ao azul e metade...

thealgoritmo avatar Sep 02 '20 20:09 thealgoritmo

E só ocupada uma página. Para indagar mais no problema eis que, se eu colocar o botão para gerar o PDF antes da tabela ela é apanhada na sua totalidade, depois da tabela fica com o tal corte... e eu queria por questão de estética o botão cá em baixo..

thealgoritmo avatar Sep 02 '20 20:09 thealgoritmo

V1 acabou de ser lançada suportando multiplas páginas. Fechando a issue já que é uma discussão antiga, mas sinta-se livre para abrir outra se for necessário.

ivmarcos avatar Sep 08 '23 12:09 ivmarcos