Displaying 20 results from an estimated 110 matches similar to: "How to Send Itext Generated PDF to Browser?"
2008 Jul 05
18
Java Bridge Itext Example Anyone?
I MAY be able to derive something out of the present example given here
:
http://blog.codeinmotion.com/index.php/2006/12/22/pdf-generation-in-ruby-on-rails/
but this deals with filling out forms. Is there a simpler example that
just allows you to talk to itext , send it some plain text and get back
a pdf and then send that pdf to the user as downloadable / renderable
data?
--
Posted via
2007 Nov 21
1
iText, Rails, and OS X
I have the need to take existing PDFs and populate them with data
entered via HTML forms. Data saved to database, entered in to PDF
file, PDF file with data archived, and then distributed va email and/
or download.
The languuage I previous did all my web work in, Lasso, had this
stuff built in, but it appears not to be so with Ruby or Rails.
The latest info I can find on this is a year
2014 Jan 26
2
[LLVMdev] [llmdev] fail to process llvm generated assembly on windows/mingw32
Hello guys,
I'm using llvm 3.3 on windows with mingw (triple: "i386-unknown-mingw32")
to compile IR code that my
program generates.
I do it in two phases: first I emit assembly code and then assemble it.
TargetMachine targetMachine =
target.createTargetMachine(triple);
targetMachine.setAsmVerbosityDefault(true);
targetMachine.setFunctionSections(true);
2007 Aug 17
1
[LLVMdev] Inserting trace information during opt transformations
Hi all,
In several of the transformations I'm working on I need to embed the
logical equivalent of puts/printf/etc. calls inline with code. I am
having some difficulties getting the transformation code right. As I
understand it, I should be creating a ConstantArray based on the string
(in this case I'm taking an instruction, 'disassembling' it to an
ostringstream then turning
2008 Apr 15
4
trouble streaming images with send_data
Hi
I''m doing some server-side graphics with Java2D and I''m trying to
stream the resulting image to the browser using send_data. When I try
to view the image that I streamed, the browser just shows the URL in
the window as a very small image (about .4 kb) when I am using jpeg
format. For png, it tells me that the image has errors and can''t load
it.
Here''s what
2008 Jan 26
0
JRuby version of win32-api - initial try
Hi all,
I''ve got a preliminary JRuby version of win32-api checked into CVS at
the moment under win32-api/lib/win32/api.rb. I''ve also pasted it below.
It doesn''t quite work right in that I can''t get it to modify the
arguments in place in the API#call method. Take a look at the sample
code at the very bottom to see what I mean.
I haven''t even tried
2009 May 25
2
Looping through java hashmap from ruby through rjb
Greetings.
I am trying to list all keys in a java.util.HashMap field.
The Java code to do this looks like:
#
Collection c = hMap.values();
#
#
//obtain an Iterator for Collection
#
Iterator itr = c.iterator();
#
#
//iterate through HashMap values iterator
#
while(itr.hasNext())
System.out.println(itr.next());
So, I took a stab at the ruby version:
# I have a java hashmap called fields
2011 Feb 10
3
Using RJB in a Rails 3 app?
I''m trying to interact with a java library (Aspose Slides) inside of my
Rails 3 app. I''m trying to get the rjb gem installed but I keep running
into the same error when I try to start the app:
[BUG] cross-thread violation on rb_gc()
(null)
Abort trap
I''m on OSX 10.6.6, running ruby 1.8.7-p174 (via RVM) and Rails 3.0.4. I
tried a couple of methods for getting this
2006 May 22
2
Problem with send_data and csv file produced
hi, i did a search and couldn''t find wat''s the problem with my code...
it seems everything is the same and the result is what i expected but i
am not sure where went wrong....
using send_data function to send the csv file to the client, the file
sending is successfully but when i opened the csv file, something is
wrong...
every statement got a "......" inverted
2009 Sep 28
3
rjb: Java classes in Rails
Hi,
For those who might not be aware, rjb is a killer gem for using java
classes inside your rails app (or any ruby code). Check it out at:
http://rubyforge.org/projects/rjb/
I was able to successfully use it in one of my apps that required some
code that is only available in java. And it''s much nicer than having to
compile a java app, then shell out using backticks, get back the return
2005 Dec 15
3
Pdf::Writer and "Replacement Tags"
Having read over the ruby pdf generation (simple reporting) options, I
think Pdf::Writer will do just fine...
..if the following is possible
On page 13 of (the really expansive) ::Writer manual, Replacement Tags
are detailed.
Before I jump into this tomorrow, I''m hoping for some triage sage
advice.
Finally, the question : "Would utilizing Replacement Tags be a suitable
2010 Jan 15
2
video tag options
I have been using MV-embed
but it stopped working (i have already send a bug report)
my main need is a subtitle option
what are my options?
where can I see a complete list of the attributes to the video tag?
tom_a_sparks
__________________________________________________________________________________
See what's on at the movies in your area. Find out now:
2020 Jul 23
2
dsync fails for existing user: "Error: Failed to initialize user: Namespace '': Mailbox list driver imapc: missing imapc_password" ?
i'm attempting to dsync from a remote/other IMAP store to my current/new dovecot instance
testing remote's IMAP access from the local/dovecot box, i can successfully login
openssl s_client \
-crlf \
-4 \
-showcerts \
-bind 10.0.1.10 \
-connect remote-imap.example.com:993 \
-cert /sec/vmail/client.EC.crt.pem \
-key /sec/vmail/client.EC.key.pem \
-CAfile
2013 Aug 21
11
Confusion with puppetdb (storeconfig) and query database
Hello,
I have configured puppet and puppetdb (storeconfig) with postgresql and the
service run and the collecting are good for example:
I can make query with the next command and responds ok .
[.........................]
[root@master]# curl -X GET -H ''Accept: application/json''
http://127.0.0.1:8080/v2/facts --data-urlencode ''query=["=", "name",
2010 Jan 09
4
parsing pdf files
I have a pdf file that I would like to parse into R:
http://www.williams.edu/Registrar/geninfo/faculty.pdf
For now, I open the file in Acrobat by hand, then save it "as text"
and then use readLines(). That works fine but a) I am concerned that
some information may be lost and b) I may be doing this a lot, so I
would rather have R grab the information from the pdf file directly.
So: is
2008 Jan 18
63
Jasper reports and iReport
Has anyone succeeded in producing Rails reports using jasper reports?
I have prepared reports directly with Jasper''s iReport tool using my
MySQL data. It is a very powerful reporting tool. The reports look
greate.
But I have not been able to produce the reports from my Rails
application. I have followed the instructions provided at:
2009 Sep 10
2
ASR & ACD
Is there any program Asterisk users use to calculate ASR and ACD ??
Thanks for any comments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090910/af1f9656/attachment.htm
2011 Sep 29
1
Broken mail clients? [MIME] Long attachment encoded filenames (for non-ASCII characters etc)
Hi,
I've noticed a possible minor issue with long encoded filenames for attachments
where these filenames are split across multiple lines. My understanding of
character encoding and MIME is not as good as it should be, so I may easily
have got this all mixed up, in which case sorry for the noise...
Although I understand the preferred method for handling filenames split across
multiple
2007 Feb 28
8
Export/save csv-file to desktop of user?
Hi,
looking for something that simple, but can''t find it. I got:
outfile = File.open(''teams.txt'', ''wb'')
CSV::Writer.generate(outfile) do |csv|
for team in @teams
csv << [team.id, team.name]
end
end
outfile.close
send_file "teams.txt", :filename => "teams.txt",:disposition =>
2001 Dec 10
10
hang on exit bug under Linux
>From what I understand, the problem is due to people's disagreement about what the "correct" behavior should be. I'm pretty sure that the following is the correct behavior from running rsh and ssh often (both fsecure and openssh).
Lets say you have a stupid script that does
while 1
do
sleep 1
done
Called foreverSleep on your remote host:
rsh remotehost