https://github.com/cicirello/add-pdf-metadata
Add metadata to a pdf using pdflatex
https://github.com/cicirello/add-pdf-metadata
add-metadata latex metadata pdf pdflatex
Last synced: 6 months ago
JSON representation
Add metadata to a pdf using pdflatex
- Host: GitHub
- URL: https://github.com/cicirello/add-pdf-metadata
- Owner: cicirello
- License: cc0-1.0
- Created: 2022-08-09T19:42:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-21T16:46:07.000Z (about 3 years ago)
- Last Synced: 2024-10-04T12:41:25.252Z (about 1 year ago)
- Topics: add-metadata, latex, metadata, pdf, pdflatex
- Language: TeX
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# add-pdf-metadata
Add metadata to a pdf using pdflatex regardless of how the original pdf was produced. Here are the steps:
1. Make sure you have an up to date LaTeX system installed such as [TeX Live](https://www.tug.org/texlive/).
2. Read the comments in the file [AddMetadataToPdf.tex](AddMetadataToPdf.tex).
3. Edit the line in that file where indicated with the name of the source pdf that you want to add metadata to.
4. Run `pdflatex AddMetadataToPdf.tex` at the command line, which will produce a file named `AddMetadataToPdf.pdf`
with the contents of the original pdf file, but with the addition of your specified metadata.
5. Change the name of the original pdf if you want to keep it as a backup, or delete the original if you don't.
6. Rename `AddMetadataToPdf.pdf` to the name of the original pdf file.
7. Alternatively, you could rename the original pdf before the above procedure, and then rename `AddMetadataToPdf.tex`
based on how you want the target file named.## Blog Post Explaining Usage
> [Add Metadata to a PDF Using pdfLaTeX](https://dev.to/cicirello/add-metadata-to-a-pdf-using-pdflatex-9e8), posted on DEV on September 21, 2022.