Skip to content

Conversation

AishwaryaSingh123950
Copy link

@AishwaryaSingh123950 AishwaryaSingh123950 commented Aug 27, 2025

  • Added cdn approach in webpack example
  • Now automatically renders sample pdf instead of explicitly uploading one (although upload option is still visible)
  • Updating some old links with the new ones
Screenshot 2025-08-27 at 20 49 56

*
* $ USE_NPM=true npm run build
*/
const useCdn = process.env.USE_NPM !== "true";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a note about this in webpack example readme

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup it is there. Line 46 onwards.

* - Loads a default sample PDF on page load
*/

import dragDrop from "drag-drop";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can simplify this, drag and drop, file selection are not needed, just a simple example that loads the remote PDF (similar to react guide) should be fine.

Copy link
Author

@AishwaryaSingh123950 AishwaryaSingh123950 Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Screen.Recording.2025-09-05.at.17.11.03.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants