Permalink
Browse files

fixed bugs reported by Kostis Sagonas

  • Loading branch information...
1 parent 19795e6 commit 32458be0e4e0eb7c70f7b1c5ee82f73b6e9e10a3 Richard Carlsson committed Aug 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/eg_afm.erl
  2. +1 −1 src/erlguten.erl
View
@@ -120,7 +120,7 @@ make() ->
%% Just run pdf_afm_qdh:all() to build the font tables
all_afms() ->
{ok, F} = file:open(filename:join(eg_lib:priv_dir(), "font_locations"),
- read),
+ [read]),
L= read_locations(F, []),
file:close(F),
find_atms(L, []).
View
@@ -81,7 +81,7 @@ format(File) ->
PDF = eg_pdf:new(),
Env = #env{page=Page, pdf=PDF, dict=dict:new()},
loop(Templates, Env),
- Serialised = eg_pdf:export(PDF),
+ {Serialised, _PageNo} = eg_pdf:export(PDF),
file:write_file(Out,[Serialised]),
io:format("Created a file called:~p~n",[Out]),
eg_pdf:delete(PDF);

0 comments on commit 32458be

Please sign in to comment.