# PyPDF script to convert pdf to image

**URL:** <https://forum.seatable.com/t/pypdf-script-to-convert-pdf-to-image/5690>\
**Category:** Formulas\
**Created:** [November 18, 2024, 12:53pm UTC](https://forum.seatable.com/t/pypdf-script-to-convert-pdf-to-image/5690 "2024-11-18T12:53:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeleneRousseau](https://forum.seatable.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@HeleneRousseau](https://forum.seatable.com/u/HeleneRousseau)\
**Post date:** [November 18, 2024, 12:53pm UTC](https://forum.seatable.com/t/pypdf-script-to-convert-pdf-to-image/5690/1 "2024-11-18T12:53:53Z")

</div>

Hi,

I wonder if someone who understands Python Scripting would be able to help me with a Python Script to convert a pdf file (all pages) to image/s. If the file column is already an image to copy it to the receipts image column.

My table name is Requisitions  
My PDF file column is called Receipts Upload  
The column where I would like to save the image is Receipt Image

I have tried my hand in using AI to assist me with this but I am getting errors and am not clued up in how to solve this.

I would appreciate any assistance 🙂

Thanks,  
Helene

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [November 18, 2024, 8:38pm UTC](https://forum.seatable.com/t/pypdf-script-to-convert-pdf-to-image/5690/2 "2024-11-18T20:38:13Z")

</div>

I guess this new topic is related to this topic: [Converting file to image - #14 by rdb](https://forum.seatable.io/t/converting-file-to-image/5166/14)

What I still don’t understand: Why do you want to convert a PDF to an image to then use it in the Page Design plugin to create another PDF? Why don’t you simply create one PDF using the Page Design plugin and then merge the Page Design PDF with the other PDF? The latter procedure seems more reasonable to me and for this we also have a documentation: [6. Merge PDF - SeaTable Developer Manual](https://developer.seatable.io/scripts/python/examples/merge_pdf/)

---

<div class="post-metadata">

**Author:** ![HeleneRousseau](https://forum.seatable.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@HeleneRousseau](https://forum.seatable.com/u/HeleneRousseau)\
**Post date:** [November 19, 2024, 3:02pm UTC](https://forum.seatable.com/t/pypdf-script-to-convert-pdf-to-image/5690/3 "2024-11-19T15:02:30Z")

</div>

I have tried this method and it has not worked for me. The reason for this workaround is because sometimes the file might be a PDF and sometimes it might already be an image. Also I can then just click the button “Create Req Doc” and then I have my file complete. In my head it seems simpler.

It also appears to me that the MergePDF script wants both PDFs to be in the same column? Anyway, if you are able to help me either way I will be happy to try it.

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [November 21, 2024, 10:14am UTC](https://forum.seatable.com/t/pypdf-script-to-convert-pdf-to-image/5690/4 "2024-11-21T10:14:16Z")

</div>

I am working on a script which converts images into DINA4 PDFs. Would this help you?

---

<div class="post-metadata">

**Author:** ![HeleneRousseau](https://forum.seatable.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@HeleneRousseau](https://forum.seatable.com/u/HeleneRousseau)\
**Post date:** [November 21, 2024, 10:50am UTC](https://forum.seatable.com/t/pypdf-script-to-convert-pdf-to-image/5690/5 "2024-11-21T10:50:46Z")

</div>

I am unsure what a DINA4 PDF is.

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [November 21, 2024, 1:04pm UTC](https://forum.seatable.com/t/pypdf-script-to-convert-pdf-to-image/5690/6 "2024-11-21T13:04:20Z")

</div>

Sorry for being imprecise. By DINA4 PDF, I mean a PDF with the page dimension of [A4](https://en.wikipedia.org/wiki/Paper_size).

---

<div class="post-metadata">

**Author:** ![HeleneRousseau](https://forum.seatable.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@HeleneRousseau](https://forum.seatable.com/u/HeleneRousseau)\
**Post date:** [November 26, 2024, 8:16am UTC](https://forum.seatable.com/t/pypdf-script-to-convert-pdf-to-image/5690/7 "2024-11-26T08:16:56Z")

</div>

Thanks, I don’t think this will solve my problem. For now I will just contintue to screenshot the pdf and upload as image, in image column.

---

<div class="post-metadata">

**Author:** ![system](https://forum.seatable.com/uploads/default/original/1X/04603423fe81a46c321283663086c475429e8ccb.png) [@system](https://forum.seatable.com/u/system)\
**Post date:** [November 28, 2024, 8:56am UTC](https://forum.seatable.com/t/pypdf-script-to-convert-pdf-to-image/5690/8 "2024-11-28T08:56:36Z")

</div>

Closed on November 28, 2024, 8:56am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
