<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>13</ContextCount>
  <ElementCount>39</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>1</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="d901781d424b3.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="424B3" isUsgaap="true" original="d901781d424b3.htm">d901781d424b3.htm</File>
    <File>jhpdf-20250417.xsd</File>
    <File>jhpdf-20250417_def.xml</File>
    <File>jhpdf-20250417_lab.xml</File>
    <File>jhpdf-20250417_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>g466944dsp001a.jpg</File>
    <File>g466944dsp001aa.jpg</File>
    <File>g466944dsp2.jpg</File>
    <File>g466944g0409230640436.jpg</File>
    <File>g466944g0409230640616.jpg</File>
    <File>g466944stamp001.jpg</File>
    <File>g901781g2img11dcc7dd1.jpg</File>
    <File>g901781g2jhim_blk.gif</File>
    <File>g901781jhim_fcv.jpg</File>
    <File>g901781moodysglobal.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="2">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="83">http://xbrl.sec.gov/cef/2024</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
