1

I am trying to embed a pdf in a web page. I am using the following code:

<object data='pdf/main.pdf#nameddest=fun&view=FitH' 
        type='application/pdf' 
        width='740' 
        height='800'>

This works in chrome(apart from FitH doesn't work) and firefox and ie for me. However, when viewing on a mac it doesn't work with named destinations(just loads to the top of the pdf if Safari). Also, it doesn't seem to work in Firefox as firefox seems to have disabled adobe plugin by default. Is there a better way to embed a pdf with relative ease and wide compatability?


Add a number to each selection in Sublime Text 2, incremented once per selection

Is there a way to add insert a number that is incremented once per cursor in Sublime Text 2?

Example, with | as the cursor:

Lorem ipsum dolor sit amet, |
vehicula sed, mauris nam eget| 
neque a pede nullam, ducimus adipiscing, 
vestibulum pellentesque pellentesque laoreet faucibus.|

Desired result:

Lorem ipsum dolor sit amet, 1|
vehicula sed, mauris nam eget2| 
neque a pede nullam, ducimus adipiscing, 
vestibulum pellentesque pellentesque laoreet faucibus.3|

Does this functionality exist natively, or is there a plugin providing it?

4

1 に答える 1

0

現時点で最善の方法は、PDF.jsを使用することです。ここでデモを確認できます: pdf.jsのデモと、ここからソースをダウンロードします。

これは mozilla によるもので、非常に広くサポート/使用されています。

于 2013-01-29T04:19:13.443 に答える