You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lei Zhang, pdfium
I think I have not clealy asked the question. Currently it is possible to get pages as images in .png format. Is it possible to get in WebP image format?
Lei Zhang
unread,
Jul 29, 2021, 11:55:39 AM7/29/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Deepak G, pdfium
To further clarify, how are you using PDFium to convert PDF pages to PNGs?
Deepak G
unread,
Jul 29, 2021, 12:17:51 PM7/29/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lei Zhang, pdfium
Using the below link to run the sample, the PDF pages are rendered as .png images
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Deepak G, pdfium
The sample program is just that, a sample program. It converts to a
few formats, but is not intended to be one that converts to all
formats. If you want to output to WebP, feel free to extend your copy
of the sample program to do that.
Deepak G
unread,
Jul 29, 2021, 12:32:18 PM7/29/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lei Zhang, pdfium
Ok. Thank you for the details. May I know what the FDF_RenderPage method returns? Still now I thought it returns a PDF page as Bitmap.
Lei Zhang
unread,
Jul 29, 2021, 2:16:59 PM7/29/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Deepak G, pdfium
The return type for FPDF_RenderPage() is void. One passes a HDC for it
to render into. This is explained by the comments in
public/fpdfview.h.