Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 84

Prokazan
buzztouch Evangelist
Profile
Posts: 5
Reg: Jul 11, 2013
Kazan
50
07/24/13 04:25 AM (12 years ago)

PDF plugin, replace pdf

Hi! How to make? When loading new pdf on my server, pdf(cache) in the appendix changed on the new. But pdf has to be cache to be available an offline. When new PDF the file becomes available, old changes on it. It is necessary for me to publish ipad version of our newspaper. There are other possibilities of the publication of fresh PDFs in the app? When releasing a hot of the newspaper, old (cached) changed on the new.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/24/13 04:30 AM (12 years ago)
The PDF will be cached for offline use. If you need to change the pdf, but not every day, I would suggest using a different filename for the dataURL value. old pdf: PDF_001.pdf new pdf: PDF_002.pdf Cheers! -- Smug
 
Prokazan
buzztouch Evangelist
Profile
Posts: 5
Reg: Jul 11, 2013
Kazan
50
like
07/24/13 04:37 AM (12 years ago)
But the plug-in options pdf link is configured to only one file. For example: http://prokazan.ru/userfiles/kazan_guide.pdf If I download a new version of the pdf (for server), as the users have changed the old to the new?
 
Prokazan
buzztouch Evangelist
Profile
Posts: 5
Reg: Jul 11, 2013
Kazan
50
like
07/24/13 04:40 AM (12 years ago)
if i load: http://prokazan.ru/userfiles/kazan_guide_1.pdf will still be loaded: http://prokazan.ru/userfiles/kazan_guide.pdf because it contains the link to the pdf plug-in settings
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/24/13 04:41 AM (12 years ago)
You will need to change the filename for the dataURL to reflect the new document. If you keep the same name, I don't think the plugin will refresh the document, unless you choose the 'always refresh' option, which is not what you intend, I do not think. Cheers! -- Smug
 
Prokazan
buzztouch Evangelist
Profile
Posts: 5
Reg: Jul 11, 2013
Kazan
50
like
07/24/13 04:48 AM (12 years ago)
Is it possible in app to create a button "reload the pdf"? If you click on it then reloaded pdf file from the server?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/24/13 04:55 AM (12 years ago)
You would need to modify the plugin source, but yes. You can do that. Cheers! -- Smug
 
Prokazan
buzztouch Evangelist
Profile
Posts: 5
Reg: Jul 11, 2013
Kazan
50
like
07/24/13 04:59 AM (12 years ago)
Ok :)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.