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

ab [vips::Error]: no such operation pdfload_buffer VipsOperation: class "pdfload_buffer" not found #56

Open
AnoopFranc opened this issue Nov 1, 2023 · 1 comment
Labels
question Further information is requested

Comments

@AnoopFranc
Copy link

        const vipsImage = vips.Image.pdfloadBuffer(attachment, {page: pageNumber});
        const  image = vipsImage.pngsaveBuffer();

I wanted to create preview image for pdf with same scale in node js, but seems like it's not working, throws me an error

ab [vips::Error]: no such operation pdfload_buffer VipsOperation: class "pdfload_buffer" not found

I am using
Node - v18.16.0
"wasm-vips": "^0.0.5"

Is this something that is not developed or is it a bug

@kleisauke kleisauke added the question Further information is requested label Nov 5, 2023
@kleisauke
Copy link
Owner

wasm-vips doesn't currently support loading PDF files, since it's dependent on PDFium, which is a bit tricky to set-up given that it uses a non-standard build system (i.e. gclient and gn).

libvips also has the ability to load PDF files using Poppler. However, it's licensed under the GPL, which means you cannot distribute statically linked binaries with it (PDFium doesn't have this issue as it is licensed under the permissive Apache-2.0 license).

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

No branches or pull requests

2 participants