-
Notifications
You must be signed in to change notification settings - Fork 818
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
Problems with Flutter web PDF rendering #2263
Comments
Hi @gianlucainnocente, 20250130-0727-44.2518870.mp4Please share the pdf.js script code that is used in the web/index.html file. Could you please try using the script reference provided below if it is not already being used as described and confirm us whether the issue is resolved or not? <script>
const version = '4.10.38';
const pdfjsLibUrl = `https://cdnjs.cloudflare.com/ajax/libs/pdf.js/${version}/pdf.min.mjs`;
const pdfjsWorkerUrl = `https://cdnjs.cloudflare.com/ajax/libs/pdf.js/${version}/pdf.worker.min.mjs`;
const loadPdfJs = async () => {
try {
const pdfjsLib = await import(pdfjsLibUrl);
pdfjsLib.GlobalWorkerOptions.workerSrc = pdfjsWorkerUrl;
console.log('PDF.js loaded successfully');
} catch (error) {
console.error('Error loading PDF.js:', error);
}
};
loadPdfJs();
</script> |
Hello @VijayakumarMariappan , we updated the code with the provided one but the issue still persists with some PDF. Can we check something else? |
@gianlucainnocente,
This enables us to provide you with a better solution at the earliest. |
@immankumarsync can i send you it privately? Because i cannot share the link and the name of my client. |
@gianlucainnocente, you can create a ticket in our support portal to share the requested details. We will check and revert soon. |
@gianlucainnocente , We are closing this issue and request you to create a ticket in our support portal and share the requested details. |
Bug description
With some PDF, the viewer is not rendering well.
You can try using attached pdf.
I also attached two screenshots:
modulo.pdf
Steps to reproduce
SfPdfViewer.network( 'PASTE HERE PDF URL', );
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
modulo.pdf
Stack Traces
Stack Traces
No errors or stack traces
On which target platforms have you observed this bug?
Web
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: