Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
pdftalk4gemstone [2021/07/29 18:08] christian [PDFtalk for Gemstone] |
pdftalk4gemstone [2022/03/07 10:31] (current) bekki |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== PDFtalk for Gemstone ====== | ====== PDFtalk for Gemstone ====== | ||
- | Library for reading and writing PDF files in Gemstone. | + | Library for reading and writing PDF files in [[https:// |
The source is on [[https:// | The source is on [[https:// | ||
Line 11: | Line 11: | ||
The namespaces from VisualWorks are implemented by symbol dictionaries in Gemstone. Therefore, the '' | The namespaces from VisualWorks are implemented by symbol dictionaries in Gemstone. Therefore, the '' | ||
- | {{:pdftalk_namespaces.png? | + | {{:namespaces_gemstone.png? |
Accessing classes in namespaces is written differently. For example: | Accessing classes in namespaces is written differently. For example: | ||
Line 114: | Line 114: | ||
===== Runtime considerations ===== | ===== Runtime considerations ===== | ||
- | There are some global variables caching objects (fonts, encodings, the type hierarchy). These caches are lazily filled when accessed first. In a runtime, you may want to reset and fill all caches before deploying, either because of limited rights of the runtime user or to eliminate startup overhead-. | + | There are some global variables caching objects (fonts, encodings, the type hierarchy). These caches are lazily filled when accessed first. In a runtime, you may want to reset and fill all caches before deploying, either because of limited rights of the runtime user or to eliminate startup overhead. |
After all your application code is loaded, do the following to reset and fill all caches: | After all your application code is loaded, do the following to reset and fill all caches: | ||
Line 122: | Line 122: | ||
===== Images ===== | ===== Images ===== | ||
- | There is code to save ImageXObjects as Value (i.e. source code which will reconstruct | + | There is code to save ImageXObjects as Value (i.e. source code which will reconstruct |
To produce the source string for a PDF image you send it '' | To produce the source string for a PDF image you send it '' | ||
This string can be evaluated in Gemstone with '' | This string can be evaluated in Gemstone with '' | ||
Line 135: | Line 135: | ||
anImageXObject asMethod: selectorSymbol in: protocolSymbol package: packageString | anImageXObject asMethod: selectorSymbol in: protocolSymbol package: packageString | ||
</ | </ | ||
- | I added several example images with this to ImageXObject. You can also look at the new ImageXTests where the images are used. | + | I added several example images with this to ImageXObject. You can also look at ImageXTests where the images are used. |
These methods can be transferred easily form VW to Gemstone and you get the image just by calling that method. | These methods can be transferred easily form VW to Gemstone and you get the image just by calling that method. | ||