[Newbies] Found some issues, getting HPDF to work

Stephan Eggermont stephan at stack.nl
Sat Jan 10 18:52:53 UTC 2009


After saving and closing and restarting squeak, the FFI tests are green.
The saving of a empty document test fails, as the document is written to
a different location than where it is expected:

testSavingEmptyDocument

	[PDFDocument new saveToFile: self pdfFileName.
    	 self assert: (FileDirectory default fileExists: self pdfFileName)]
		ensure: [self checkTestFileDeleted]

where self pdfFileName is ^'test.pdf'.

This fails as FileDirectory default is
'/Applications/Seaside-2.8-573.app/Contents/Resources'
and the file ends up in
'/Applications'

Where does libhpd get  its default directory, as it is an external  
library?
Sounds like it should be translated to an absolute path on the squeak  
side.

Stephan



More information about the Beginners mailing list