Adding text and signature on down of PDF document [Resolved]

Just starting out? Need help? Post your questions and find answers here.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Adding text and signature on down of PDF document [Resolved]

Post by Kwai chang caine »

Hello at all

Someone have one or several ideas for how it's possible to adding signature and little text on a PDF document with PB

For example one of surely several method :

- Convert the PDF in BMP or JPG
- Overlay an image of a little text "read and approved good for acceptance" and a signature in the down of the page
- Convert the image in PDF

Perhaps there are other methods in freeware, more simple ? or other methods with PB ?

Thanks in advance for your ideas :wink:

Have a good day 8)
Last edited by Kwai chang caine on Wed May 21, 2025 6:02 pm, edited 1 time in total.
ImageThe happiness is a road...
Not a destination
tua
User
User
Posts: 68
Joined: Sun Jul 23, 2023 8:49 pm
Location: BC, Canada

Re: Adding text and signature on down of PDF document

Post by tua »

Is this for a 3rd-party PDF or a PDF you want to create in its entirety?
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4945
Joined: Sun Apr 12, 2009 6:27 am

Re: Adding text and signature on down of PDF document

Post by RASHAD »

Hi KCC
For third party PDF file
1- Run your pdf file using your browser
2- Activate Windows capture tool by Windows key + Lshift + S
3- Capture your image
4- Click the Toastnotify
5- Save the image as jpg format
6- Run PB v6.2x
7- Use Vector lib
8- Load the Image then add Your text as you like
9- Save the image as PDF

For created by yourself
Search the forum for Thorsten1867 (12/2018)
Egypt my love
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Adding text and signature on down of PDF document

Post by Kwai chang caine »

Hello RASHAD :D
Glad to read you 8)

It's for sign documents already created by entreprise (invoice, estimate, etc)
Because often i must :

- print the pdf
- sign manually
- Scan the document signed

And that take a long time furthermore, It's not ecological and economical to print a sheet to throw it away immediately in trash :cry:

I'm surprised a freeware not exist about this subject :shock:
Because numerous persons have surely the same problem that me and not want use a big Adobe software for Just this little function

It's a good idéal your solution, i'll try it but I'm not sure the navigartor make à screenshot of several pages without adding something

Thanks for your interest my friend, and have a very good day
ImageThe happiness is a road...
Not a destination
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4945
Joined: Sun Apr 12, 2009 6:27 am

Re: Adding text and signature on down of PDF document

Post by RASHAD »

Hi KCC
I think you need an OCR that can handle PDF format
But unfortunately it will cost you money :D
Egypt my love
Axolotl
Enthusiast
Enthusiast
Posts: 798
Joined: Wed Dec 31, 2008 3:36 pm

Re: Adding text and signature on down of PDF document

Post by Axolotl »

Yeah, I am always on the lookout for such an easy-to-use tool.
If you want, use a 3rd party tool (similar to what I'm trying to do):
a) Adobe Acrobat (Reader) can deal with signature.
b) pdf24 Creator (Toolbox) -- Off- and Online Tools for all kind of PDF stuff.
c) Okular (PDF Editor)
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: Adding text and signature on down of PDF document

Post by boddhi »

Kwai chang caine wrote: [...] It's for sign documents already created by entreprise (invoice, estimate, etc) [...]
Hi KCC,

If I remember correctly, you know how to code in VB.
Another solution, then, if you have Word, is to create a macro using the ActiveDocument.Shapes.AddPicture() method.
There was a time when, like you, I needed to affix a “Certifié conforme” stamp with my signature to documents. I created it in JPEG format and inserted it, whenever I needed it, on each page of the PDF file retrieved in WORD and saved the all in PDF.

EDIT : And if you want to add text (e.g like date, ...), you can use ActiveDocument.Shapes.AddTextBox()
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

Re: Adding text and signature on down of PDF document

Post by Marc56us »

I'm surprised a freeware not exist about this subject :shock:
Xpdf command line tools
pdftopng.exe

Code: Select all

NAME
       pdftopng  - Portable Document Format (PDF) to Portable Network Graphics
       (PNG) converter (version 4.05)

SYNOPSIS
       pdftopng [options] PDF-file PNG-root

DESCRIPTION
       Pdftopng converts  Portable  Document  Format  (PDF)  files  to  color,
       grayscale, or monochrome image files in Portable Network Graphics (PNG)
       format.
:wink:
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Adding text and signature on down of PDF document

Post by Kwai chang caine »

Waooouuuhhh !!! :shock:
Thanks a lot all the familly 8)

Thanks to you, I'm leaving with tons of solutions !!! :D

Image

I kiss you a lot, :mrgreen:

Image

and wish at you all..... a very good end of day 8)
ImageThe happiness is a road...
Not a destination
morosh
Enthusiast
Enthusiast
Posts: 329
Joined: Wed Aug 03, 2011 4:52 am
Location: Beirut, Lebanon

Re: Adding text and signature on down of PDF document [Resolved]

Post by morosh »

On a side note, with LibreOffice sdraw (which is free) you can open PDF, add text, image, etc.... and export as PDF
PureBasic: Surprisingly simple, diabolically powerful
User avatar
blueb
Addict
Addict
Posts: 1111
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Adding text and signature on down of PDF document [Resolved]

Post by blueb »

morosh wrote: Wed May 21, 2025 9:06 pm On a side note, with LibreOffice sdraw (which is free) you can open PDF, add text, image, etc.... and export as PDF
Thanks morosh... never used this feature before. Great!
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Adding text and signature on down of PDF document [Resolved]

Post by Kwai chang caine »

Yes thanks a lot MOROSH, i don't know too, it's possible with Libre office :shock:
Again a new method 8)
ImageThe happiness is a road...
Not a destination
Post Reply