linking to specific location on a page

63 views
Skip to first unread message

James

unread,
Apr 21, 2010, 11:30:57 AM4/21/10
to FlexPaper
Suppose I have a PDF document with internal links. Some of these links
go to specific locations on a page - for example, a link might go to a
position 60% of the way down page 3.

When I convert this using swftools, the SWF file ignores (or appears
to; I'm still awaiting final clarification on this point from the
swftools maintainers) the fractional part and simply introduces the
ActionScript command GotoFrame(page#).

I believe that I can modify pdf2swf to recover the fractional part.
But how would I integrate this with FlexPaper? There is a pdf2swf
command-line parameter that allows you to specify a function to call
when a link is clicked. Currently, that function will be called with
just an integer argument of page#, but it should be possible to modify
it to take either an int and a double, or just a double.

What I don't know is what function to call in FlexPaper to make this
work. I don't know much about ActionScript. Any ideas?

Thanks,
- James


--
Subscription settings: http://groups.google.com/group/flexpaper/subscribe?hl=en

Przemek

unread,
Apr 21, 2010, 5:12:26 PM4/21/10
to FlexPaper
My pdf's generated from docs using Adobe Acrobat indeed show the same
limitation.

A similar problem for external links to FP was raised here -
http://groups.google.com/group/flexpaper/browse_thread/thread/5b9363993da6bfcb
.

My own additional observation is that text searches also seem to load
complete pages without scrolling to the string found, contrary to what
a user would expect (eg. Print2Flash has no problems auto-scrolling to
the next hit.)

Not sure if all these cases are connected, but the behaviour of
FlexPaper and/or swftools looks similar in all the three.

Przemek

James

unread,
Apr 22, 2010, 9:22:03 AM4/22/10
to FlexPaper
I didn't know about print2flash. That was a good lead!

Unfortunately, they don't appear to support internal links at all. At
least their online demo does not. So that's not an option for me. But
thanks for mentioning them.

- James

On Apr 21, 5:12 pm, Przemek <pkaszub...@gmail.com> wrote:
> My pdf's generated from docs using Adobe Acrobat indeed show the same
> limitation.
>
> A similar problem for external links to FP was raised here -http://groups.google.com/group/flexpaper/browse_thread/thread/5b93639...

Przemek

unread,
Apr 22, 2010, 3:54:40 PM4/22/10
to FlexPaper
On Apr 22, 3:22 pm, James <jamesrjo...@gmail.com> wrote:
> Unfortunately, they don't appear to support internal links at all. At
> least their online demo does not. So that's not an option for me. But
> thanks for mentioning them.

Yeah, Print2flash precisely fails there. I don't use it except when
I'm dealing with non-searchable pdf's. It then often generates nice
and small-sized swf files (Flash 8, though).
Reply all
Reply to author
Forward
0 new messages