Django works with PDF

87 views
Skip to first unread message

Amor Zamora

unread,
Jan 20, 2022, 9:16:57 AM1/20/22
to django...@googlegroups.com
I have 2 problems working with pdf in django.
1. I need a tool, function or library that allows me to open a pdf and read the metadata, to get its 'creator and producer' there, but I have to do this, not with python, because to show it on the frontend.
2. How can I get the country from an Ip address (I use the ipaddress module in my project). But I don't know how I can get the country, because the IPs are assigned by ranges not by regions and the ipaddress module that I know of does not bring anything incorporated to be able to obtain the country.
At this point, I can't use GeoIP, in any of its variants.
please help

--
Amor Zamora
Behind the distance, 
your mouth and mine hide, 
complices of a kiss, caresses, fantasies, 
distance as close as the sky and the sea, 
my piece is in your bed, in mine, is your love.
Behind the distance hide love, memories, 
encounters, experiences, circumstances, pain and good times, 
it is after her, the distant ones, 
that we leave feelings, 
but if we really miss, 
distance,
it is only your time.

Vishesh Mangla

unread,
Jan 20, 2022, 9:22:03 AM1/20/22
to django...@googlegroups.com
PyPDF2

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKMTbHWtN%3D5Pzm2yj2kR3erDLkiArAhJZVmxE0X0hvbjFu6eTA%40mail.gmail.com.

Prince Darlington Ekemini

unread,
Jan 20, 2022, 11:51:11 AM1/20/22
to django...@googlegroups.com
Nice to hear from you,
The “Behind the distance” was a good one do you have others you wrote ?


--

Amor Zamora

unread,
Jan 20, 2022, 1:06:27 PM1/20/22
to django...@googlegroups.com
I didn't write it.  I took it from some writings of my mother, I don't know if she wrote it because he is a poet, but I liked it.

Prince Darlington Ekemini

unread,
Jan 20, 2022, 1:40:24 PM1/20/22
to django...@googlegroups.com
Oh wow 🤩 very nice and a bit emotional.
Do you have more writings like that ?


Gabriel Araya Garcia

unread,
Jan 21, 2022, 8:50:58 AM1/21/22
to django...@googlegroups.com
Hola,
No entiendo lo que es 'metadatos', pero es bastante conocida la librería REPORTLAB,  y yo la he implementado en mis proyectos, es relativamente fácil lograr lo que tu quieres con ella. Si aún no has resuelto tu problema escribeme y te mandare unos ejemplos. Ademas hay lot of sites que muestran su uso.

Saludos,

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




--

gpjhostavie bouala

unread,
Jan 21, 2022, 2:16:13 PM1/21/22
to django...@googlegroups.com
hello please help on how to download and install django

Boris Pérez

unread,
Jan 22, 2022, 10:09:35 PM1/22/22
to django...@googlegroups.com
Hi, for the first, you need to install pypdf2..it's Easy yo get metadata from pdf with that library... Greetings

--
Reply all
Reply to author
Forward
0 new messages