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.

