Python Forum
Adding Language metadata to a PDF programmatically
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding Language metadata to a PDF programmatically
#1
How can we add ‘English’ as Advanced->Reading Options->Language property to a PDF programmatically?

When I use pyPDF2.pdfWriter() class as below:
pdfWriter.addMetadata({'/Producer':’XYZ’,
'/Title' : ‘XYZ’,
'/Language' : 'English'}),
Language is getting added as a custom property instead of updating Advanced->Reading Options->Language.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question How create programmatically variables ? SpongeB0B 6 1,300 Aug-19-2023, 05:10 AM
Last Post: SpongeB0B
Question image manipulation (cropping and MetaData) SpongeB0B 4 1,150 Jul-03-2023, 06:35 PM
Last Post: SpongeB0B
  How to programmatically stop a program in Jupyter Notebook? Mark17 11 36,876 Feb-12-2023, 01:41 PM
Last Post: jp21in
  Create Excel Line Chart Programmatically dee 3 1,178 Dec-30-2022, 08:44 PM
Last Post: dee
  AttributeError: 'function' object has no attribute 'metadata 3lnyn0 5 4,593 Mar-28-2022, 04:42 PM
Last Post: Larz60+
  How to programmatically exit without Traceback? Mark17 7 6,265 Mar-02-2021, 06:04 PM
Last Post: nilamo
  METADATA Errors millpond 0 1,901 Jul-21-2020, 08:22 AM
Last Post: millpond
  How to sort image files according to a metadata file? Brahmslove 1 3,115 Dec-05-2019, 11:25 PM
Last Post: scidam
  Adding markers to Folium map only adding last element. tantony 0 2,119 Oct-16-2019, 03:28 PM
Last Post: tantony
  Parse the data in XML metadata field klllmmm 2 3,256 Jun-19-2019, 04:24 PM
Last Post: klllmmm

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020