pdf

Remove XMP Metadata on PDF/A

若如初见. 提交于 2021-02-19 22:30:42
问题 Is there a way wherein we can remove XMP metadata on a PDF/A Document without removing the PDF/A standardization? I found that using PdfReader reader = new PdfReader(src); PdfDictionary dict = reader.getCatalog(); dict.remove(PdfName.METADATA); dict.remove(PdfName.PROPERTIES); reader.removeUnusedObjects(); Removes both XMP and PDF/A. Is there a way to remove the XMP while retaining the standard or reintroducing PDF/A into the processed document? Thanks. 回答1: You can't remove the XMP

Remove XMP Metadata on PDF/A

夙愿已清 提交于 2021-02-19 22:27:39
问题 Is there a way wherein we can remove XMP metadata on a PDF/A Document without removing the PDF/A standardization? I found that using PdfReader reader = new PdfReader(src); PdfDictionary dict = reader.getCatalog(); dict.remove(PdfName.METADATA); dict.remove(PdfName.PROPERTIES); reader.removeUnusedObjects(); Removes both XMP and PDF/A. Is there a way to remove the XMP while retaining the standard or reintroducing PDF/A into the processed document? Thanks. 回答1: You can't remove the XMP

Remove XMP Metadata on PDF/A

﹥>﹥吖頭↗ 提交于 2021-02-19 22:27:14
问题 Is there a way wherein we can remove XMP metadata on a PDF/A Document without removing the PDF/A standardization? I found that using PdfReader reader = new PdfReader(src); PdfDictionary dict = reader.getCatalog(); dict.remove(PdfName.METADATA); dict.remove(PdfName.PROPERTIES); reader.removeUnusedObjects(); Removes both XMP and PDF/A. Is there a way to remove the XMP while retaining the standard or reintroducing PDF/A into the processed document? Thanks. 回答1: You can't remove the XMP

Remove XMP Metadata on PDF/A

我与影子孤独终老i 提交于 2021-02-19 22:26:08
问题 Is there a way wherein we can remove XMP metadata on a PDF/A Document without removing the PDF/A standardization? I found that using PdfReader reader = new PdfReader(src); PdfDictionary dict = reader.getCatalog(); dict.remove(PdfName.METADATA); dict.remove(PdfName.PROPERTIES); reader.removeUnusedObjects(); Removes both XMP and PDF/A. Is there a way to remove the XMP while retaining the standard or reintroducing PDF/A into the processed document? Thanks. 回答1: You can't remove the XMP

Remove XMP Metadata on PDF/A

孤者浪人 提交于 2021-02-19 22:25:54
问题 Is there a way wherein we can remove XMP metadata on a PDF/A Document without removing the PDF/A standardization? I found that using PdfReader reader = new PdfReader(src); PdfDictionary dict = reader.getCatalog(); dict.remove(PdfName.METADATA); dict.remove(PdfName.PROPERTIES); reader.removeUnusedObjects(); Removes both XMP and PDF/A. Is there a way to remove the XMP while retaining the standard or reintroducing PDF/A into the processed document? Thanks. 回答1: You can't remove the XMP

Merge pdf files within folder java

不羁的心 提交于 2021-02-19 07:52:27
问题 I have searched a few solutions but cannot really find an answer. Within my app i save reports to pdf using IText, but now i would like to merge all the files within the folder as I complete the report. The issue is each folder contains different number of files so I cannot just hardcode them in. Any advice will be appreciated. 回答1: Here is a working example. I have used ITEXT Dependencies : <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.10<

Print a PDF to a file in PowerShell

半城伤御伤魂 提交于 2021-02-19 07:38:37
问题 I need to automatically print a PDF file to a file (need to have printer driver set all the print options like stapling, duplexing, etc) on a network folder so other employees can print the .prn file from networked printers. After a fair bit of searching I have found that it is possible to have PowerShell print the PDF using Start-Process -FilePath document.pdf -Verb Print which invokes the appropriate application to print the PDF but doesn't allow me to check the "Print to file" box. I could

JS, How to detect the print requests of the print window?

青春壹個敷衍的年華 提交于 2021-02-19 07:33:11
问题 I have a form and button in it called Print and Submit The click on that button calls Ajax request which is creating PDF and open it in Print Window using PrintJS plugin ( http://printjs.crabbly.com/ ) I want to call $('#form').submit() after print requests ( Print or Cancel ) I've found this solution https://www.tjvantoll.com/2012/06/15/detecting-print-requests-with-javascript/ but it doesn't work in my case. It works only when I'm using CTRL + P combination 回答1: Looks like Promise is what

Selenium problems with PDF download in Firefox

…衆ロ難τιáo~ 提交于 2021-02-19 07:15:27
问题 I'm working on an upgrade of our internal Java Selenium framework to the latest version 3.14.0 in combination with Firefox 61.0 and Geckodriver 0.21.0. I face problems when it comes to an automated download of a PDF file with Firefox. For example at this link there is a download button where I can let selenium perform a click on. Instead of downloading the pdf, a built-in viewer will be opened. The preference pdfjs.disabled should deactivate the viewer so created the driver instance with a

Django - JS : How to display the first PDF page as cover

旧城冷巷雨未停 提交于 2021-02-19 07:15:26
问题 I would like to improve my script in order to set PDF cover page for each object when user sets the mouve over the object on the template. Actual process: Up to now, I can upload .pdf and .epub file formats according to an object with some additionnals fields : title , language ... The PDF is stored into media directory in my project. In the main page, I display all objects like this : As you can see in the end of each publication, there is a glyphicon which let, up to now, to display inside