Skip to content
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

IE / Firefox / Chrome compatibility #14

Open
dev-td opened this issue Jan 3, 2023 · 0 comments
Open

IE / Firefox / Chrome compatibility #14

dev-td opened this issue Jan 3, 2023 · 0 comments

Comments

@dev-td
Copy link

dev-td commented Jan 3, 2023

Hi guys,

Not really an issue but more a question regarding pdfComponentExtraParams correct usage.

I'm trying to display PDF in a filepond instance.
I'm working on Vue2 with the following dependencies

"filepond": "^4.30.4"
"filepond-plugin-pdf-preview": "^1.0.4"

In a page component I setup the filepond as follows :

<setup>
    ...

    // Import FilePond component 
    import vueFilePond, { setOptions } from "vue-filepond";
    // Import FilePond styles
    import "filepond/dist/filepond.min.css";
    // Import FilePond plugins
    import "filepond-plugin-pdf-preview/dist/filepond-plugin-pdf-preview.css";

    // Create filepond 
    const FilePond = vueFilePond(FilePondPluginPdfPreview);
    setOptions({
         allowPdfPreview: true,
         pdfComponentExtraParams: 'toolbar=0&view=fit&page=1'
    });

    ...
</setup>

Also I want 3 PDF inlines so :

<style>
    .filepond--item {width: calc(33% - 0.5em);}
</style>

Now the problem I'm having is the following with Firefox and Internet Explorer : the view=fit doesn't work.
Firefox (don't see the bottom of the PDF)
Firefox
Microsoft Edge (I don't see much of the PDF)
MicrosoftEdge
And what I'd like is to have the exact same result as the one obtained in Chrome
chrome

Am I doing something wrong ?

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

No branches or pull requests

1 participant