<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>23</ContextCount>
  <ElementCount>9</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>22</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>1</UnitCount>
  <MyReports>
    <Report instance="f45629d1.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995470 - Disclosure - N-2</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cef/role/N2</Role>
      <ShortName>N-2</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="N-CSRS" isDefinitelyNotFs="true" isNcsr="true" isUsgaap="true" original="f45629d1.htm">f45629d1.htm</File>
    <File>jhpdf-20260430.xsd</File>
  </InputFiles>
  <SupplementalFiles>
    <File>g7ehvcw91s4ps8uh96dff.jpg</File>
    <File>gsm6h5wwfv65u27i9rh7k.jpg</File>
    <File>img399de1572.gif</File>
    <File>img450a298b8.jpg</File>
    <File>img80c5e0a63.gif</File>
    <File>imgb74f1c2c7.gif</File>
    <File>imgc92167b35.gif</File>
    <File>imgdcaf0d941.gif</File>
    <File>imgf4290db64.gif</File>
    <File>imgfe5ad4df6.gif</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="25">http://xbrl.sec.gov/cef/2025</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
