I am exporting to HTML with a lnk to a pdf with instant opening in Firefox on a Mac. Originally, I had a description on the link, and as the manual says, in the browser, I get the description in the browser which opens the pdf when I click on it. But I want the image to appear without clicking on it, so I can print out the file with the images visible After reading the manual, I have edited the link to remove the description, but it still needs me to click on the link in the browser to open the pdf. I have now added "file:" to the front of the link and I still need to click on it to see the pdf in the browser. The link is now: [[file:/Users/graham/Dropbox/Jacobs/GQ3/Analysis/Graphics/Hazard1aBootsrappedMedianProbabilityPlot.pdf]] Which still works fine when I click on it, but doesn't automatically open. Can someone tell me what I am doing wrong. Many thanks, Graham
"Graham Smith" <myotisone@gmail.com> writes:
> I am exporting to HTML with a lnk to a pdf with instant opening in
> Firefox on a Mac.
>
> Originally, I had a description on the link, and as the manual says,
> in the browser, I get the description in the browser which opens the
> pdf when I click on it.
>
> But I want the image to appear without clicking on it, so I can print
> out the file with the images visible
>
> After reading the manual, I have edited the link to remove the
> description, but it still needs me to click on the link in the
> browser to open the pdf.
>
> I have now added "file:" to the front of the link and I still need to
> click on it to see the pdf in the browser.
>
> The link is now:
>
> [[file:/Users/graham/Dropbox/Jacobs/GQ3/Analysis/Graphics/Hazard1aBootsrappedMedianProbabilityPlot.pdf]]
>
> Which still works fine when I click on it, but doesn't automatically open.
>
> Can someone tell me what I am doing wrong.
>
> Many thanks,
I was under the impression that only graphic files (PNG/JPG, etc) were
inlined - I didn't think inlining a PDF was possible.
-Bernt
Bernt,
> I was under the impression that only graphic files (PNG/JPG, etc) were
> inlined - I didn't think inlining a PDF was possible.
Ah that would explain it then, maybe I need to go the Latex route, but
I was looking for a quick route to get a printed output.
Thank,
Graham
On Jan 12, 2009, at 9:14 PM, Bernt Hansen wrote: > "Graham Smith" <myotisone@gmail.com> writes: > >> I am exporting to HTML with a lnk to a pdf with instant opening in >> Firefox on a Mac. >> >> Originally, I had a description on the link, and as the manual says, >> in the browser, I get the description in the browser which opens the >> pdf when I click on it. >> >> But I want the image to appear without clicking on it, so I can print >> out the file with the images visible >> >> After reading the manual, I have edited the link to remove the >> description, but it still needs me to click on the link in the >> browser to open the pdf. >> >> I have now added "file:" to the front of the link and I still need >> to >> click on it to see the pdf in the browser. >> >> The link is now: >> >> [[file:/Users/graham/Dropbox/Jacobs/GQ3/Analysis/Graphics/ >> Hazard1aBootsrappedMedianProbabilityPlot.pdf]] >> >> Which still works fine when I click on it, but doesn't >> automatically open. >> >> Can someone tell me what I am doing wrong. >> >> Many thanks, > > I was under the impression that only graphic files (PNG/JPG, etc) were > inlined - I didn't think inlining a PDF was possible. Unfortunately, the right thing to do here depends on the LaTeX processor you use. If you use latex and then something like dvips to process to postscript, only .ps and .eps files can be inlined in LaTeX output. On the other hand, if you use pdflatex to process the files, only .jpg and .pdf files cab be included. I am not sure if HTML allows to *inline* pdf, probably not. Hmm, I welcome suggestions on a strategy for this. - Carsten > > > -Bernt > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Carsten Dominik <dominik@science.uva.nl> writes: > On Jan 12, 2009, at 9:14 PM, Bernt Hansen wrote: > [snip: about inlining PDF images in HTML export (42 lines)]> > I am not sure if HTML allows to *inline* pdf, probably not. > > Hmm, I welcome suggestions on a strategy for this. Two cents. Image files in PDF format can be processes with pdfimages(1) and extracted into jpg format for inclusion in HTML. -- Manish Life is beautiful.* * Conditions apply.
Carsten,
2009/1/14 Carsten Dominik <dominik@science.uva.nl>:
>
> On Jan 12, 2009, at 9:14 PM, Bernt Hansen wrote:
>
>> "Graham Smith" <myotisone@gmail.com> writes:
>>
>>> I am exporting to HTML with a lnk to a pdf with instant opening in
>>> Firefox on a Mac.
>>>
>>> Originally, I had a description on the link, and as the manual says,
>>> in the browser, I get the description in the browser which opens the
>>> pdf when I click on it.
>>>
>>> But I want the image to appear without clicking on it, so I can print
>>> out the file with the images visible
>>>
>>> After reading the manual, I have edited the link to remove the
>>> description, but it still needs me to click on the link in the
>>> browser to open the pdf.
>>>
>>> I have now added "file:" to the front of the link and I still need to
>>> click on it to see the pdf in the browser.
>>>
>>> The link is now:
>>>
>>>
>>> [[file:/Users/graham/Dropbox/Jacobs/GQ3/Analysis/Graphics/Hazard1aBootsrappedMedianProbabilityPlot.pdf]]
>>>
>>> Which still works fine when I click on it, but doesn't automatically
>>> open.
>>>
>>> Can someone tell me what I am doing wrong.
>>>
>>> Many thanks,
>>
>> I was under the impression that only graphic files (PNG/JPG, etc) were
>> inlined - I didn't think inlining a PDF was possible.
>
> Unfortunately, the right thing to do here depends on the LaTeX
> processor you use.
>
> If you use latex and then something like dvips to process to postscript,
> only .ps and .eps files can be inlined in LaTeX output. On the other
> hand, if you use pdflatex to process the files, only .jpg and .pdf files
> cab be included.
>
> I am not sure if HTML allows to *inline* pdf, probably not.
>
> Hmm, I welcome suggestions on a strategy for this.
It does seem that HTML doesn't allow inline PDFs.
I think it worth while mentioning that I am looking for a "quick
preview" of my document, that also shows the images.
These are natively produced by R on the Mac as PDFs. I want to keep
them in vector format for the final report, so a) don't really want to
change the output from R, Or b) convert them to PNGs just to allow me
a quick Preview, which would no longer be "quick"
So the "strategy" is likely to be different depending on the needs of
the final graphic to be part of finished document (eg a web page) or
a workaround to give a quick preview.
It has to be said that I can't get it to work via Latex either as the
graphic component throws up errors during compile, If you ignore the
errors and still preview the output, the text is all there, but no
graphics.
I haven't spent any time trying to sort out the errors yet.
Graham
Graham
On Wed, Jan 14, 2009 at 2:42 PM, Graham Smith wrote: [snip: Discussion on inlining PDF in HTML (53 lines)] > I think it worth while mentioning that I am looking for a "quick > preview" of my document, that also shows the images. > > These are natively produced by R on the Mac as PDFs. I want to keep > them in vector format for the final report, so a) don't really want to > change the output from R, Or b) convert them to PNGs just to allow me > a quick Preview, which would no longer be "quick" Saw this wonder a while ago http://tsdh.wordpress.com/2007/08/22/view-documents-pdfpostscriptdvi-inside-emacs/ Who knows someday doc-view.el's facilities can be called by Orgmode to achieve this. -- Manish
Manish
> Saw this wonder a while ago
> http://tsdh.wordpress.com/2007/08/22/view-documents-pdfpostscriptdvi-inside-emacs/
>
> Who knows someday doc-view.el's facilities can be called by Orgmode to
> achieve this.
I don't know enough about emacs/Org-mode to comment but it says it is
already part of Emacs.
Graham
On Wed, Jan 14, 2009 at 4:20 PM, Graham Smith wrote:
> Manish
>
>> Saw this wonder a while ago
>> http://tsdh.wordpress.com/2007/08/22/view-documents-pdfpostscriptdvi-inside-emacs/
>>
>> Who knows someday doc-view.el's facilities can be called by Orgmode to
>> achieve this.
>
> I don't know enough about emacs/Org-mode to comment but it says it is
> already part of Emacs.
Emacs23, I think. And I recall watching a video demonstration of
it... it was quite slow. It converts the PDF pages into images for
display.
--
Manish
> Emacs23, I think. And I recall watching a video demonstration of
> it... it was quite slow. It converts the PDF pages into images for
> display.
I see, thanks.
Graham
[-- Attachment #1.1: Type: text/plain, Size: 709 bytes --] On Wed, Jan 14 2009, Graham Smith wrote: > Carsten, > > I think it worth while mentioning that I am looking for a "quick > preview" of my document, that also shows the images. > > These are natively produced by R on the Mac as PDFs. I want to keep > them in vector format for the final report, so a) don't really want to > change the output from R, Or b) convert them to PNGs just to allow me > a quick Preview, which would no longer be "quick" Graham-- As another option, you might consider svg() from the RSvgDevice package. SVG images display in some modern web browsers. HTH, /au -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc [-- Attachment #1.2: Type: application/pgp-signature, Size: 193 bytes --] [-- Attachment #2: Type: text/plain, Size: 204 bytes --] _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Austin
>
> As another option, you might consider svg() from the RSvgDevice
> package. SVG images display in some modern web browsers.
I didn't know about the SVG device, but it hasn't helped, unless its a
firefox setting (which I can't find) PNGs appear inlne as they should,
but not SVG (which from my gogling Firefox has supported since 2006).
Thanks,
Graham
Carsten,
Just to say many thanks for version 6.18 as this solves this problem
of a quick preview with inline PDFs via Latex.
Graham
2009/1/14 Carsten Dominik <dominik@science.uva.nl>:
>
> On Jan 12, 2009, at 9:14 PM, Bernt Hansen wrote:
>
>> "Graham Smith" <myotisone@gmail.com> writes:
>>
>>> I am exporting to HTML with a lnk to a pdf with instant opening in
>>> Firefox on a Mac.
>>>
>>> Originally, I had a description on the link, and as the manual says,
>>> in the browser, I get the description in the browser which opens the
>>> pdf when I click on it.
>>>
>>> But I want the image to appear without clicking on it, so I can print
>>> out the file with the images visible
>>>
>>> After reading the manual, I have edited the link to remove the
>>> description, but it still needs me to click on the link in the
>>> browser to open the pdf.
>>>
>>> I have now added "file:" to the front of the link and I still need to
>>> click on it to see the pdf in the browser.
>>>
>>> The link is now:
>>>
>>>
>>> [[file:/Users/graham/Dropbox/Jacobs/GQ3/Analysis/Graphics/Hazard1aBootsrappedMedianProbabilityPlot.pdf]]
>>>
>>> Which still works fine when I click on it, but doesn't automatically
>>> open.
>>>
>>> Can someone tell me what I am doing wrong.
>>>
>>> Many thanks,
>>
>> I was under the impression that only graphic files (PNG/JPG, etc) were
>> inlined - I didn't think inlining a PDF was possible.
>
> Unfortunately, the right thing to do here depends on the LaTeX
> processor you use.
>
> If you use latex and then something like dvips to process to postscript,
> only .ps and .eps files can be inlined in LaTeX output. On the other
> hand, if you use pdflatex to process the files, only .jpg and .pdf files
> cab be included.
>
> I am not sure if HTML allows to *inline* pdf, probably not.
>
> Hmm, I welcome suggestions on a strategy for this.
>
> - Carsten
>
>
>>
>>
>> -Bernt
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>