[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2023-08-13 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17753797#comment-17753797
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 8/13/23 3:47 PM:
--

I have no strong opinion and here's why:
why revert: it's a breaking change
why keep: I like this "automatic" system with annotations. 


was (Author: tilman):
I have no strong opinion here's why:
why revert: it's a breaking change
why keep: I like this "automatic" system with annotations. 

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense
> Additional input:
> https://clig.dev/



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2023-08-13 Thread Maruan Sahyoun (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17753793#comment-17753793
 ] 

Maruan Sahyoun edited comment on PDFBOX-2602 at 8/13/23 3:40 PM:
-

I see - so is the conclusion to be compatible or breaking (which IMHO is OK for 
a major release)? 

There is also the comment from Simon thinking that CLI should be stable from 
2.x to 3.x which  would mean to revert the changes to a state where the 
commands are the same.


was (Author: msahyoun):
I see - so is the conclusion to be compatible or breaking (which IMHO is OK for 
a major release)? 

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense
> Additional input:
> https://clig.dev/



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2021-04-27 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17334462#comment-17334462
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 4/28/21, 5:42 AM:
---

[~jmvezic] please retry with a snapshot
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.0-SNAPSHOT/
the call without parameters should not work on a headless system.


was (Author: tilman):
[~jmvezic] please retry with a snapshot
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.0-SNAPSHOT/
the call without parameters should not work on a headless system.

I have no trouble opening the result file created with 3.0, maybe this is 
related to fixed bugs.

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense
> Additional input:
> https://clig.dev/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2021-04-27 Thread Jira


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17333528#comment-17333528
 ] 

Andreas Lehmkühler edited comment on PDFBOX-2602 at 4/28/21, 4:34 AM:
--

It should help as {{main}} isn't called when loading the class. The modifier 
has to be changed so that is isn't a static constant anymore, but that 
shouldn't be an issue at all


was (Author: lehmi):
It should help as {{main}} isn't called when loading the class. The modifier 
has to be changed so that is isn't a static constant anymore, but that should 
be an issue at all

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense
> Additional input:
> https://clig.dev/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2021-04-27 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17333481#comment-17333481
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 4/27/21, 6:55 PM:
---

I wonder if it would help if the initialization
{code}
private static final int SHORCUT_KEY_MASK = 
Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
{code}
is moved to the PDFDebugger constructor. See also
https://stackoverflow.com/questions/8517121/java-what-is-the-difference-between-init-and-clinit


was (Author: tilman):
I wonder if it would help if the initialization
{code}
private static final int SHORCUT_KEY_MASK = 
Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
{code}
is moved to the PDFDebugger constructor.

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense
> Additional input:
> https://clig.dev/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2021-01-14 Thread Simon Steiner (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17264988#comment-17264988
 ] 

Simon Steiner edited comment on PDFBOX-2602 at 1/14/21, 4:13 PM:
-

At least over the years of using various cmd line tools, the cmd line doesnt 
change in a breaking way even after a major release, the java api may change 
but most users are not affected by that


was (Author: ssteiner1):
At least over the years of using various cmd line tools, the cmd line doesnt 
change even after a major release, the java api may change but most users are 
not affected by that

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense
> Additional input:
> https://clig.dev/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-30 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17256519#comment-17256519
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 12/30/20, 1:51 PM:


Can we keep the old command names as a "secret" possibility? My problem is that 
when I answer support requests that require a test from the command line, I 
usually test with 3.0 first, and if that one works, I try the same with 2.0. So 
now I would have to remember both command name sets.


was (Author: tilman):
Can we keep the old command names as a "secret" possibility? My problem is that 
when I answer support requests that require a test from the command line, I 
usually test with 3.0 first, and if that one works, I try the same with 2.0. So 
now I would have to remember both.

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense
> Additional input:
> https://clig.dev/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-28 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17255605#comment-17255605
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 12/28/20, 3:38 PM:


There is a new problem with PDFDebugger, the "show internal structure" menu no 
longer works. In ViewMenu.createViewMenu() is a handler that calls 
{{pdfDebugger.hasDocument()}} which returns false even when there is a 
document. It turns out that the PDFDebugger object is constructed twice. -three 
times... once with parameter, then without, then with.-


