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

Maciej Woźniak updated PDFBOX-1621:
-----------------------------------
    Attachment: 
_PDFBOX_1621__Added_setModifiedDate_Calendar_c__method_and_improved_Javadoc_to_show_that_s.patch

I have created method setModifiedDate(Calendar c) and improved Javadoc for old 
method to show that the string passed as an argument must be in PDF ISO Date 
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
>            Priority: Minor
>              Labels: Calendar, PDAnnotation, documentation
>         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]

Reply via email to