Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 56

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 198

Microsoft XPS on Ubuntu with mono

E-mail Imprimir PDF
Como visualizar arquivos xps no ubuntu?

Para visualizar no ubuntu hardy, pode-se instalar o pacote OKULAR com o comando:
sudo apt-get install okular-kde4

PS: o Okular não permitiu a impressão do arquivo de teste.

Para converter para PDF utilize o Xps da Ndesk em Mono:
Link: http://www.ndesk.org/Xps

Download

The renderer uses the NDesk Cairo library, an updated version of Mono.Cairo:

git-clone git://git.ndesk.org/pub/scm/cairo-sharp

To get the (experimental) Xps sources:

git-clone git://git.ndesk.org/pub/scm/ndesk-xps

Usage

sudo apt-get install mono-1.0-devel mono-2.0-devel mono-mcs mono-gmcs
sudo apt-get install mono-gac mono-utils monodevelop monodoc-browser monodevelop-nunit monodevelop-versioncontrol
sudo apt-get install mono-xsp2 mono-xsp2-base asp.net2-examples
sudo apt-get install mono-xsp mono-xsp-base asp.net-examples
sudo cp /usr/share/asp.net2-demos/index.aspx /usr/share/asp.net2-demos/index2.aspx

cd ~/
svn co svn://anonsvn.mono-project.com/source/trunk/mono-addins mono-addins
cd mono-addins
./autogen.sh --prefix=/usr/
make
sudo make install
cd ~/

git-clone git://git.ndesk.org/pub/scm/cairo-sharp
git-clone git://git.ndesk.org/pub/scm/ndesk-xps
cd ~/cairo-sharp
make all
cp
~/cairo-sharp/src/NDesk.Cairo.dll ~/ndesk-xps/src
cd ~/ndesk-xps
make all
cd ~/ndesk-xps/src
mono loader.exe Document.xps

This produces Document.pdf.

PS: Não consegui fazer funcionar para o meu arquivo de teste até agora.
Erro abaixo se alguém puder ajudar:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x00000]
at NDesk.IO.Packaging.ZipPackagePart.GetStreamCore (FileMode mode, FileAccess access) [0x00000]
at NDesk.IO.Packaging.PackagePart.GetStream (FileMode mode) [0x00000]
at NDesk.IO.Packaging.PackagePart.GetStream () [0x00000]
at NDesk.Xps.Loader.Convert (NDesk.IO.Packaging.Package pkg, Int32 docnum, System.String outfname) [0x00000]
at NDesk.Xps.Loader.Main (System.String[] args) [0x00000]


Links para mono: http://www.debianadmin.com/running-aspnet-applications-in-debian-and-ubuntu-using-xsp-and-mono.html
 

Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 250
Banner

Identificação

Visitantes


Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/modules/mod_vvisit_counter/helper.php on line 56

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/modules/mod_vvisit_counter/helper.php on line 57

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/modules/mod_vvisit_counter/helper.php on line 58

Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/modules/mod_vvisit_counter/helper.php on line 59

Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/modules/mod_vvisit_counter/helper.php on line 60

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/modules/mod_vvisit_counter/helper.php on line 63
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterHoje53
mod_vvisit_counterOntem119
mod_vvisit_counterEsta semana551
mod_vvisit_counterEste mês1536
mod_vvisit_counterTodos505712

Últimas Notícias


Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 198

Warning: Creating default object from empty value in /home/edifast0/public_html/corp/modules/mod_latestnews/helper.php on line 109

Warning: Creating default object from empty value in /home/edifast0/public_html/corp/modules/mod_latestnews/helper.php on line 109

Warning: Creating default object from empty value in /home/edifast0/public_html/corp/modules/mod_latestnews/helper.php on line 109

Warning: Creating default object from empty value in /home/edifast0/public_html/corp/modules/mod_latestnews/helper.php on line 109

Warning: Creating default object from empty value in /home/edifast0/public_html/corp/modules/mod_latestnews/helper.php on line 109

Mais Vistos


Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 198

Warning: Creating default object from empty value in /home/edifast0/public_html/corp/modules/mod_mostread/helper.php on line 79

Warning: Creating default object from empty value in /home/edifast0/public_html/corp/modules/mod_mostread/helper.php on line 79

Warning: Creating default object from empty value in /home/edifast0/public_html/corp/modules/mod_mostread/helper.php on line 79

Warning: Creating default object from empty value in /home/edifast0/public_html/corp/modules/mod_mostread/helper.php on line 79

Warning: Creating default object from empty value in /home/edifast0/public_html/corp/modules/mod_mostread/helper.php on line 79

Itens Relacionados


Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 198

Newsflash


Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 198
SERVER NOT FOUND or TIME OUT