---
title: "Discussion on \"Compress a PDF to an exact byte target in the browser\" | Hashnode"
description: "Discussion on \"Compress a PDF to an exact byte target in the browser\". Hit a 200 KB portal limit without uploading the file. A binary search over JPEG quality finds the size, inside the browser tab."
url: "https://hashnode.com/posts/compress-a-pdf-to-an-exact-byte-target-in-the-browser-mwizgsje/6afaba5e67a4cfbccb940279"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Compress a PDF to an exact byte target in the browser](https://toolcin.hashnode.dev/compress-a-pdf-to-an-exact-byte-target-in-the-browser-mwizgsje?utm_source=hashnode&utm_medium=feed)

Hit a 200 KB portal limit without uploading the file. A binary search over JPEG quality finds the size, inside the browser tab.

1d ago · 1 min read · toolcin.hashnode.dev  
Read the article

-   [#webdev](https://hashnode.com/tag/webdev)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#pdf](https://hashnode.com/tag/pdf)
-   [#showdev](https://hashnode.com/tag/showdev)

## Written by

[Github](https://hashnode.com/@github32536)

@github32536 · pakistan

  
[View profile](https://hashnode.com/@github32536)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
