• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
2

AIR 3 Bug: PDF width is more than HTML width

Participant ,
Oct 17, 2011 Oct 17, 2011

Copy link to clipboard

Copied

In AIR 3, I'm loading a PDF using the mx:HTML component. Here's some sample code:

<?xml version="1.0" encoding="utf-8"?>

<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

xmlns:s="library://ns.adobe.com/flex/spark"

xmlns:mx="library://ns.adobe.com/flex/mx"

showStatusBar="false">

<s:layout>

<s:HorizontalLayout paddingBottom="8" paddingLeft="8" paddingRight="8" paddingTop="8"/>

</s:layout>

<s:VGroup width="100%" height="100%">

<s:Button label="Open PDF" click="html.location = 'http://samplepdf.com/sample.pdf#toolbar=1&navpanes=0&view=FitH,top'"/>

<s:DataGrid width="100%" height="100%"/>

</s:VGroup>

<s:BorderContainer width="100%" height="100%" backgroundColor="#EFEFEF">

<mx:HTML id="html" width="100%" height="100%"/>

</s:BorderContainer>

</s:WindowedApplication>

The HTML area has a width of 100% but only takes up half the screen due to another component which is also trying to use 100% of the screen. In AIR 2.x the PDF displays fine, but in AIR 3 the PDF displays as though it's using the.entire width of the runtime window instead of the HTML's width.

If the runtime window is resized, minimized or maximized, the PDF width automatically changes and matches the HTML width, which displays fine. This is the only workaround I have found that doesn't involve removing software from the workstation. Another user has found that downgrading from Acrobat 10.x to 9.x also works, but for Windows 7 users that have Acrobat 8 Pro and Reader 9 (like me) this causes errors (that are fixed in Reader 10), so this isn't a suitable workaround for me.

Here's the bug report: https://bugbase.adobe.com/index.cfm?event=bug&id=3000289

Any chance this bug could be looked into urgently as it's preventing us from using AIR 3 or any Flex applications that use the AIR 3 SDK?

TOPICS
Performance issues

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 18, 2011 Oct 18, 2011

Copy link to clipboard

Copied

me too, please prioritise this

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 24, 2012 May 24, 2012

Copy link to clipboard

Copied

POSSIBLE WORKAROUND:

I think I've found the problem. The issue doesn't happen with Adobe Reader 10.0 full stop. However the issue occurs with version 10.0.1 or later when "Protected Mode" is enabled. Disabling Protected Mode resolves the problem, at least for me.

This workaround has been tested with Reader 10.1.3.

Could Adobe AIR 3.x be doing something that Reader interprets as malicious, thus why the issue only seems to occur when Protected Mode is enabled?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 25, 2012 May 25, 2012

Copy link to clipboard

Copied

LATEST

Thank you for posting a possible workaround.  For others interested in this bug, please give the workaround a try and let us know in the bug comments and vote section.

https://bugbase.adobe.com/index.cfm?event=bug&id=3000289

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines