Is this a web app or AIR app?  If web app, what happens if you try to open
the PDF from JavaScript?

On 2/6/14 8:43 AM, "Pedro Serralha" <[email protected]> wrote:

>My code
>
>               var strURL:String =
>"http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIMSC
>ha
>ngeLog.pdf#pagemode=bookmarks&nameddest=Alterações no Portal"
>                               
>                       var urlReq:URLRequest= new URLRequest(strURL)
>                       
>                       navigateToURL(urlReq,"_blank");
>
>Cumprimentos / Best Regards
>Pedro Serralha
>
>-----Original Message-----
>From: Alex Harui [mailto:[email protected]]
>Sent: quinta-feira, 6 de Fevereiro de 2014 16:34
>To: [email protected]
>Subject: Re: Problems openning PDF file using navigateToURL
>
>What are you actually passing into the URLRequest parameter?
>
>On 2/6/14 8:07 AM, "Pedro Serralha" <[email protected]> wrote:
>
>>Marcus thank you for replying.
>>
>>But for what I understood, on both links you've sent. They tell how to
>>encode parameters on URL and the escape() is to convert a string to a
>>URL-encoded format, which is what I don't want.
>>
>> 
>>
>>As you can see
>>
>>http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIM
>>SCh
>>an
>>geLog.pdf#pagemode=bookmarks
>><http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicI
>>MSC
>>ha
>>ngeLog.pdf#pagemode=bookmarks&nameddest=Alterações no Portal>
>>&nameddest=Alterações no Portal
>>
>> 
>>
>>The thing is that the last part of the URL
>>#pagemode=bookmarks&nameddest=Alterações no Portal is something
>>specific to the PDF readers, and  I don't think it can be considered an
>>normal http parameter. I don't know why the reader doesn't decode
>>correctly the encoded characters, but only if I could pass the pure
>>string without any encoding/ treatment, the thing would work.
>>
>> 
>>
>>Btw still using 4.6sdk on these project.
>>
>> 
>>
>>Cumprimentos / Best Regards
>>
>>Pedro Serralha
>>
>> 
>>
>>From: Marcus Fritze [mailto:[email protected]]
>>Sent: quinta-feira, 6 de Fevereiro de 2014 12:34
>>To: [email protected]
>>Subject: Re: Problems openning PDF file using navigateToURL
>>
>> 
>>
>>or maybe easier this:
>>http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/pack
>>age
>>.h
>>tml#escape()
>>
>> 
>>
>>Am 06.02.2014 um 13:24 schrieb Pedro Serralha
>><[email protected]>:
>>
>>
>>
>>
>>
>>Greetings my friends
>>
>>
>>
>>In our Webapplication we have some buttons that open an PDF file.
>>
>>We are using the navigateToURL method.
>>
>>
>>
>>The problem is that we are using bookmarks within the pdf and to open
>>an link and point to an bookmark the URL used is something like
>>
>>
>>
>>http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIM
>>SCh
>>an
>>geLog.pdf#pagemode=bookmarks&nameddest=Alterações no Portal
>>
>>
>>
>>As you see, it accepts non standard characters on the URL as spaces and
>>ç and õ.
>>
>>The link works with this characters if you put it directly on the
>>browser, but when I open it using the method above mentioned it
>>corrects the invalid characters.... and the bookmark pointer stops
>>working.
>>
>>
>>
>>http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIM
>>SCh
>>an
>>geLog.pdf#pagemode=bookmarks&nameddest=Altera%E7%F5es no Portal
>>
>>
>>
>>
>>
>>So what I ask is, is there a way to open a link without these correction?
>>
>>
>>
>>Thanks
>>
>>
>>
>>Cumprimentos / Best Regards
>>
>>Pedro Serralha
>>
>>
>>
>>
>> 
>>
>

Reply via email to