From 6d7dc9d59dcb7393c0012a3cf7d79191349e26a4 Mon Sep 17 00:00:00 2001 From: nidafarooqui Date: Thu, 28 Dec 2023 14:45:51 +0300 Subject: [PATCH] update readme and add viewer_with_hidden_buttons.html to web --- README.md | 11 ++++++ ..._buttons.html => viewer_with_buttons.html} | 37 ++++++++++++------- 2 files changed, 34 insertions(+), 14 deletions(-) rename build/generic/web/{viewer_with_hidden_buttons.html => viewer_with_buttons.html} (97%) diff --git a/README.md b/README.md index 14d56af2b598f..045653b942882 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,22 @@ # PDF.js [![Build Status](https://github.com/mozilla/pdf.js/workflows/CI/badge.svg?branch=master)](https://github.com/mozilla/pdf.js/actions?query=workflow%3ACI+branch%3Amaster) + [PDF.js](https://mozilla.github.io/pdf.js/) is a Portable Document Format (PDF) viewer that is built with HTML5. PDF.js is community-driven and supported by Mozilla. Our goal is to create a general-purpose, web standards-based platform for parsing and rendering PDFs. +## Creating a New Fork + + - Run `npm install` (check if node version is supported, currently supports `>= 14`). + - Remove build folder from `.gitignore`. + - Update the `validateFileURL` method in `app.js` and replace code with return true. + - Run `gulp generic` to generate build files. + - Create a new `viewer_with_hidden_buttons.html` file in the `build/generic/web` folder (used for pdf previews in some areas of CE). + - Add `style="display: none !important;"` to all the button elements. + - Push build to repo. + ## Contributing PDF.js is an open source project and always looking for more contributors. To diff --git a/build/generic/web/viewer_with_hidden_buttons.html b/build/generic/web/viewer_with_buttons.html similarity index 97% rename from build/generic/web/viewer_with_hidden_buttons.html rename to build/generic/web/viewer_with_buttons.html index cc9433cb99b3f..2c2e7141267f2 100644 --- a/build/generic/web/viewer_with_hidden_buttons.html +++ b/build/generic/web/viewer_with_buttons.html @@ -1,4 +1,4 @@ - +