Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Optimize PDF preview (bigger / scalable / hidden menu bar)

オープン
#8,608 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript
領域
frontend, web-dev

調査の方向性

まず、JavaScriptフロントエンドに埋め込まれているPDFプレビューと、そのPDF.jsビューアー統合部分を見つけます。現在の固定サイズのプレビューを提供されたスクリーンショットと比較し、サイズ変更、ビューアーのコントロールとサイドパネルの非表示、別のタブでのドキュメントの表示をどのように実現すべきかを判断します。プレビューで要求された表示オプションを利用でき、ドキュメントが隠れなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.
The preview for embedded PDF files is still very limited and the size of the preview-window is fixed. It's not possible to see the whole page of a Document in a reasonable size. Also the menu of the PDF.js viewer and the miniature side-panel (which is on by default) take a lot of valuable page/screen space. This essentially limits the preview to a hint of what's inside the document, forcing the user to scroll a lot. Also, the button to open the document in another tab to have a better view is hard to find.

Default view
Image

"full width editor" and hidden miniature-view
Image

Describe the solution you'd like
I think it would make a lot of sense to provide options to:

  • scale the size of the PDF preview by dragging a corner with the mouse
  • optionally remove or hide the top menu bar of the PDF.js viewer (is that possible?)
  • open in another tab

Example: OneNote
In OneNote there is a very nice function, when you drag a PDF into a page, that lets you insert a "print" of the page. The view of the document then has zero border, menu, or anything distracting you from the actual page content:

Image
主要言語
JavaScript
スター
665
フォーク
133
平均マージ
1日 17時間
マージ済み PR(30日)
172

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/text のほかの issue

nextcloud/text の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。