Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW]: Native PDF Reader Library in Julia #1453

Open
whedon opened this issue May 17, 2019 · 68 comments
Assignees
Labels

Comments

@whedon
Copy link
Collaborator

@whedon whedon commented May 17, 2019

Submitting author: @sambitdash (Sambit Kumar Dash)
Repository: https://github.com/sambitdash/PDFIO.jl
Version: v0.1.5
Editor: @alexhanna
Reviewers: @malmaud, @jarvist
Archive: Pending

Status

status

Status badge code:

HTML: <a href="http://joss.theoj.org/papers/742f48b0842cddf715b58a0bca2ffeb3"><img src="http://joss.theoj.org/papers/742f48b0842cddf715b58a0bca2ffeb3/status.svg"></a>
Markdown: [![status](http://joss.theoj.org/papers/742f48b0842cddf715b58a0bca2ffeb3/status.svg)](http://joss.theoj.org/papers/742f48b0842cddf715b58a0bca2ffeb3)

Reviewers and authors:

Please avoid lengthy details of difficulties in the review thread. Instead, please create a new issue in the target repository and link to those issues (especially acceptance-blockers) by leaving comments in the review thread below. (For completists: if the target issue tracker is also on GitHub, linking the review thread in the issue or vice versa will create corresponding breadcrumb trails in the link target.)

Reviewer instructions & questions

@jarvist & @malmaud, please carry out your review in this issue by updating the checklist below. If you cannot edit the checklist please:

  1. Make sure you're logged in to your GitHub account
  2. Be sure to accept the invite at this URL: https://github.com/openjournals/joss-reviews/invitations

The reviewer guidelines are available here: https://joss.readthedocs.io/en/latest/reviewer_guidelines.html. Any questions/concerns please let @alexhanna know.

Please try and complete your review in the next two weeks

Review checklist for @jarvist

Conflict of interest

Code of Conduct

General checks

  • Repository: Is the source code for this software available at the repository url?
  • License: Does the repository contain a plain-text LICENSE file with the contents of an OSI approved software license?
  • Version: v0.1.5
  • Authorship: Has the submitting author (@sambitdash) made major contributions to the software? Does the full list of paper authors seem appropriate and complete?

Functionality

  • Installation: Does installation proceed as outlined in the documentation?
  • Functionality: Have the functional claims of the software been confirmed?
  • Performance: If there are any performance claims of the software, have they been confirmed? (If there are no claims, please check off this item.)

Documentation

  • A statement of need: Do the authors clearly state what problems the software is designed to solve and who the target audience is?
  • Installation instructions: Is there a clearly-stated list of dependencies? Ideally these should be handled with an automated package management solution.
  • Example usage: Do the authors include examples of how to use the software (ideally to solve real-world analysis problems).
  • Functionality documentation: Is the core functionality of the software documented to a satisfactory level (e.g., API method documentation)?
  • Automated tests: Are there automated tests or manual steps described so that the function of the software can be verified?
  • Community guidelines: Are there clear guidelines for third parties wishing to 1) Contribute to the software 2) Report issues or problems with the software 3) Seek support

Software paper

  • Authors: Does the paper.md file include a list of authors with their affiliations?
  • A statement of need: Do the authors clearly state what problems the software is designed to solve and who the target audience is?
  • References: Do all archival references that should have a DOI list one (e.g., papers, datasets, software)?

Review checklist for @malmaud

Conflict of interest

Code of Conduct

General checks

  • Repository: Is the source code for this software available at the repository url?
  • License: Does the repository contain a plain-text LICENSE file with the contents of an OSI approved software license?
  • Version: v0.1.5
  • Authorship: Has the submitting author (@sambitdash) made major contributions to the software? Does the full list of paper authors seem appropriate and complete?

Functionality

  • Installation: Does installation proceed as outlined in the documentation?
  • Functionality: Have the functional claims of the software been confirmed?
  • Performance: If there are any performance claims of the software, have they been confirmed? (If there are no claims, please check off this item.)

Documentation

  • A statement of need: Do the authors clearly state what problems the software is designed to solve and who the target audience is?
  • Installation instructions: Is there a clearly-stated list of dependencies? Ideally these should be handled with an automated package management solution.
  • Example usage: Do the authors include examples of how to use the software (ideally to solve real-world analysis problems).
  • Functionality documentation: Is the core functionality of the software documented to a satisfactory level (e.g., API method documentation)?
  • Automated tests: Are there automated tests or manual steps described so that the function of the software can be verified?
  • Community guidelines: Are there clear guidelines for third parties wishing to 1) Contribute to the software 2) Report issues or problems with the software 3) Seek support

