<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - page height is zero</title>
    <link>https://forums.adobe.com/community/design_development/pdf_language_and_specifications?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 30 Jan 2014 08:33:21 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-01-30T08:33:21Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: page height is zero</title>
      <link>https://forums.adobe.com/message/6067932?tstart=0#6067932</link>
      <description>&lt;!-- [DocumentBodyStart:0931bc25-7ae2-4da7-8b96-3ba8d1e8cf9b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;The page size presented by Acrobat will derived from exactly four fields:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;MediaBox&lt;/p&gt;&lt;p&gt;CropBox&lt;/p&gt;&lt;p&gt;Rotate&lt;/p&gt;&lt;p&gt;UserUnits&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You state that some PDFs do not have MediaBox but that would be absolutely wrong. It is always required (the others are optional). It may not be present in the Page object, however, because it may be inherited. Not all libraries will report that.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0931bc25-7ae2-4da7-8b96-3ba8d1e8cf9b] --&gt;&lt;img src='/beacon?t=1415903333949' /&gt;</description>
      <pubDate>Thu, 30 Jan 2014 08:33:21 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6067932?tstart=0#6067932</guid>
      <dc:date>2014-01-30T08:33:21Z</dc:date>
      <clearspace:dateToText>9 months 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: page height is zero</title>
      <link>https://forums.adobe.com/message/6067597?tstart=0#6067597</link>
      <description>&lt;!-- [DocumentBodyStart:754c01ed-da07-43e1-ab21-1954db094437] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Adobe offers its PDFLibrary for license from Datalogics. Of course that may too much for your needs (which we don't know anything about).&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:754c01ed-da07-43e1-ab21-1954db094437] --&gt;</description>
      <pubDate>Thu, 30 Jan 2014 04:58:52 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6067597?tstart=0#6067597</guid>
      <dc:date>2014-01-30T04:58:52Z</dc:date>
      <clearspace:dateToText>9 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: page height is zero</title>
      <link>https://forums.adobe.com/message/6067448?tstart=0#6067448</link>
      <description>&lt;!-- [DocumentBodyStart:2c615254-0403-4130-b9a2-ef70a91342f3] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks, yes, I forgot that point that Acrobat Pro does in fact presesent a page size in either properties or the simple rollover in the corner. It's got to be in there somewhere! So then your statement begs a question: What is a good 3rd party library?&lt;/p&gt;&lt;p&gt;thanks!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:2c615254-0403-4130-b9a2-ef70a91342f3] --&gt;</description>
      <pubDate>Thu, 30 Jan 2014 02:41:50 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6067448?tstart=0#6067448</guid>
      <dc:date>2014-01-30T02:41:50Z</dc:date>
      <clearspace:dateToText>9 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: page height is zero</title>
      <link>https://forums.adobe.com/message/6067309?tstart=0#6067309</link>
      <description>&lt;!-- [DocumentBodyStart:94b73281-be62-4c74-bb25-c482b91b9827] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;In addition to the excellent comments from Olaf - have you opened that PDF up in Adobe Reader (or some other PDF viewer) and seen what the page size is shown there.&amp;nbsp;&amp;nbsp; Seems to me that the values you are getting back this 3rd party library (that no one has ever heard of!) is incorrect.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:94b73281-be62-4c74-bb25-c482b91b9827] --&gt;</description>
      <pubDate>Thu, 30 Jan 2014 01:40:13 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6067309?tstart=0#6067309</guid>
      <dc:date>2014-01-30T01:40:13Z</dc:date>
      <clearspace:dateToText>9 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: page height is zero</title>
      <link>https://forums.adobe.com/message/6066220?tstart=0#6066220</link>
      <description>&lt;!-- [DocumentBodyStart:85f58b92-8f64-4dc3-87b4-5b7ef6d10f2e] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;But your example does not have a page height of zero... I must be missing something here.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please make sure you understand the meainign of the values in a MediaBox array correctly: it does not directly contain width or hight, just four values representing the&amp;nbsp; coordinates of the lower left and upper right corners. The width or height has to be computed by subtracting the appropriate values from each other. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:85f58b92-8f64-4dc3-87b4-5b7ef6d10f2e] --&gt;</description>
      <pubDate>Wed, 29 Jan 2014 20:41:02 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6066220?tstart=0#6066220</guid>
      <dc:date>2014-01-29T20:41:02Z</dc:date>
      <clearspace:dateToText>9 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: page height is zero</title>
      <link>https://forums.adobe.com/message/6066112?tstart=0#6066112</link>
      <description>&lt;!-- [DocumentBodyStart:0805799a-97e6-405b-bbec-2dab245a8d4e] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Like I said before it's an orientation problem. I am working with my developer to clarify but the gist is that he can pull in the orientation but that value is inconsistent - doesn't always jive with the page dimensions so that was why he went to look at page size and dimensions where "width being greater than height equals landscape" but apparently that is also inconsistent as page height is zero at times. He's using a pdf library from SyncFusion but he doesn't feel it's an issue with that api, but it could be. We feel like we are looking for a needle in a haystack. Too many unknowns to solve for x.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0805799a-97e6-405b-bbec-2dab245a8d4e] --&gt;</description>
      <pubDate>Wed, 29 Jan 2014 20:08:08 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6066112?tstart=0#6066112</guid>
      <dc:date>2014-01-29T20:08:08Z</dc:date>
      <clearspace:dateToText>9 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: page height is zero</title>
      <link>https://forums.adobe.com/message/6065656?tstart=0#6065656</link>
      <description>&lt;!-- [DocumentBodyStart:01b4280e-d9bf-4289-89d0-b0a82ac90de3] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I can't see the problem... &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The MediaBox' lower left corner is at 0 / -692, and the upper right is at 792 / 0 - in other words the page is 792 units wide and 692 units high.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Make sure you never assume that the origin of the MediaBox is at 0 / 0 - it can be anywhere on teh coordinate system.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For example, if you had a MediaBox of&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[-20792 -10692 -20000 -10000] &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;its size would still be 792 by 692.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Olaf&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:01b4280e-d9bf-4289-89d0-b0a82ac90de3] --&gt;</description>
      <pubDate>Wed, 29 Jan 2014 18:19:54 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6065656?tstart=0#6065656</guid>
      <dc:date>2014-01-29T18:19:54Z</dc:date>
      <clearspace:dateToText>9 months 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>page height is zero</title>
      <link>https://forums.adobe.com/message/6065503?tstart=0#6065503</link>
      <description>&lt;!-- [DocumentBodyStart:c5f5380f-4d00-4fee-8bee-086a57feae7d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;We're building a pre-flight tool to check page orientation and auto-rotate to consistantly build right reading books whether or not the page is landscape or portait but we're coming up with pdfs with MediaBox[0 -612 792 0] and getting page height = 0 and then the tool fails. We don't seem to be able to fix this programmatically. /Rotate = 0. Most of these PDFs are 1.6 but It was noticed that in PDF version 1.6 there is no mediabox and instead just has /BBox. Is there some significance to this? There doesn't seem to be a /Rotate either. I believe these pdfs are created programattically via some API rather than through InDesign or Distiller. We're trying to find a consistent way of determinig page size to do our calculations and/or be able to repair a pdf prior manipulation.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any ideas how we should go about this? We are using a 3rd party API to do the work but this seems an issue with the actual PDF vs. the API, at least at this point.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks,&lt;/p&gt;&lt;p&gt;Bob&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c5f5380f-4d00-4fee-8bee-086a57feae7d] --&gt;</description>
      <pubDate>Wed, 29 Jan 2014 18:05:46 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6065503?tstart=0#6065503</guid>
      <dc:date>2014-01-29T18:05:46Z</dc:date>
      <clearspace:dateToText>9 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

