Make a Lasting Impression

Join the Mailing List

Who's Online

33 user(s) are online (21 user(s) are browsing Support Forums)

Members: 0
Guests: 33

more...
ImpressCMS proudly uses SourceForge
ImpressCMS on Ohloh.net





Reduce tcPDF for main package in 2.0
Home away from home
Joined:
2009/3/3 4:18
From Belgium
Posts: 1718
tcpdf has grown enormously since the version that is included in 1.2.x, from 1.2 MB to 9.3MB!
I would like to split tcpdf from the core, but we will be able to do that once we have the online installation of modules in place. Until then, what can we do to reduce the size?

Most of the bytes are taken up by a large number of fonts, so it would be a good idea to have a look at what fonts to include.

It's tricky though, as some fonts are required for some language groups. As you can see in this forum thread, japanese sites need another font to be available, but if we use that on non-japanese sites, everybody suddenly has to install a 93-MB Asian Character update package for Adobe reader.

So my question : what tcpdf fonts do we need to include for a basic core install so that we cover all languages?

are the fonts contained in the 1.2.x packages sufficient, or do we need to add one or two more?

thanks for your input!

Posted on: 2012/6/5 6:41
_________________
ImpressCMS.TV - Video Tutorials
d-log - My personal site

Me on Ohloh
Transfer the post to other applications Transfer


Re: Reduce tcPDF for main package in 2.0
Home away from home
Joined:
2007/12/4 9:00
Posts: 1123
I've been wondering if we really need it at all. You can get free PDF generation capability for the major browsers these days, either natively (in Chrome) or through various free addons.

The output of such is also signficantly better than what tcpdf generates out of the box, and it can be used to print any page, not just restricted to enabled modules.

The only advantage of tcpdf that I can think of is for printing articles that are broken up with multiple page breaks, but that's another trend that might have had its day.

When we get the cool apps library going, tcpdf could be handled as a dependency for modules that see a need to have it. The core download would certainly be a lot lighter without it.

Posted on: 2012/6/5 8:58
Transfer the post to other applications Transfer


Re: Reduce tcPDF for main package in 2.0
Home away from home
Joined:
2008/2/12 15:29
Posts: 1479
Could include some fonts with some language packs perhaps?

Posted on: 2012/6/5 11:34
Transfer the post to other applications Transfer


Re: Reduce tcPDF for main package in 2.0
Home away from home
Joined:
2007/12/4 9:00
Posts: 4077
Good point - the availability of other means to create a PDF is much higher now. The main advantage to having it included is to be able to create a PDF of just the content, without all the extra stuff from the page (blocks, menus, header/ads, footer). Properly defining a print css could accomplish that, though.

Posted on: 2012/6/5 11:59
_________________
Steve
Twitter: @skenow
Facebook: Steve Kenow
Transfer the post to other applications Transfer


Re: Reduce tcPDF for main package in 2.0
Home away from home
Joined:
2009/3/3 4:18
From Belgium
Posts: 1718
Very good points, both on the need for the library, and also on the possibility of bundling some fonts with some language libraries only.

Work on the addons site is progressing slowly, but it is progressing. That won't give us control panel-installable modules yet, but it will be the first step.

Posted on: 2012/6/7 22:18
_________________
ImpressCMS.TV - Video Tutorials
d-log - My personal site

Me on Ohloh
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]