刪除 LaTeX 產生的 pdf 的元數據

刪除 LaTeX 產生的 pdf 的元數據

不確定我的問題與這個論壇有多相關,但無論如何我都會繼續問:)。我使用 LaTeX 建立 pdf,正如預期的那樣,它指示“TeX”作為來源。我需要在線上傳此 pdf 文件,但想避免上傳原始 LaTeX 文件。我使用 Adob​​ePro 的“PDF Optimizer”選項刪除了 pdf 的元資料。但不知何故,該網站仍然將 pdf 檢測為 TeX 生成的文件。有人知道如何讓pdf完全乾淨嗎?

答案1

這些你都可以用hyperrefpackage 來完成。將這些行添加到序言中並更改內容,如下所示pdfproducer={},

\usepackage{hyperref}
%
\hypersetup{
    bookmarks=true,         % show bookmarks bar?
    unicode=false,          % non-Latin characters in Acrobat’s bookmarks
    pdftoolbar=true,        % show Acrobat’s toolbar?
    pdfmenubar=true,        % show Acrobat’s menu?
    pdffitwindow=false,     % window fit to page when opened
%    pdfstartview={FitW},    % fits the width of the page to the window
    pdftitle={Certificate},    % title
    pdfauthor={Dr. Harish Kumar},     % author
    pdfsubject={TEQIP certificates},   % subject of the document
    pdfcreator={Dr. Harish Kumar},   % creator of the document
    pdfproducer={},  % producer of the document
    pdfkeywords={Certificates,} {TEQIP} {Participation}, % list of keywords
    pdfnewwindow=true,      % links in new window
    colorlinks=false,       % false: boxed links; true: colored links
    linkcolor=red,          % color of internal links
    citecolor=green,        % color of links to bibliography
    filecolor=magenta,      % color of file links
    urlcolor=cyan           % color of external links
}

微量元素:

\documentclass{article}
\usepackage{hyperref}
%
\hypersetup{
    bookmarks=true,         % show bookmarks bar?
    unicode=false,          % non-Latin characters in Acrobat’s bookmarks
    pdftoolbar=true,        % show Acrobat’s toolbar?
    pdfmenubar=true,        % show Acrobat’s menu?
    pdffitwindow=false,     % window fit to page when opened
%    pdfstartview={FitW},    % fits the width of the page to the window
    pdftitle={Certificate},    % title
    pdfauthor={Dr. Harish Kumar},     % author
    pdfsubject={TEQIP certificates},   % subject of the document
    pdfcreator={Dr. Harish Kumar},   % creator of the document
    pdfproducer={},  % producer of the document
    pdfkeywords={Certificates,} {TEQIP} {Participation}, % list of keywords
    pdfnewwindow=true,      % links in new window
    colorlinks=false,       % false: boxed links; true: colored links
    linkcolor=red,          % color of internal links
    citecolor=green,        % color of links to bibliography
    filecolor=magenta,      % color of file links
    urlcolor=cyan           % color of external links
}
\usepackage{blindtext}
\begin{document}
  \Blinddocument
\end{document}

在此輸入影像描述

PS:我故意將所有其他(可能不相關)的項目留在hypersetup.詳細資訊請參閱hyperref手冊。

答案2

MetaClean 是一款功能強大的工具,用於檢視、刪除和編輯Microsoft Office(Word、Excel、PowerPoint 和Visio)、OpenOffice(文字處理程式、電子表格和簡報)和PDF(1.0 及更高版本)文檔的元數據。一次清理數百個文件。

http://adarsus.com/en/metaclean.html

Microsoft Windows、Linux、Unix 與 Mac OS X 平台

相關內容