The text comment is smart! Does your method let you view larger PDFS (like, > 2MB)? Can you share the template you use?
On Sat, May 3, 2014 at 11:28 AM, andrew.j.harrison84 < [email protected]> wrote: > What I do is include the pdf file in a framed window using a transcluded > template and to make it searchable, I include the text from the pdf file > compressed into a metafile comment block of text. Inside <--! and -->. My > tiddlywiki has over 1000 tiddlers and still is small enough to be fast. > > > > > Sent from my Samsung Epicâ„¢ 4G Touch > > Xavier Cazin <[email protected]> wrote: > Hi Peter, > > This was to be expected, I'm afraid :-) You might try to add > *-[type[application/pdf]]* to the saveTiddlerFilter() macro of > $:/core/save/lazy-images<http://tiddlywiki.com/#%24%3A%2Fcore%2Fsave%2Flazy-images>, > but I don't think there is a reasonable workaround today, other than > opening the resource file outside Tiddlywiki, for instance from a file:// > href. > > Regards, > XC. > > -- Xavier Cazin > > > On Fri, May 2, 2014 at 1:22 PM, Peter Smillie <[email protected]> wrote: > >> Thanks again Xavier for the solution. >> >> I have two almost-related follow-up questions. One, I'm having no trouble >> with small one- or two-page pdfs, but trying to open a 2 MB 6-page pdf >> crashes my browser immediately (Chrome gives me "Aw snap!"). Is that to be >> expected? Is there a fix? >> >> Two, it seems to me that lazy image loading has no effect on pdfs - is >> there a tweak to make pdfs load lazily as well? >> >> Thanks, >> Peter >> >> >> >> On Friday, May 2, 2014 2:49:14 AM UTC+8, Xavier wrote: >> >>> Hi Peter, >>> >>> I think maintaining a metadata file in this case is a bit more than good >>> practice, because you also want to control the mimetype so that browsers >>> know what you're actually transcluding. >>> >>> Best, >>> Xavier. >>> >>> -- Xavier Cazin >>> >>> >>> On Thu, May 1, 2014 at 8:29 PM, Peter Smillie <[email protected]> wrote: >>> >>>> Hi Xavier, >>>> >>>> That's wonderful, thank you. If I may summarize, the brilliant solution >>>> is to make the file itself a shadow tiddler and then transclude it; the >>>> additional step of separating the pdf from the metadata is just good >>>> practice. >>>> >>>> Peter >>>> >>>> >>>> On Friday, May 2, 2014 1:05:48 AM UTC+8, Xavier wrote: >>>> >>>>> Hi Peter, >>>>> >>>>> Not sure it's the best way, but with the node.js mode you may want to >>>>> take advantage of decoupling content and metadata. Just move the PDF files >>>>> into a subdirectory of tiddlers/ and create a .meta file from each PDF >>>>> filename, that you can then transclude in a tiddler that is easier to >>>>> handle. Like so: >>>>> >>>>> x2:server xavier$ ls tiddlers/invoices/ >>>>> April 2014 invoice.tid Invoice from supplier X.pdf.meta >>>>> Invoice from supplier X.pdf >>>>> x2:server xavier$ cat tiddlers/invoices/Invoice\ from\ supplier\ >>>>> X.pdf.meta >>>>> title: $:/mypdfs/invoices/201404 >>>>> type: application/pdf >>>>> >>>>> x2:server xavier$ cat tiddlers/invoices/April\ 2014\ invoice.tid >>>>> created: 20140501163534829 >>>>> modified: 20140501163640138 >>>>> tags: [[pdf invoices]] due >>>>> title: April 2014 invoice >>>>> type: text/vnd.tiddlywiki >>>>> >>>>> {{$:/mypdfs/invoices/201404}} >>>>> >>>>> x2:server xavier$ >>>>> >>>>> Granted, it involves 3 files for each PDF, but it can certainly be >>>>> scripted if you have a lot of pdfs. >>>>> >>>>> Xavier Cazin. >>>>> >>>>> -- Xavier Cazin >>>>> >>>>> >>>>> On Thu, May 1, 2014 at 6:21 PM, Peter Smillie <[email protected]>wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I'm using TW5 with node.js. So far, I have been dragging and dropping >>>>>> PDFs to create appliation/pdf tiddlers. The issue with these is that they >>>>>> are slow to load into 'edit' mode, since they load a huge text file of >>>>>> gibberish. This is a problem mainly when I'm trying to add a tag. >>>>>> >>>>>> It seems like there could be a lot of solutions for this; my favorite >>>>>> would be to link to pdf files using something like [img[photo.jpg]]. But >>>>>> I >>>>>> also wouldn't mind either A) a way to tag tiddlers without clicking >>>>>> 'edit' >>>>>> or B) a way to edit application/pdf tiddlers without opening the entire >>>>>> contents of the tiddler. >>>>>> >>>>>> I would grateful for any tips! >>>>>> >>>>>> Thanks, >>>>>> Peter >>>>>> >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "TiddlyWiki" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> To post to this group, send email to [email protected]. >>>>>> >>>>>> Visit this group at http://groups.google.com/group/tiddlywiki. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "TiddlyWiki" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> Visit this group at http://groups.google.com/group/tiddlywiki. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "TiddlyWiki" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/tiddlywiki. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/uzJK6mNQg6U/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

