[
https://issues.apache.org/jira/browse/PDFBOX-1621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15022763#comment-15022763
]
Tilman Hausherr commented on PDFBOX-1621:
-----------------------------------------
Thanks to both of you! Somehow this was forgotten.
I thought about adding a getModifiedDate() returning a calendar, but didn't,
because the spec mentions that "conforming readers shall accept and display a
string in any format."
> Add setModifiedDate(Calendar c) to PDAnnotation
> -----------------------------------------------
>
> Key: PDFBOX-1621
> URL: https://issues.apache.org/jira/browse/PDFBOX-1621
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 1.8.2
> Reporter: Gilad Denneboom
> Assignee: Tilman Hausherr
> Priority: Minor
> Labels: Annotations, Calendar, documentation
> Fix For: 1.8.11, 2.0.0
>
> Attachments:
> _PDFBOX_1621__Added_setModifiedDate_Calendar_c__method_and_improved_Javadoc_to_show_that_s.patch
>
>
> Currently, the setModifiedDate method takes a String object as its input
> parameter, but this string must be formatted in the PDF ISO Date format,
> which is not documented and is confusing.
> My proposal is to make it more consistent with the setCreationDate method and
> change the input parameter to Calendar, and add a function that converts that
> Calendar object into a properly formatted string. The method that takes a
> String as input can be left for compatibility purposes, but the javadoc
> should be adjusted to show what type of string should be used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]