I know this is borderline necroposting, but I was just faced with this problem, dpi doesn't seem accessible in lua filters (not in `PANDOC_READER_OPTIONS` anyway, which are reader options). So in case anyone wants a hint, here goes... Since I usually invoke pandoc from a script (a windows batch in my case), I just create (set) the dpi to a variable (say 'dpi'), and then pass it to both `--dpi` and `-M` on the pandoc command line. So in a win batch that would be, for example: ``` ... set dpi=300 ... pandoc %1 %otheroptions% -M dpi=%dpi% --dpi=%dpi% -o %output% ``` Then in the lua file, the first filter in the return list would be a `Meta(meta)` filter that would retrieve the dpi through meta["dpi"] and put in a lua variable to be used. Yes, it's redundant, but I don't see how else (apart from setting an environment variable, but it's the same principle). -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/222ed82f-906e-441c-942c-7fa4a39be736%40googlegroups.com.