<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic exportPdf documentSize clarification in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1533479#M9890</link>
    <description>&lt;P&gt;Hello, I am trying to use the exportPdf method defined &lt;A href="https://help.qlik.com/en-US/sense-developer/November2018/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/VisualizationAPI/exportPdf-method.htm" target="_blank"&gt;here&lt;/A&gt;. My question is about the documentSize parameter. The documentation says that you can provide one of the given strings or provide a custom size. However, it is not documented what this ObjectMetricSize is supposed to be. Furthermore, there is another parameter called objectSize which uses an ObjectPixelSize without documenting what it should be.&lt;/P&gt;&lt;P&gt;My assumption is that both are objects with height and width properties, but I can't say for sure.&lt;/P&gt;&lt;P&gt;Can anyone add any clarification?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:47:25 GMT</pubDate>
    <dc:creator>dselgo_eidex</dc:creator>
    <dc:date>2024-11-16T06:47:25Z</dc:date>
    <item>
      <title>exportPdf documentSize clarification</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1533479#M9890</link>
      <description>&lt;P&gt;Hello, I am trying to use the exportPdf method defined &lt;A href="https://help.qlik.com/en-US/sense-developer/November2018/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/VisualizationAPI/exportPdf-method.htm" target="_blank"&gt;here&lt;/A&gt;. My question is about the documentSize parameter. The documentation says that you can provide one of the given strings or provide a custom size. However, it is not documented what this ObjectMetricSize is supposed to be. Furthermore, there is another parameter called objectSize which uses an ObjectPixelSize without documenting what it should be.&lt;/P&gt;&lt;P&gt;My assumption is that both are objects with height and width properties, but I can't say for sure.&lt;/P&gt;&lt;P&gt;Can anyone add any clarification?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1533479#M9890</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2024-11-16T06:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: exportPdf documentSize clarification</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1533705#M9892</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Yes, you are correct. They are both objects with height and width properties:&lt;/P&gt;
&lt;PRE&gt;		/**
		 * @typedef ObjectMetricSize {object} - Describes the size, in millimeters (mm), of a 2D object.
		 * @property {number} height - Object height in millimeters (mm).
		 * @property {number} width - Object width in millimeters (mm).
		 */

		/**
		 * @typedef ObjectPixelSize {object} - Describes the size, in pixels, of a 2D object.
		 * @property {number} height - Object height in pixels.
		 * @property {number} width - Object width in pixels.
		 */&lt;/PRE&gt;
&lt;P&gt;Thanks for reporting this.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 09:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1533705#M9892</guid>
      <dc:creator>fos</dc:creator>
      <dc:date>2019-01-23T09:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: exportPdf documentSize clarification</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1534733#M9909</link>
      <description>&lt;P&gt;Thanks for the clarification. I did notice something else though while testing. The strings that you can provide for documentSize don't seem to have any effect (or I'm doing&amp;nbsp;something wrong).&amp;nbsp;Curiously though, when I provide a document size (even just the A3 size), it does create the correct document size.&amp;nbsp;I've attached images showing the settings that I am passing to exportPdf and the generated pdf.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 19:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1534733#M9909</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2019-01-24T19:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: exportPdf documentSize clarification</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1534734#M9910</link>
      <description>&lt;P&gt;And the PDFs&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 19:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1534734#M9910</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2019-01-24T19:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: exportPdf documentSize clarification</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1535261#M9920</link>
      <description>&lt;P&gt;It looks like there is a slight mismatch between the docs and the code here. It should work if you use lower case strings in the documentSize parameter:&lt;/P&gt;
&lt;PRE&gt;vis.exportPdf({ documentSize: 'a3' }).then(console.log);&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 15:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1535261#M9920</guid>
      <dc:creator>fos</dc:creator>
      <dc:date>2019-01-25T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: exportPdf documentSize clarification</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1535264#M9921</link>
      <description>&lt;P&gt;Ah, that makes sense. Thanks&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://community.qlik.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 15:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/exportPdf-documentSize-clarification/m-p/1535264#M9921</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2019-01-25T15:36:41Z</dc:date>
    </item>
  </channel>
</rss>

