2013-11-27 2 views
2

Можем ли мы создать гиперссылку или тег embed, который отобразит указанную страницу/раздел PDF-документа?Как создать ссылки на разделы в pdf

дайте мне знать, если кто имеет какие-либо идеи

пример:
Открыть PDF с использованием подраздел

+0

ли вы имеете в виду, как страницу содержания? –

+0

, когда я нажимаю на тег привязки, мне нужно открыть конкретный раздел в pdf-файле – kumar

+0

Click to view pdf file .. @ kumar: do u хотите вот так? – Karuppiah

ответ

0

Просто перейти к существующей странице PDF файла вы можете использовать

#page=pageNumber 

параметр PDF.

Да, это возможно, см. Эту ссылку http://www.pdfobject.com/examples/index.php и http://www.pdfobject.com/ для получения дополнительной информации. Это с сайта «PDFObject является простым в использовании способом для динамического встраивания PDF файлов в HTML-документы. Он использует JavaScript для создания и впрыснуть стандарты дружественными»

<script type="text/javascript"> 
    window.onload = function(){ 
    var success = new PDFObject({ url: "http://www.adobe.com/content/dam/Adobe 
    /en/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf#page=6&zoom=150,0,216" 
    }).embed("pdf"); 

}; 

</script> 

Как вы можете видеть вас может изменить ссылку URL на

thefile.pdf#page=YOURDESIREDPAGE 

Linking к месту назначения в формате PDF в веб-страницы, как найти на старте this page, Citation: "

Linking to a destination is essentially the same principle but involves a few more 
steps 
and setting up. First up, you'll need to create the destination. 

Creating a destination in a PDF using Adobe Acrobat: 

Manually navigate through the PDF for the desired location, and magnification. 
Move your curser to the right of the PDF, in the navigation pane. 
Right click and select destination. This will open the Destinations pane. 
Right click, select New Destination enter an appropriate name and select the area that 
you want the destination to link to. 

NOTE: Make sure that the name does not have any spaces as it makes it easier to link to 
afterwards. 

You are now ready to link to the destination using a similar syntax as linking to a 
specific page, instead of #page write #nameddest. 
Append "#nameddest=" and the name of your chosen destination. So, if your PDF has a  
named destination, "TOC", that points to a table of contents, then your link code will 
look like this: 

<a href="http://www.mydomain.com/myPDF.pdf#nameddest=TOC">Link Text</a> 

"

+0

@ 54N1L без использования этого javascript я могу использовать параметры adobe – kumar

+0

Да, но он не был бы встроен в страницу, затем правильно? Просто возьмите URL-адрес документа PDF в Интернете и проверьте его. Добавьте # page = "существующий номер здесь" –

Смежные вопросы