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

PDF preview does not render text #1533

Closed
betterphp opened this issue May 30, 2019 · 18 comments
Closed

PDF preview does not render text #1533

betterphp opened this issue May 30, 2019 · 18 comments
Labels
E-good-first-issue Experience required: Beginner / New N-help Needs: Help

Comments

@betterphp
Copy link

betterphp commented May 30, 2019

  • 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.

@welcome
Copy link

welcome bot commented May 30, 2019

👋 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.

@gschier
Copy link
Contributor

gschier commented May 30, 2019

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.

@betterphp
Copy link
Author

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?

@bohdanlisovskyi
Copy link

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

@jbonet
Copy link

jbonet commented Jun 25, 2019

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

@st0yanov
Copy link

st0yanov commented Jul 2, 2019

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

@camflan
Copy link

camflan commented Jul 3, 2019

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. 🤔

@gcerda
Copy link

gcerda commented Jul 10, 2019

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

@stale
Copy link

stale bot commented Sep 8, 2019

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.

@stale stale bot added the stale Bot: Stale Issue label Sep 8, 2019
@betterphp
Copy link
Author

Still an issue here.

@stale stale bot removed the stale Bot: Stale Issue label Sep 9, 2019
@stale
Copy link

stale bot commented Nov 8, 2019

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.

@stale stale bot added the stale Bot: Stale Issue label Nov 8, 2019
@betterphp
Copy link
Author

Not stale ya'll

@stale stale bot removed the stale Bot: Stale Issue label Nov 10, 2019
@gschier gschier added Accepted 👌 E-good-first-issue Experience required: Beginner / New N-help Needs: Help labels Dec 11, 2019
@martisj
Copy link

martisj commented Sep 15, 2020

image

I am getting this when loading a PDF.

@gedsonmarcelino
Copy link

image

I am getting this when loading a PDF.

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

@gedsonmarcelino
Copy link

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.

=)

@develohpanda
Copy link
Contributor

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?

@ranjan-purbey
Copy link
Contributor

I tested the PDF on 2020.5.2 and the text renders correctly. We can close this issue perhaps.

@develohpanda
Copy link
Contributor

Thanks @ranjan-purbey! 🙏🏽 Closed as resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-good-first-issue Experience required: Beginner / New N-help Needs: Help
Projects
None yet
Development

No branches or pull requests