Module:PDF: Difference between revisions

m
no edit summary
(Created page with "local pdf = {} -- functions package for PDF books to match page numbers in pdf and hard-copy. local function isempty(s) return s == nil or s == '' end -- Return pdf page number in BCW, which coresponds to book page -- Example for vol.1: xxxiv → 34; 100 → 180 -- Call example: {{#invoke: PDF | bcw_pdf_page | volume=1 | page=17}} -- Values see at: https://en.teopedia.org/lib/Special:RunQuery/BCW_page_info function pdf.bcw_pdf_page( frame ) local volume = tonumber(...")
 
mNo edit summary
Line 16: Line 16:
--mw.log('vol= '.. volume .. ', page= ' .. page)
--mw.log('vol= '.. volume .. ', page= ' .. page)
if volume == 1 then
if volume == 1 then
p_pdf = 80 + page
p_pdf = 85 + page
elseif volume == 2 then
elseif volume == 2 then
p_pdf = 45 + page
p_pdf = 45 + page