Software paper

  • Authors: Does the paper.md file include a list of authors with their affiliations?
  • A statement of need: Do the authors clearly state what problems the software is designed to solve and who the target audience is?
  • References: Do all archival references that should have a DOI list one (e.g., papers, datasets, software)?
@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented May 17, 2019

Hello human, I'm @whedon, a robot that can help you with some common editorial tasks. @jameshclrk, it looks like you're currently assigned as the reviewer for this paper 🎉.

⭐️ Important ⭐️

If you haven't already, you should seriously consider unsubscribing from GitHub notifications for this (https://github.com/openjournals/joss-reviews) repository. As a reviewer, you're probably currently watching this repository which means for GitHub's default behaviour you will receive notifications (emails) for all reviews 😿

To fix this do the following two things:

  1. Set yourself as 'Not watching' https://github.com/openjournals/joss-reviews:

watching

  1. You may also like to change your default settings for this watching repositories in your GitHub profile here: https://github.com/settings/notifications

notifications

For a list of things I can do to help you, just type:

@whedon commands
@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented May 17, 2019

Attempting PDF compilation. Reticulating splines etc...
@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented May 17, 2019

@malmaud

This comment has been minimized.

Copy link
Collaborator

@malmaud malmaud commented May 17, 2019

I've begun my review.

In general, I think the need is clear - this package is a utility for reading PDF files in Julia, which is clearly useful to some people.

The paper is intelligible, although suffers from grammatical errors throughout that should be fixed (as does the documentation). An example of a particularly ungrammatical sentence is "Almost, all the functionality of PDF understanding is entirely written from scratch in Julia with only exception of usage of certain (de)compression codecs".

I find the third paragraph ("The APIs are developed...") confusing. What is a "native script based language"? I also don't understand the meaning of the sentence "every well-developed native library out in the market need connectors".

In "Their contribution can be viewed from the following link.", the URL of the link should be included in the paper - I don't think a JOSS paper should have embedded hyperlinks without the actual URL being visible in the document.

The paper should reference other Julia packages for handling PDF documents and explain how this package differs. In particular, I believe Taro.jl is the dominant solution at the moment.

At present, I don't think the documentation is sufficient. There are no examples or tutorials referenced in the readme or documentation. The only overview, the "API structure and design" section in https://sambitdash.github.io/PDFIO.jl/stable/#API-Structure-and-Design-1, is minimal.

The documentation, as far as I've been able to find, consists solely of a description of each of dozens of API method which has been autogenerated from the docstrings in the source code and is listed in alphabetical order. It is not reasonable to expect new users to read through that to get started, and I'm not personally willing to do so and so cannot personally test to see if this package is functional.

The package did install, although I can't personally test its functionality since the documentation is too sparse for me to understand how to use it.

