gpt4 book ai didi

java - PDF框 - “no main manifest attribute”

转载 作者:行者123 更新时间:2023-12-02 10:03:21 34 4
gpt4 key购买 nike

我尝试在 powershell 中运行 pdfbox,但出现错误:

java -jar .\pdfbox-2.0.14.jar ExtractText '.\TEST.PDF' out.txt
no main manifest attribute in pdfbox-2.0.14.jar

与 pdfbox-tools-2.0.14.jar 相同:

java -jar .\pdfbox-tools-2.0.14.jar ExtractText '.\TEST.PDF' out.txt
no main manifest attribute in pdfbox-tools-2.0.14.jar

Java版本:

java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) Client VM (build 25.201-b09, mixed mode)

最佳答案

尝试 pdfbox-app-2.0.8.jar,它对我有用(版本并不那么重要)。

usr>java -jar C:\Users\Dominique\Documents\NetBeansProjects\Twago\pdf2csv\dist\lib\pdfbox-app-2.0.8.jar
PDFBox version: "2.0.8"
Usage: java -jar pdfbox-app-x.y.z.jar <command> <args..>

Possible commands are:
ConvertColorspace
Decrypt
Encrypt
ExtractText
ExtractImages
OverlayPDF
PrintPDF
PDFDebugger
PDFMerger
PDFReader
PDFSplit
PDFToImage
TextToPDF
WriteDecodedDoc

usr>

关于java - PDF框 - “no main manifest attribute”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55476836/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com