Solved

RSS/XML Link Doesn't Allow Multiple Adobe PDF Open Parameters

Posted on 2006-11-02
5
284 Views
Last Modified: 2012-06-21
Hi,

I have an RSS feed (xml file) that goes to a PDF of a magazine. I would like individual links to go to respective pages of the pdf for certain articles, and I am trying to use Adobe's PDF Open Parameters to do this.

http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf

Bascially, I want each link to go to open the PDF, go to a certain page, and set the Zoom to 75%. Unfortunately, if I try to combine multiple parameters in a link such as:

<link>http://www.example.org/sample.pdf#page=3&zoom=75</link> (which would work fine as an href or typed into the browser), it errors out when validating the xml. (Says it expects a semicolor ; delimiter???).

If I reduce that to

<link>http://www.example.org/sample.pdf#page=3</link>

It validates fine. I don't understand... Do I need to somehow escape the & character???

Here is the example of the whole xml file:

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>Sample Magazine</title>
<link>http://www.example.org/sample.pdf</link>
<description>I wish this would work</description>
<copyright>Copyright 2006 The I-Am-Stupid Society. All rights reserved.</copyright>
<language>en-us</language>

<image>
<title>Sample Logo</title>
<width>144</width>
<height>34</height>
<link>http://www.example.org/sample.pdf</link>
<url>http://www.example.org//rss/images/logo.gif</url>
</image>
<lastBuildDate>Mon, 25 Sep 2006 09:00:00 EST</lastBuildDate>

<item>
<title>Article Number One</title>
<guid isPermaLink="true">http://www.example.org/sample.pdf#page=1</guid>
<link>http://www.example.org/sample.pdf#page=1</link>
<description>How do I become smarter?</description>
<pubDate>Mon, 25 Sep 2006 09:00:00 EST</pubDate>
</item>

<item>
<title>Article Number Two</title>
<guid isPermaLink="true">http://www.example.org/sample.pdf#page=12</guid>
<link>http://www.example.org/sample.pdf#page=12</link>
<description>Why Am I Not Getting This?</description>
<pubDate>Mon, 25 Sep 2006 09:00:00 EST</pubDate>
</item>

<item>
<title>Article Number Three</title>
<guid isPermaLink="true">http://www.example.org/sample.pdf#page=37</guid>
<link>http://www.example.org/sample.pdf#page=37</link>
<description>Will Some Kind Soul Be Able To Help Me?</description>
<pubDate>Mon, 25 Sep 2006 09:00:00 EST</pubDate>
</item>

</channel>
</rss>

Any insight would be greatly appreciated.
0
Comment
Question by:BongSoo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
kmartin7 earned 500 total points
ID: 17860619
That is because the & delimiter is illegal in XML. Make it &amp;, and it should work.
0
 
LVL 11

Expert Comment

by:kmartin7
ID: 17860622
So in your example, change it to the following:

<link>http://www.example.org/sample.pdf#page=3&zoom=75</link>
0
 
LVL 16

Author Comment

by:BongSoo
ID: 17861316
That works with making it validate ok, but then it doesn't pass the zoom=75 properly through the URL. It just gets ignored...
0
 
LVL 11

Expert Comment

by:kmartin7
ID: 17861369
How are you displaying the RSS Feed? Is it via XSL or a feed reader?
0
 
LVL 16

Author Comment

by:BongSoo
ID: 17861418
Now its not even working properly in my browser just typing the URL in.

Bear with me, I think I may have to create a new thread just on the PDF Open Parameters.

But in answer to your question, right now I am not even displaying the whole feed, just working with the URLs.
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
XSLT: Is it possible to assign number format from a variable? 5 52
parse convert xml feed to text (python) 2 102
XSLT Display Label Name 1 34
Wordpress Hacked 1 71
The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question