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

2023-01-30 Thread ASF subversion and git services (Jira)


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

ASF subversion and git services commented on PDFBOX-2602:
-

Commit 1907122 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1907122 ]

PDFBOX-2602: update picocli

> 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] [Commented] (PDFBOX-5539) Show CRT in PDFDebugger

2023-01-30 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5539:
-

I had a few minutes and looked, it's not as difficult as I thought. I still 
don't have the time, but here are some thoughts if I (or somebody else) has the 
time some day. Whatever needs to be done should start in 
{{PDFDebugger.initTree()}} if my "third alternative view" suggestion is used. 
{{PDFTreeModel}} would need another constructor and modifications in the three 
large methods and in {{isLeaf}}, to handle something that is a bit like 
{{DocumentEntry}} (that one is the for the page view). The menu would have to 
be changed as well (that should be easier).
  
[~lehmi] getXrefTable() returns a map from object key to offset. How can we 
obtain an COSObject from COSObjectKey? With getObjectFromPool()? This code 
shows meaningful output:
{code}
Map xrefTable = document.getDocument().getXrefTable();
for (COSObjectKey objectKey : xrefTable.keySet())
{
COSObject cosObject = document.getDocument().getObjectFromPool(objectKey);
System.out.println(cosObject.getObject().getClass().getName());
}
{code}



> Show CRT in PDFDebugger
> ---
>
> Key: PDFBOX-5539
> URL: https://issues.apache.org/jira/browse/PDFBOX-5539
> Project: PDFBox
>  Issue Type: New Feature
>  Components: Utilities
>Affects Versions: 2.0.27, 3.0.0 PDFBox
>Reporter: Moritz Flöter
>Priority: Major
>
> For analyzing potentially erroneous PDFs it would be quite helpful to be able 
> to show the CRT (Cross Reference Table/xref) and navigate to its entries.
> Some software does provide rather technical (and therefore quite precise) 
> information about errors in the PDF files mentioning the object number in the 
> pdf file instead of page numbers. With PDF-Debugger, I currently have to 
> navigate the Document Catalog Tree structure to find the object. Furthermore, 
> navigating the tree structure does enable one to view unreferenced objects.



--
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] [Updated] (PDFBOX-5539) Show CRT in PDFDebugger

2023-01-30 Thread Tilman Hausherr (Jira)


 [ 
https://issues.apache.org/jira/browse/PDFBOX-5539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-5539:

Attachment: (was: screenshot-1.png)

> Show CRT in PDFDebugger
> ---
>
> Key: PDFBOX-5539
> URL: https://issues.apache.org/jira/browse/PDFBOX-5539
> Project: PDFBox
>  Issue Type: New Feature
>  Components: Utilities
>Affects Versions: 2.0.27, 3.0.0 PDFBox
>Reporter: Moritz Flöter
>Priority: Major
>
> For analyzing potentially erroneous PDFs it would be quite helpful to be able 
> to show the CRT (Cross Reference Table/xref) and navigate to its entries.
> Some software does provide rather technical (and therefore quite precise) 
> information about errors in the PDF files mentioning the object number in the 
> pdf file instead of page numbers. With PDF-Debugger, I currently have to 
> navigate the Document Catalog Tree structure to find the object. Furthermore, 
> navigating the tree structure does enable one to view unreferenced objects.



--
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-5539) Show CRT in PDFDebugger

2023-01-30 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr edited comment on PDFBOX-5539 at 1/30/23 6:22 PM:
--

+1

I don't know when I'll have time to do it. I haven't done anything visual for a 
long time.


was (Author: tilman):
+1

I don't know when I'll have time to do it. I haven't done anything visual for a 
long time.

I assume this will be an array, like the widths array in a font.

 !screenshot-1.png! 

> Show CRT in PDFDebugger
> ---
>
> Key: PDFBOX-5539
> URL: https://issues.apache.org/jira/browse/PDFBOX-5539
> Project: PDFBox
>  Issue Type: New Feature
>  Components: Utilities
>Affects Versions: 2.0.27, 3.0.0 PDFBox
>Reporter: Moritz Flöter
>Priority: Major
>
> For analyzing potentially erroneous PDFs it would be quite helpful to be able 
> to show the CRT (Cross Reference Table/xref) and navigate to its entries.
> Some software does provide rather technical (and therefore quite precise) 
> information about errors in the PDF files mentioning the object number in the 
> pdf file instead of page numbers. With PDF-Debugger, I currently have to 
> navigate the Document Catalog Tree structure to find the object. Furthermore, 
> navigating the tree structure does enable one to view unreferenced objects.



--
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



[GitHub] [pdfbox] knazarenkov commented on pull request #151: PDResource font cache improvement

2023-01-30 Thread via GitHub


knazarenkov commented on PR #151:
URL: https://github.com/apache/pdfbox/pull/151#issuecomment-1408528343

   @THausherr @lehmi Any updates on reviewing PR?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



[GitHub] [pdfbox] Toparvion commented on pull request #153: PDFBOX-4189: Add a method to get GSUB data for specific script tag

2023-01-30 Thread via GitHub


Toparvion commented on PR #153:
URL: https://github.com/apache/pdfbox/pull/153#issuecomment-1408525920

   ✅ The fix has been 
[integrated](https://svn.apache.org/viewvc?view=revision=1907078) into 
Apache Git repository by @lehmi within issue 
[PDFBOX-4189](https://issues.apache.org/jira/browse/PDFBOX-4189).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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