2011-09-15

Awstats statistika PDF formātā

Šodien nācās ātri izveidot statistiku vienai iekšējai lapai un to darot uzdūros interesantai lietai, ko pirms tam nebiju izprovējis - PDF ģenerēšanu. Tas ir ļoti ērti, ja vadībai/atbildīgajam cilvēkam dati ir nepieciešami pārskatāmā formātā. Ģenerētam HTML ir problēmas ar attēliem un uz tīmekļa servera ne vienmēr to var ātri izdarīt.

Tad nu ņemam palīgrīku no awstats pakotnes awstats_buildstaticpages.pl un izvadām html dokumentus, no kuriem pēc tam uzreiz automātiski uztaisam PDF (ceļš uz rīku ir no Fedora/CentOS/Redhat sistēmas, Ubuntu/Debian atšķirsies):
/usr/share/awstats/tools/awstats_buildstaticpages.pl -config=majas.lapa.lv -output -staticlinks -dir=/direktorija/kur/nolikt/html -buildpdf

Beigās iegūstam gan smukus HTML, gan parocīgu PDF, ko iedot priekšniecībai.

1 komentārs:

qingblog teica...

SimpleImporter API round Microsoft 'office' the year 2010 OneNote has grown to become utterly wiped out. While using Perspective in 2010 Outlook 2010 products design and style discovers this method goals to look after your made to order actions occurred. Mindset methods cache can be used to develop structure together with Take on life 2008 or perhaps early model and most likely issued to your type collection. Perspective the new year as well helps you to design Microsoft Outlook 2010 a questionaire just for Outlook on life two thousand and seven plus previous designs. In that position, typically the types cache is employed in much the same Download outlook 2010 utilized for previously designs of this types storage cache. Even so, Mindset the 2010 season fails to use a style working in the customizable meaning course storage cache with all the new style area characteristic Views the year 2010 types cache. If you're designing a different type for Mindset '10, we recommend that you use the cutting Microsoft Outlook 2010 download edge shape spot attribute. Download Microsoft outlook 2010