title: Itext change bookmarks zoom level to inherit zoom in existing pdf
body: <p>Using the <strong>iText5</strong> PDF library, I am able to <strong>read bookmarks</strong> exist in PDF. Now I want to change the <code>zoom level of bookmarks</code> (Inherit zoom) in existing PDF using iText.
  Is it possible using the iText PDF library, and how? </p>
  
  <p>I have attached a screenshot.
  <img src="https://i.stack.imgur.com/yd5jx.png" alt="enter image description here"></p>
  
  <p>This is the code I am using to change the bookmark zoom level (as per @lowagie comment):</p>
  
  <pre><code>public void changeList(List&lt;HashMap&lt;String, Object&gt;&gt; list) {
          for (HashMap&lt;String, Object&gt; entry : list) {
              for (String key : entry.keySet()) {
                  System.out.println(key);
  
                  if ("Kids".equals(key)) {
                      Object o = entry.get(key);
                      changeList((List&lt;HashMap&lt;String, Object&gt;&gt;) o);
                  } else if ("Page".equals(key)) {
                      String dest = (String) entry.get(key);
                      entry.put("Page", dest.replaceAll("Fit", "XYZ 30 100 0"));
                  }
              }
          }
      }
  </code></pre>
  
  <p>Bookmark Tree Structure :
  <img src="https://i.stack.imgur.com/wesjX.png" alt="enter image description here"></p>