diff --git a/doclicense/doclicense.dtx b/doclicense/doclicense.dtx index f3083a5..cc97b14 100644 --- a/doclicense/doclicense.dtx +++ b/doclicense/doclicense.dtx @@ -722,9 +722,11 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed } \@ifpackageloaded{hyperxmp}{% % The following options are only defined when the hyperxmp package was loaded. - \hypersetup{% - pdfcopyright = {\doclicenseLongTextForHyperref}, - pdflicenseurl = {\doclicenseURL}, + \AtBeginDocument{% + \hypersetup{% + pdfcopyright = {\doclicenseLongTextForHyperref}, + pdflicenseurl = {\doclicenseURL}, + } } }{} }