Insomnia: PDF preview does not render text

Created on 30 May 2019  路  16Comments  路  Source: Kong/insomnia

  • Insomnia Version: 6.5.3
  • Operating System: Ubuntu 18.10

Details

When an endpoint returns a PDF the preview does not render any text.

This is from Insomnia
image

This is the PDF saved using the _Save response body_ option.
image

This PDF was generated from PHP using FPDF and this code

$pdf->SetDrawColor(0, 0, 112);
$pdf->SetFillColor(0, 0, 112);
$pdf->RoundedRect(5, 5, 200, 5, 2, "DF", "12");
$pdf->SetFont("arial", "b", 9);
$pdf->SetTextColor(255);
$pdf->Text(6.5, 8.5, "Such text, very missing, wow");

RoundedRect here is a function we added but the same thing happens when using Rect.

accepted good first issue help wanted

Most helpful comment

image
I am getting this when loading a PDF.

I am with the same problem in version Insomnia Core 2020.4.0.

Guys, I updated to version 2020.4.1 and it is working perfectly.

=)

All 16 comments

馃憢 Thanks for opening your first issue! If you're reporting a 馃悶 bug, please make sure
you include steps to reproduce it. If you're requesting a feature 馃巵, please provide real
use cases that would benefit. 馃應

To help make this a smooth process, please be sure you have first read the
contributing guidelines.

Can you attach the PDF file to this issue?

There isn't much we can do here either way. Insomnia uses pdf.js to render PDFs so, if this _is_ in fact an issue, it should be reported on that project instead.

Sure here's the file. example_file.pdf

If I upload it to the demo viewer page the text renders correctly.

Could it be something to do with the font not being available?

The same problem in Golang PDF generator. That I think it isn't a FPDF problem.

This worked for me in previous version, today auto-updated and got not text pdf.

PDF generated with iText also appears "blank" when displayed inside Insomnia. When opened via browser (both Chrome and Firefox) everything shows as expected.

I have this same issue, PDFs generated by Pentaho.

More information - when sending these PDFs via sendgrid API, the emails are also missing the text - but downloading via a browser on the same API _has_ text. 馃

Same issue here, PDFs are generated using Jasper (iText).

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Still an issue here.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Not stale ya'll

image

I am getting this when loading a PDF.

image

I am getting this when loading a PDF.

I am with the same problem in version Insomnia Core 2020.4.0.

image
I am getting this when loading a PDF.

I am with the same problem in version Insomnia Core 2020.4.0.

Guys, I updated to version 2020.4.1 and it is working perfectly.

=)

We shipped #2645 in 2020.4.1 which resolves the last few comments, but I'm not sure if it resolves the initial bug report yet. Could somebody validate and report back, please?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dextermb picture dextermb  路  3Comments

claratorres picture claratorres  路  3Comments

oliverjanik picture oliverjanik  路  3Comments

kalinchernev picture kalinchernev  路  4Comments

chrisvis picture chrisvis  路  4Comments