was (Author: tilman):
There is a new problem with PDFDebugger, the "show internal structure" menu no 
longer works. In ViewMenu.createViewMenu() is a handler that calls 
{{pdfDebugger.hasDocument()}} which returns false even when there is a 
document. It turns out that the PDFDebugger object is constructed three 
times... once with parameter, then without, then with.

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense
> Additional input:
> https://clig.dev/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-28 Thread Maruan Sahyoun (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17255604#comment-17255604
 ] 

Maruan Sahyoun edited comment on PDFBOX-2602 at 12/28/20, 2:31 PM:
---

{noformat}
Usage: pdfbox [COMMAND] [OPTIONS]
Commands:
  debug  Analyzes and inspects the internal structure of a PDF document
  decryptDecrypts a PDF document
  encryptEncrypts a PDF document
  exportfdf  Exports AcroForm form data to FDF
  exportxfdf Exports AcroForm form data to XFDF
  importfdf  Imports AcroForm form data from FDF
  importxfdf Imports AcroForm form data from XFDF
  extractimages  Extracts the images from a PDF document
  extracttextExtracts the text from a PDF document
  overlayAdds an overlay to a PDF document
  print  Prints a PDF document
  split  Splits a PDF document into number of new documents
  fromimage  Creates a PDF document from images
  fromtext   Creates a PDF document from text
  decode Writes a PDF document with all streams decoded
  versionGets the version of PDFBox
  help   Displays help information about the specified command
{noformat}

I've kept the original names of the individual tools but use them under a 
different command in the pdfbox app so it's more consistent and looks like an 
action to be executed - WDYT? Not committed yet!


was (Author: msahyoun):
{noformat}
Usage: pdfbox [COMMAND] [OPTIONS]
Commands:
  debug  Analyzes and inspects the internal structure of a PDF document
  decryptDecrypts a PDF document
  encryptEncrypts a PDF document
  exportfdf  Exports AcroForm form data to FDF
  exportxfdf Exports AcroForm form data to XFDF
  importfdf  Imports AcroForm form data from FDF
  importxfdf Imports AcroForm form data from XFDF
  extractimages  Extracts the images from a PDF document
  extracttextExtracts the text from a PDF document
  overlayAdds an overlay to a PDF document
  print  Prints a PDF document
  split  Splits a PDF document into number of new documents
  fromimage  Creates a PDF document from images
  fromtext   Creates a PDF document from text
  decode Writes a PDF document with all streams decoded
  versionGets the version of PDFBox
  help   Displays help information about the specified command
{noformat}

I've kept the original names of the individual tools but use them under a 
different command in the pdfbox app so it's more consistent and looks like an 
action to be executed - WDYT?

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense
> Additional input:
> https://clig.dev/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-27 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17255310#comment-17255310
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 12/27/20, 7:17 PM:


How about making the commands case insensitive? This way old habits don't have 
to be changed.


was (Author: tilman):
How about making the commands case insensitive? This way old habits don't have 
to be changed.

 

 

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense
> Additional input:
> https://clig.dev/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-21 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17252671#comment-17252671
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 12/21/20, 11:51 AM:
-

Encrypt usage: the two last lines are to much the left

Calling it with 

java -jar pdfbox-app-3.0.0.jar Encrypt -O=12345 file.pdf result.pdf

brings
picocli.CommandLine$ExecutionException: Parsed command 
(org.apache.pdfbox.tools.Encrypt@76a4d6c) is not a Method, Runnable or Callable

javadoc error:
Encrypt.java:110: error: exception not thrown: java.io.IOException


was (Author: tilman):
Encrypt usage: the two last lines are to much the left

Calling it with 

java -jar pdfbox-app-3.0.0.jar Encrypt -O=12345 file.pdf result.pdf

brings
picocli.CommandLine$ExecutionException: Parsed command 
(org.apache.pdfbox.tools.Encrypt@76a4d6c) is not a Method, Runnable or Callable


> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-21 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17252595#comment-17252595
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 12/21/20, 8:22 AM:


WriteDecodedDoc says "Error importing FDF data" when running on a file that 
doesn't exist, but the target directory when writing an existing file is 
correct.