Running the automated test (Pkg.test("PDFIO")) fails for me (see sambitdash/PDFIO.jl#62). From the logs, it looks like the issue is ultimately with a different downstream package (ZipFile), but nevertheless I can't verify this package passes its own tests.

In conclusion, I think major revisions to the documentation are needed, but if that can be accomplished, this software is a good fit for JOSS.

@sambitdash

This comment has been minimized.

Copy link

@sambitdash sambitdash commented May 18, 2019

@malmaud Thanks for your review. I will update the documentation to address your concerns around the documentation. On the failing of the test cases, I guess for some reason the build step did not run when you added the package. If you can run the following command:

pkg> build PDFIO

Now, the test shall pass successfully.

@malmaud

This comment has been minimized.

Copy link
Collaborator

@malmaud malmaud commented May 21, 2019

OK, I just installed and tested in a fresh Julia environment and the tests pass now.

@labarba

This comment has been minimized.

Copy link
Member

@labarba labarba commented Jun 8, 2019

👋 @jameshclrk — We see no progress on your review checklist. Have you started on this? Do give us an updates.

@sambitdash — it looks like there remain several comments from @malmaud that need to be addressed. What's your status?

@sambitdash

This comment has been minimized.

Copy link

@sambitdash sambitdash commented Jun 9, 2019

@labarba - I am going for a complete revamp of the documentation by the end of this month. Most of the suggested changes will be addressed as part of that. I will update when the task is accomplished.

@labarba

This comment has been minimized.

Copy link
Member

@labarba labarba commented Jun 9, 2019

@alexhanna Please follow up by email with @jameshclrk to know when we might expect their review.

@labarba

This comment has been minimized.

Copy link
Member

@labarba labarba commented Jun 10, 2019

@whedon remind @sambitdash in 3 weeks

@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented Jun 10, 2019

Reminder set for @sambitdash in 3 weeks

@alexhanna

This comment has been minimized.

Copy link

@alexhanna alexhanna commented Jun 16, 2019

@sambitdash

This comment has been minimized.

Copy link

@sambitdash sambitdash commented Jun 23, 2019

@whedon commands

@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented Jun 23, 2019

Here are some things you can ask me to do:

# List Whedon's capabilities
@whedon commands

# List of editor GitHub usernames
@whedon list editors

# List of reviewers together with programming language preferences and domain expertise
@whedon list reviewers

EDITORIAL TASKS

# Compile the paper
@whedon generate pdf

# Compile the paper from alternative branch
@whedon generate pdf from branch custom-branch-name

# Ask Whedon to check the references for missing DOIs
@whedon check references

@sambitdash

This comment has been minimized.

Copy link

@sambitdash sambitdash commented Jun 23, 2019

@whedon generate pdf

@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented Jun 23, 2019

Attempting PDF compilation. Reticulating splines etc...
@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented Jun 23, 2019

PDF failed to compile for issue #1453 with the following error:

Error reading bibliography ./paper.bib (line 14, column 1):
unexpected "u"
expecting space, ",", white space or "}"
Error running filter pandoc-citeproc:
Filter returned error status 1
Looks like we failed to compile the PDF

@sambitdash

This comment has been minimized.

Copy link

@sambitdash sambitdash commented Jun 23, 2019

@whedon generate pdf

@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented Jun 23, 2019

Attempting PDF compilation. Reticulating splines etc...
@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented Jun 23, 2019

@sambitdash

This comment has been minimized.

Copy link

@sambitdash sambitdash commented Jun 23, 2019

@whedon generate pdf

@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented Jun 23, 2019

Attempting PDF compilation. Reticulating splines etc...
@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented Jun 23, 2019

@sambitdash

This comment has been minimized.

Copy link

@sambitdash sambitdash commented Jun 23, 2019

Please review with the Version: v0.1.5 of the software.

@alexhanna

This comment has been minimized.

Copy link

@alexhanna alexhanna commented Oct 19, 2019

Thanks so much @malmaud. Can you confirm this by checking off the necessary boxes in your review?

@malmaud

This comment has been minimized.

Copy link
Collaborator

@malmaud malmaud commented Oct 19, 2019

done

@sambitdash

This comment has been minimized.

Copy link

@sambitdash sambitdash commented Oct 19, 2019

Thanks @malmaud.

@alexhanna

This comment has been minimized.

Copy link

@alexhanna alexhanna commented Oct 23, 2019

👋 @jarvist, @Datseris, @dmbates -- we're looking for a second reviewer for this piece after our first one bowed out. Could you possibly have a look at this?

@Datseris

This comment has been minimized.

Copy link

@Datseris Datseris commented Oct 23, 2019

Thank you for the invitation, but I am sorry, I have to decline, too many deadlines to meet.

@jarvist

This comment has been minimized.

Copy link
Collaborator

@jarvist jarvist commented Oct 23, 2019

@alexhanna

This comment has been minimized.

Copy link

@alexhanna alexhanna commented Oct 30, 2019

Hi @jarvist -- are you able to review this now?

@alexhanna

This comment has been minimized.

Copy link

@alexhanna alexhanna commented Oct 30, 2019

@whedon remove @jameshclrk as reviewer

@whedon whedon assigned alexhanna and malmaud and unassigned alexhanna and malmaud Oct 30, 2019
@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented Oct 30, 2019

OK, @jameshclrk is no longer a reviewer

@jarvist

This comment has been minimized.

Copy link
Collaborator

@jarvist jarvist commented Oct 30, 2019

Hi @jarvist -- are you able to review this now?

Certainly!

@alexhanna

This comment has been minimized.

Copy link

@alexhanna alexhanna commented Oct 30, 2019

@whedon add @jarvist as reviewer

@whedon whedon assigned alexhanna, jarvist and malmaud and unassigned alexhanna and malmaud Oct 30, 2019
@whedon

This comment has been minimized.

Copy link
Collaborator Author

@whedon whedon commented Oct 30, 2019

OK, @jarvist is now a reviewer

@jarvist

This comment has been minimized.

Copy link
Collaborator

@jarvist jarvist commented Nov 1, 2019

I've just been reviewing this software + paper, but I can't seem to edit the checkboxes (also, they are still allocated to James Clark. @alexhanna - is this something you can fix?

Generally I'm happy with the package... it installs and tests run. I think the latest draft of the paper looks good.

However, I still think the package README.md could be edited down to make it more clear, and make it easier for a user to understand what the functionality is, and to get started.
For instance, you can:-
julia> pdPageExtractText(stdout, pdDocGetPage(pdDocOpen("10.21105.joss.01453.pdf"), 1))
from the REPL to extract the first page of the JOSS review into the terminal. This is pretty cool functionality, but I had to find this out by fiddling around with it.

Are there any other high level access functions than pdPageExtractText ?

From the point of view of the Package/API (not having read the source code), the namespace is quite confusing: the package is PDFIO but then all the exported functions are prepended with pd which seems superfluous for Julia, because everything is already under the PDFIO namespace of the module.
Similarly, the function arguments seem to vary quite a bit in placing and expectation. Does pdPageExtractText need an io object as the first argument? A default if single argument to return the text object would make a lot of sense. (Making the stdout in my example above superfluous.)
Also, the library seems to fail on Google-docs exported PDFs. (My first test case.) I will file an issue.

@alexhanna

This comment has been minimized.

Copy link

@alexhanna alexhanna commented Nov 1, 2019

Hrm, try now @jarvist? I changed the name on the issue, but I'm not sure if that does anything.

@jarvist

This comment has been minimized.

Copy link
Collaborator

@jarvist jarvist commented Nov 1, 2019

Still no 'edit' option in the '...' drop down menu.

@alexhanna

This comment has been minimized.

Copy link

@alexhanna alexhanna commented Nov 1, 2019

You shouldn't need to edit it. You can click the checkboxes without editing. Does that work for you?

@jarvist

This comment has been minimized.

Copy link
Collaborator

@jarvist jarvist commented Nov 1, 2019

No joy there either. (I think the GUI checkbox clicking is predicated by edit permissions.)

@sambitdash

This comment has been minimized.

Copy link

@sambitdash sambitdash commented Nov 1, 2019

Hi @jarvist,

Thanks a lot for taking time to review the software and the paper. Also reporting the bug on the product.

Are there any other high level access functions than pdPageExtractText ?

All methods starting with pd documented under: https://sambitdash.github.io/PDFIO.jl/dev/#PD-1 are high level functions.

From the point of view of the Package/API (not having read the source code), the namespace is quite confusing: the package is PDFIO but then all the exported functions are prepended with pd which seems superfluous for Julia, because everything is already under the PDFIO namespace of the module.

pd does not stand for PDFIO but PDF Document or simply called PD Layer in most PDF format architectures. This is to differentiate from low level functions called COS Layer which requires you to understand the PDF objects like dictionary, arrays to be able to understand the PDF file. An explanation of these can be seen at: https://sambitdash.github.io/PDFIO.jl/dev/arch/

Moreover, the similar nomenclature is used by other established PDF libraries in the market. Hence, people who have used other PDF libraries may quickly understand the scope of the APIs.

Similarly, the function arguments seem to vary quite a bit in placing and expectation. Does pdPageExtractText need an io object as the first argument? A default if single argument to return the text object would make a lot of sense. (Making the stdout in my example above superfluous.)

  1. PDF files can be large expanding up to several megabytes and can technically grow to gigabytes. With extract text returning strings this may lead to several copies of large strings. IO provides a cleaner interface for the same. Many a times users may extract all pages and IO provides a possibility to append pages over one another.
  2. PDF being an encrypted file format immutable extracted text should not be left in the memory which is a definite possibility with usage of strings. IO can be used to immediately write to a file or clear up the IOBuffer at the end of using the data.

Also, the library seems to fail on Google-docs exported PDFs. (My first test case.) I will file an issue.

This has been fixed. If you think this is a gating requirement for the paper, please let me know so that I can release a new version of the software.

@alexhanna

This comment has been minimized.

Copy link

@alexhanna alexhanna commented Nov 1, 2019

👋 @openjournals/joss-eics can you look into the checkbox issue for new reviewers?

@danielskatz

This comment has been minimized.

Copy link

@danielskatz danielskatz commented Nov 1, 2019

@arfon - can you help with the reviewer invitation here?

@arfon

This comment has been minimized.

Copy link
Member

@arfon arfon commented Nov 1, 2019

@jarvist - you've been invited by GitHub as a collaborator on this repository - you just need to accept the invite at this URL: https://github.com/openjournals/joss-reviews/invitations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.