Skip to content

find the title from second page#12157

Merged
koppor merged 5 commits into
JabRef:mainfrom
leaf-soba:close-issue-12139
Nov 26, 2024
Merged

find the title from second page#12157
koppor merged 5 commits into
JabRef:mainfrom
leaf-soba:close-issue-12139

Conversation

@leaf-soba

@leaf-soba leaf-soba commented Nov 5, 2024

Copy link
Copy Markdown
Contributor

Mandatory checks

  • I own the copyright of the code submitted and I licence it under the MIT license
  • Change in CHANGELOG.md described in a way that is understandable for the average user (if change is visible to the user)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

find the title from second page
@@ -232,7 +232,7 @@ public TitleExtractorByFontSize() {

public String getTitleFromFirstPage(PDDocument document) throws IOException {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method name does not match the content of the method any more.

fix method name
@leaf-soba leaf-soba requested a review from koppor November 6, 2024 00:55
@calixtus

calixtus commented Nov 7, 2024

Copy link
Copy Markdown
Member

I believe we need to find or create a test file to move forward here. Maybe we can ask the university if they can provide an mit licensed test file?

add a unit test file with a test cover page
@koppor

koppor commented Nov 11, 2024

Copy link
Copy Markdown
Member

Test PDF not OK - the title page is OK, but the subsequent PDF not

image

You can use for example following paper: src\test\resources\pdfs\IEEE\ieee-paper.pdf as content for pages 2 onwards.

I bought an Acrobat Professional X for 10€ some years ago. - I think, other PDF tools such as PDFSam also work to create a PDF.

@koppor koppor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test PDF needs to be updated.

I love consistency - and the title page should somehow match the PDF attached. You can also create a new PDF based on src\test\resources\pdfs\IEEE)

change unit test cover page file
@leaf-soba leaf-soba requested a review from koppor November 15, 2024 02:27

@koppor koppor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love consistency - and the title page should somehow match the PDF attached. You can also create a new PDF based on src\test\resources\pdfs\IEEE)

The current version has following data:

Page 1:

  • Two Authors: "Test Author" asnd "Author Test"
  • Titel: "A Test Title."

Page 2:

  • One author: "First Author"
  • Title: "JabRef Example for Reference Parsing"

image

Please make this consistent. Make the first page matchting the second page. Change "Test Author, Author Test" to "First Author". Change "A Test Title." to "JabRef Example for Reference Parsing"

fix the pdf file with consistency cover
@leaf-soba leaf-soba requested a review from koppor November 20, 2024 08:57

@leaf-soba leaf-soba left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the pdf file with consistent cover

@koppor koppor added this pull request to the merge queue Nov 25, 2024
Merged via the queue into JabRef:main with commit 77907c8 Nov 26, 2024
@subhramit

Copy link
Copy Markdown
Member

I think this needed a changelog entry?

@koppor

koppor commented Nov 26, 2024

Copy link
Copy Markdown
Member

I think this needed a changelog entry?

Good point! Can you create one? 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support PdfContentImport with QUT title page

4 participants