External Links

2002-04-17 Thread J.U. Anderegg

By looking at PDF I think a link has to be coded like this (copy in the
samples):

link_rectangle

o "destination": an URI, where it makes a difference if there is an
extension .pdf or not
o link_rectangle: the rectangle on the page to click on

So, if you want to have an image in the rectangle:

http://nagoya.apache.org/the_image_to_be_pointed_to.jp
g">
  


The destination has to be a full URI for a file!


Hansuli Anderegg





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




External links to PDF files

2002-02-21 Thread Ramaprabhu Janakiraman

Hi, 
  I am using FOP 0.20.3 and stumbled across  the interesting behavior that 
even if you specify an external link to a pdf file, like 

http://www.somewhere.com/test.pdf";> some pdf file 

the pdf link is transformed into a FileSpec.

I guess this is a bug rather than a feature and if so, can be traced to:

public PDFLink makeLink(Rectangle rect, String destination,  int linkType) 
in Fop-0.20.3rc/src/org/apache/fop/pdf/PDFDocument.java
which should be like this rather than with the lines uncommented:

 public PDFLink makeLink(Rectangle rect, String destination,
int linkType) {

PDFLink linkObject;
PDFAction action;

PDFLink link = new PDFLink(++this.objectcount, rect);
this.objects.addElement(link);

if (linkType == LinkSet.EXTERNAL) {
// check destination
//if (destination.endsWith(".pdf")) {// FileSpec
//PDFFileSpec fileSpec = new PDFFileSpec(++this.objectcount,
//   destination);
//this.objects.addElement(fileSpec);
//action = new PDFGoToRemote(++this.objectcount, fileSpec);
//this.objects.addElement(action);
//link.setAction(action);
//} else {   // URI
PDFUri uri = new PDFUri(destination);
link.setAction(uri);
//}
} else {   // linkType is internal
String goToReference = getGoToReference(destination);
PDFInternalLink internalLink = new PDFInternalLink(goToReference);
link.setAction(internalLink);
}
return link;
}


thanks, 
-ram







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: External links

2001-06-22 Thread Arved_37

Quoting Braniganz <[EMAIL PROTECTED]>:

> When I transform to PDF a XSL-FO file that contain the next, using
> Fop-0.18.1-DEV
> 
> external-destination="http://www.mikeoldfield.org";
> text-decoration="underline">
> Web:
> http://www.mikeoldfield.org 
>
> 
> this error happens: "FATAL ERROR: basic-link can't be directly under flow"

Pretty much exactly what the message says. An fo:flow has only block-level FO's
as children; this rules out fo:basic-link because that returns an inline area.
So you want to enclose the basic link in an fo:block (not necessarily directly).

Regards,
Arved Sandstrom


---
 This mail was sent through the Nova Scotia Provincial Server, 
 with technical resources provided by Chebucto Community Net.
 http://nsaccess.ns.ca/mail/ http://www.chebucto.ns.ca/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




External links

2001-06-22 Thread Braniganz

  Hi,

When I transform to PDF a XSL-FO file that contain the next, using
Fop-0.18.1-DEV

   http://www.mikeoldfield.org";
text-decoration="underline">
Web:
http://www.mikeoldfield.org 
   

this error happens: "FATAL ERROR: basic-link can't be directly under flow"

Thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]