Tuesday, April 10, 2012

Installing PostGIS 1.4.0 on Postgresql 8.4 on Ubuntu 10.04

http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/


Install postgres 8.4
sudo apt-get install postgresql postgresql-client postgresql-contrib pgadmin3
Install postgis
sudo apt-get install libpostgis-java osm2pgsql postgresql-8.4-postgis
Create template
sudo su postgres
createdb postgistemplate
createlang plpgsql postgistemplate
psql -d postgistemplate -f /usr/share/postgresql/8.4/contrib/postgis.sql
psql -d postgistemplate -f /usr/share/postgresql/8.4/contrib/spatial_ref_sys.sql
Testing successful installation
psql -d postgistemplate -c "SELECT postgis_full_version();"

Monday, April 9, 2012

Fixing "font not embedded" issue to pass the IEEE PDF eXpress check

I spent two hours making my pdf file to pass the IEEE PDF eXpress check.


After I latex and submit the pdf file, I got the following errors.

Errors & Warnings
Severity Description
? 8 Error Font TimesNewRomanPSMT is not embedded (817x)
? 8 Error Font TimesNewRomanPS-ItalicMT is not embedded (204x)
? 8 Error Font TimesNewRomanPS-BoldItalicMT is not embedded (6x)
? 8 Error Font TimesNewRomanPS-BoldMT is not embedded (13x)
? 8 Error Font Arial-ItalicMT is not embedded
? 8 Error Font ArialMT is not embedded (12x)


You may also get other fonts embedding problem.


In Windows, the solution can be very simple.


1. open your pdf file, 
2. select file -> print
3. set your printer to be Adobe printer (assuming you already installed it)
4. click on properties
5. click the tab "Adobe PDF Settings"
6. uncheck "Rely on system fonts only; do not use document fonts"
7. click on the Edit... after Default Settings
8. click on Fonts, add those missing fonts to "Always Embed" (It is recommended to save the properties as a new setting.)
9. print the pdf file with the new settings, and your new pdf file should be good to go.