was (Author: tilman):
WriteDecodedDoc says "Error importing FDF data" when running on a file that 
doesn't exist, but the target directory is correct.

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-21 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17252622#comment-17252622
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 12/21/20, 8:15 AM:


TextToPDF misses the names of the standard fonts.

Helvetica (default)
 Courier-Bold
 Courier-BoldOblique
 Times-Roman
 Helvetica-Oblique
 Courier-Oblique
 Symbol
 Times-Italic
 Helvetica
 Helvetica-Bold
 Times-BoldItalic
 ZapfDingbats
 Times-Bold
 Helvetica-BoldOblique
 Courier

The usage text for "-ttf" no longer mentions that this is a file.


was (Author: tilman):
TextToPDF misses the names of the standard fonts.

The usage text for "-ttf" no longer mentions that this is a file.

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-20 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17252591#comment-17252591
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 12/21/20, 4:09 AM:


I would like to keep PDFDebugger / PDFReader because I do all from the same 
command line, i.e. I don't want to change directories depending on what tool 
I'm using while developing.

I tried PDFSplit -and ExtractText-, it works but the result appears in the 
local directory instead of the directory of the file being split. That is new.


was (Author: tilman):
I would like to keep PDFDebugger / PDFReader because I do all from the same 
command line, i.e. I don't want to change directories depending on what tool 
I'm using while developing.

I tried PDFSplit and ExtractText, it works but the result appears in the local 
directory instead of the directory of the file being split. That is new.

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-18 Thread Maruan Sahyoun (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17251601#comment-17251601
 ] 

Maruan Sahyoun edited comment on PDFBOX-2602 at 12/18/20, 8:47 AM:
---

That's somewhat expected and will change (I think) when using picocli for 
pdfbox.java too. Will finish it over the WE.


was (Author: msahyoun):
That's somewhat expected and will change (I think) when using picocli for 
pdfbox.java too

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-18 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17251578#comment-17251578
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 12/18/20, 8:01 AM:


I'm also unable to run ExtractImages from the command line (from pdfbox-app). 
What worked for me was to add
{code}

  commons-io
  commons-io
  provided

{code}
to the pom.xml of the pdfbox-app. (However adding picocli there isn't needed - 
weird. Might be because it has the scope "compile" in the pom.xml in the tools 
subproject)


was (Author: tilman):
I'm also unable to run ExtractImages from the command line (from pdfbox-app). 
What worked for me was to add
{code}

  commons-io
  commons-io
  provided

{code}
to the pom.xml of the pdfbox-app. (However adding picocli there isn't needed - 
weird)

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Comment Edited] (PDFBOX-2602) Enhance command line tools

2020-12-18 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17251166#comment-17251166
 ] 

Tilman Hausherr edited comment on PDFBOX-2602 at 12/18/20, 8:00 AM:


commons-io is 2.6 in tools, but 2.8.0 in parent. Doesn't seem to have an 
effect...

However I can't run text extraction from the command line (from pdfbox-app). 
What worked for me is to add "|picocli/**" in the "Embed-Dependency" part of 
the pom.xml of the app.


was (Author: tilman):
commons-io is 2.6 in tools, but 2.8.0 in parent. Doesn't seem to have an 
effect...

However I can't run text extraction from the command line. What worked for me 
is to add "|picocli/**" in the "Embed-Dependency" part of the pom.xml of the 
app.

> Enhance command line tools
> --
>
> Key: PDFBOX-2602
> URL: https://issues.apache.org/jira/browse/PDFBOX-2602
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 1.8.8, 2.0.0
>Reporter: Maruan Sahyoun
>Assignee: Maruan Sahyoun
>Priority: Minor
> Fix For: 3.0.0 PDFBox
>
>
> The command line tools shall be enhanced to have the same behavior across all 
> tools.
> From the discussion on the dev mailing list
> - add an -h option to print the usage
> - print the usage to System.err and use an exit code of 1 if there was an 
> invalid command line parameter
> - print messages on exceptions to System.err
> - rethrow the exception so java can handle it if it will terminate afterwards 
> anyway
> - use an exit code of 1if rethrowing doesn't make sense



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org