Discussion:
Print salary receipts to a pdf image
Rafael Copquin
2018-09-13 21:39:02 UTC
Permalink
I have the following requirement:

Print a salary receipt to a company form, previously generated as a pdf file

The application calculates the monthly salaries of the company's personel
and issues a salary receipt for each employee.
Now they print the receipt to a preprinted form with te company logo and
the Treasurer's signature
But they want to have the blank form, with the logo and static text,
including the officer's signature on the form, to be filled with the salary
data, employee name, deductions, etc and print the whole on a blank sheet
by a laser printer.
In this way the company will save the cost of having preprinted forms. They
will simply use a letter size sheet to print each receipt

What do you suggest, please?
What about FoxyPreviewer, or any other software?

Perhaps ask the printing company to scan a blank form and produce a pdf
file, or another image file?

Please advise

Thank you

Rafael Copquin


--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAHM-***@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Paul Newton
2018-09-14 08:14:28 UTC
Permalink
Rafael

You could scan the blank form and insert the saved image into a blank report design and then overlay the parts of the form that need to be completed with the usual report controls

Paul Newton

-----Original Message-----
From: ProfoxTech <profoxtech-***@leafe.com> On Behalf Of Rafael Copquin
Sent: 13 September 2018 22:39
To: ***@leafe.com
Subject: Print salary receipts to a pdf image

Sent by an external sender
------------------------------

I have the following requirement:

Print a salary receipt to a company form, previously generated as a pdf file

The application calculates the monthly salaries of the company's personel and issues a salary receipt for each employee.
Now they print the receipt to a preprinted form with te company logo and the Treasurer's signature But they want to have the blank form, with the logo and static text, including the officer's signature on the form, to be filled with the salary data, employee name, deductions, etc and print the whole on a blank sheet by a laser printer.
In this way the company will save the cost of having preprinted forms. They will simply use a letter size sheet to print each receipt

What do you suggest, please?
What about FoxyPreviewer, or any other software?

Perhaps ask the printing company to scan a blank form and produce a pdf file, or another image file?

Please advise

Thank you

Rafael Copquin


--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@SN1PR0201MB1856.namprd02.prod.outlook.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Alan Bourke
2018-09-14 09:01:18 UTC
Permalink
Maybe I'm missing something but would you not just design a normal VFP report with the logo graphic and whatever boxes and lines are required, reproducing the pre-printed stationery, and print that to PDF via XFRX or whatever?
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@webmail.messagingengine.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Paul Newton
2018-09-14 09:13:48 UTC
Permalink
Which is exactly what we have done for our HMRC P60s

-----Original Message-----
From: ProfoxTech <profoxtech-***@leafe.com> On Behalf Of Alan Bourke
Sent: 14 September 2018 10:01
To: ***@leafe.com
Subject: Re: Print salary receipts to a pdf image

Sent by an external sender
------------------------------

Maybe I'm missing something but would you not just design a normal VFP report with the logo graphic and whatever boxes and lines are required, reproducing the pre-printed stationery, and print that to PDF via XFRX or whatever?
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm

[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/***@SN1PR0201MB1856.namprd02.prod.outlook.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Rafael Copquin
2018-09-14 14:53:27 UTC
Permalink
Perhaps I was not very clear.

I have scanned the empty receipt as a pdf image.
I want to fill it with the applicable data and then print it on a laser
printer

I can't use the vfp report writer because it will not take a pdf file as an
image. And if I use a jpg file instead, it will not allow me to make it fit
in the page with the right shape.

Rafael
Post by Alan Bourke
Maybe I'm missing something but would you not just design a normal VFP
report with the logo graphic and whatever boxes and lines are required,
reproducing the pre-printed stationery, and print that to PDF via XFRX or
whatever?
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAHM-jJ2n+Y3DA6fii2_yUzyYyeHo9jU+***@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages
Peter Cushing
2018-09-14 15:03:33 UTC
Permalink
Post by Rafael Copquin
Perhaps I was not very clear.
I have scanned the empty receipt as a pdf image.
I want to fill it with the applicable data and then print it on a laser
printer
I can't use the vfp report writer because it will not take a pdf file as an
image. And if I use a jpg file instead, it will not allow me to make it fit
in the page with the right shape.
Like Alan suggested I think the easiest solution is to just create it
using the VFP report writer.  Put all the words, lines, boxes etc using
the normal report writer tools and anything graphics like that you can't
create, put that in as a JPG or GIF.  I have done that on loads of
reports here.  You may be able to do the whole page as a watermark or
something like that and pretty sure there are people on the forum who
have done a full page watermark in VFP, but I'm sure the normal report
is easier.

Just my .02

Peter

This communication is intended for the person or organisation to whom it is addressed. The contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.

www.whisperingsmith.com

Whispering Smith Ltd Head Office:61 Great Ducie Street, Manchester M3 1RR.
Tel:0161 831 3700
Fax:0161 831 3715

London Office: 101 St. Martin's Lane,London, WC2N 4AZ Tel:0207 299 7960




_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/b52d6131-248d-6fdf-22aa-***@whisperingsmith.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages f
Stephen Russell
2018-09-14 15:40:33 UTC
Permalink
In Document Management systems this is given. You set the shell that holds
the text objects in place on top of the pdf file. You then pass the data
to this program and it pumps out a mail merge like operation. There are a
few in open source as a guess. My last project to do this created a label
for cases that the grand jury approved for prosecution. The label had
columns for defendant's info as well as other court data. The PDF was the
seal for the court as well as labels for data.
Post by Peter Cushing
Post by Rafael Copquin
Perhaps I was not very clear.
I have scanned the empty receipt as a pdf image.
I want to fill it with the applicable data and then print it on a laser
printer
I can't use the vfp report writer because it will not take a pdf file as
an
Post by Rafael Copquin
image. And if I use a jpg file instead, it will not allow me to make it
fit
Post by Rafael Copquin
in the page with the right shape.
Like Alan suggested I think the easiest solution is to just create it
using the VFP report writer. Put all the words, lines, boxes etc using
the normal report writer tools and anything graphics like that you can't
create, put that in as a JPG or GIF. I have done that on loads of
reports here. You may be able to do the whole page as a watermark or
something like that and pretty sure there are people on the forum who
have done a full page watermark in VFP, but I'm sure the normal report
is easier.
Just my .02
Peter
This communication is intended for the person or organisation to whom it
is addressed. The contents are confidential and may be protected in law.
Unauthorised use, copying or disclosure of any of it may be unlawful. If
you have received this message in error, please notify us immediately by
telephone or email.
www.whisperingsmith.com
Whispering Smith Ltd Head Office:61 Great Ducie Street, Manchester M3 1RR.
Tel:0161 831 3700
Fax:0161 831 3715
London Office: 101 St. Martin's Lane,London, WC2N 4AZ Tel:0207 299 7960
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAJidMYJ=Ao+WfEMvX_AdCUo2YbuHnzd8Q_Ft1dLSw9mT6uG2-***@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Charlie-gm
2018-09-14 17:21:15 UTC
Permalink
The opinions are flying, so...
Post by Stephen Russell
In Document Management systems this is given. You set the shell that holds
the text objects in place on top of the pdf file. You then pass the data
...
This is a false statement. Document management systems do not use the
"print on top of PDF" design as "a given." The 2 document management
applications that I have worked on threw out this approach mostly
because of what Ted has pointed out. I've done other applications where
"document management" was a component and we also did not use it there.
One thing I have implemented regarding PDFs is an "archiving" function
(aka, exactly what was sent to the customer, user). Those components
simply printed output twice (once for the users, once to the logging
PDFs when then got placed back into the DB).
Post by Stephen Russell
Post by Peter Cushing
Like Alan suggested I think the easiest solution is to just create it
using the VFP report writer. Put all the words, lines, boxes etc using
the normal report writer tools and anything graphics like that you can't
...
I'll second the "write-in-VFP" option for a couple reasons:
1) the output quality will be superb, and when generating paper for
users/customers, the quality of the finished product leaves lasting
impressions (don't forget about color! <g>)
2) there will be a huge payoff for future maintainability and
flexibility (got change in form, new form, more data? no problem!).

In fact, if your company would allow you, go ahead and send me
(***@acm.org) a scan or picture of the form and I'll get it started
for you (I generally use VFP9, but if you have earlier versions let me
know). The thing is, there are some features of the VFP Report Writer
that are hard to explain, but if you see them in action the lightbulb
comes on (for example, to put a box around the whole content, just
stretch a box from header to footer bands). So, while I may not have
time to do a complete form, I can probably set up the initial layout
which you could easily expand from there.

-Charlie


_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/761cade9-f594-23c3-5c6e-***@gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Rafael Copquin
2018-09-14 18:42:27 UTC
Permalink
Thnk you for your offer Charlie.

However, I would not want you to loose any time on this, since I came up
with a very simple solution, as described in a previous post.

I am curious though as to what document management systems you used in the
past.

have a nice weekend
Rafael
Post by Charlie-gm
The opinions are flying, so...
Post by Stephen Russell
In Document Management systems this is given. You set the shell that
holds
Post by Stephen Russell
the text objects in place on top of the pdf file. You then pass the data
...
This is a false statement. Document management systems do not use the
"print on top of PDF" design as "a given." The 2 document management
applications that I have worked on threw out this approach mostly
because of what Ted has pointed out. I've done other applications where
"document management" was a component and we also did not use it there.
One thing I have implemented regarding PDFs is an "archiving" function
(aka, exactly what was sent to the customer, user). Those components
simply printed output twice (once for the users, once to the logging
PDFs when then got placed back into the DB).
Post by Stephen Russell
Post by Peter Cushing
Like Alan suggested I think the easiest solution is to just create it
using the VFP report writer. Put all the words, lines, boxes etc using
the normal report writer tools and anything graphics like that you can't
...
1) the output quality will be superb, and when generating paper for
users/customers, the quality of the finished product leaves lasting
impressions (don't forget about color! <g>)
2) there will be a huge payoff for future maintainability and
flexibility (got change in form, new form, more data? no problem!).
In fact, if your company would allow you, go ahead and send me
for you (I generally use VFP9, but if you have earlier versions let me
know). The thing is, there are some features of the VFP Report Writer
that are hard to explain, but if you see them in action the lightbulb
comes on (for example, to put a box around the whole content, just
stretch a box from header to footer bands). So, while I may not have
time to do a complete form, I can probably set up the initial layout
which you could easily expand from there.
-Charlie
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAHM-jJ1PsOpMuzRWo7nibGHukJnYFVo8T7rNN=K+***@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawy
Charlie-gm
2018-09-14 19:25:04 UTC
Permalink
The doc mgmt systems I was referring to were ones we built (I was part
of the dev team). They were custom solutions.

-Charlie
Post by Rafael Copquin
Thnk you for your offer Charlie.
However, I would not want you to loose any time on this, since I came up
with a very simple solution, as described in a previous post.
I am curious though as to what document management systems you used in the
past.
have a nice weekend
Rafael
Post by Charlie-gm
The opinions are flying, so...
Post by Stephen Russell
In Document Management systems this is given. You set the shell that
holds
Post by Stephen Russell
the text objects in place on top of the pdf file. You then pass the data
...
This is a false statement. Document management systems do not use the
"print on top of PDF" design as "a given." The 2 document management
applications that I have worked on threw out this approach mostly
because of what Ted has pointed out. I've done other applications where
"document management" was a component and we also did not use it there.
One thing I have implemented regarding PDFs is an "archiving" function
(aka, exactly what was sent to the customer, user). Those components
simply printed output twice (once for the users, once to the logging
PDFs when then got placed back into the DB).
Post by Stephen Russell
Post by Peter Cushing
Like Alan suggested I think the easiest solution is to just create it
using the VFP report writer. Put all the words, lines, boxes etc using
the normal report writer tools and anything graphics like that you can't
...
1) the output quality will be superb, and when generating paper for
users/customers, the quality of the finished product leaves lasting
impressions (don't forget about color! <g>)
2) there will be a huge payoff for future maintainability and
flexibility (got change in form, new form, more data? no problem!).
In fact, if your company would allow you, go ahead and send me
for you (I generally use VFP9, but if you have earlier versions let me
know). The thing is, there are some features of the VFP Report Writer
that are hard to explain, but if you see them in action the lightbulb
comes on (for example, to put a box around the whole content, just
stretch a box from header to footer bands). So, while I may not have
time to do a complete form, I can probably set up the initial layout
which you could easily expand from there.
-Charlie
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/dc0f5ebc-7632-3486-ab85-***@gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too st
Rafael Copquin
2018-09-14 19:31:10 UTC
Permalink
noted, thanks
Post by Charlie-gm
The doc mgmt systems I was referring to were ones we built (I was part
of the dev team). They were custom solutions.
-Charlie
Post by Rafael Copquin
Thnk you for your offer Charlie.
However, I would not want you to loose any time on this, since I came up
with a very simple solution, as described in a previous post.
I am curious though as to what document management systems you used in
the
Post by Rafael Copquin
past.
have a nice weekend
Rafael
Post by Charlie-gm
The opinions are flying, so...
Post by Stephen Russell
In Document Management systems this is given. You set the shell that
holds
Post by Stephen Russell
the text objects in place on top of the pdf file. You then pass the
data
Post by Rafael Copquin
Post by Charlie-gm
...
This is a false statement. Document management systems do not use the
"print on top of PDF" design as "a given." The 2 document management
applications that I have worked on threw out this approach mostly
because of what Ted has pointed out. I've done other applications where
"document management" was a component and we also did not use it there.
One thing I have implemented regarding PDFs is an "archiving" function
(aka, exactly what was sent to the customer, user). Those components
simply printed output twice (once for the users, once to the logging
PDFs when then got placed back into the DB).
Post by Stephen Russell
Post by Peter Cushing
Like Alan suggested I think the easiest solution is to just create it
using the VFP report writer. Put all the words, lines, boxes etc
using
Post by Rafael Copquin
Post by Charlie-gm
Post by Stephen Russell
Post by Peter Cushing
the normal report writer tools and anything graphics like that you
can't
Post by Rafael Copquin
Post by Charlie-gm
...
1) the output quality will be superb, and when generating paper for
users/customers, the quality of the finished product leaves lasting
impressions (don't forget about color! <g>)
2) there will be a huge payoff for future maintainability and
flexibility (got change in form, new form, more data? no problem!).
In fact, if your company would allow you, go ahead and send me
started
Post by Rafael Copquin
Post by Charlie-gm
for you (I generally use VFP9, but if you have earlier versions let me
know). The thing is, there are some features of the VFP Report Writer
that are hard to explain, but if you see them in action the lightbulb
comes on (for example, to put a box around the whole content, just
stretch a box from header to footer bands). So, while I may not have
time to do a complete form, I can probably set up the initial layout
which you could easily expand from there.
-Charlie
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAHM-***@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those la
Stephen Russell
2018-09-14 20:03:45 UTC
Permalink
I was referring to ones my former employer sold back in 2008-2010.
Guessing that the program was called Liquid-Office and the actual product
was eForms. That was a while back and a lot of changes since then.
Post by Charlie-gm
The doc mgmt systems I was referring to were ones we built (I was part
of the dev team). They were custom solutions.
-Charlie
Post by Rafael Copquin
Thnk you for your offer Charlie.
However, I would not want you to loose any time on this, since I came up
with a very simple solution, as described in a previous post.
I am curious though as to what document management systems you used in
the
Post by Rafael Copquin
past.
have a nice weekend
Rafael
Post by Charlie-gm
The opinions are flying, so...
Post by Stephen Russell
In Document Management systems this is given. You set the shell that
holds
Post by Stephen Russell
the text objects in place on top of the pdf file. You then pass the
data
Post by Rafael Copquin
Post by Charlie-gm
...
This is a false statement. Document management systems do not use the
"print on top of PDF" design as "a given." The 2 document management
applications that I have worked on threw out this approach mostly
because of what Ted has pointed out. I've done other applications where
"document management" was a component and we also did not use it there.
One thing I have implemented regarding PDFs is an "archiving" function
(aka, exactly what was sent to the customer, user). Those components
simply printed output twice (once for the users, once to the logging
PDFs when then got placed back into the DB).
Post by Stephen Russell
Post by Peter Cushing
Like Alan suggested I think the easiest solution is to just create it
using the VFP report writer. Put all the words, lines, boxes etc
using
Post by Rafael Copquin
Post by Charlie-gm
Post by Stephen Russell
Post by Peter Cushing
the normal report writer tools and anything graphics like that you
can't
Post by Rafael Copquin
Post by Charlie-gm
...
1) the output quality will be superb, and when generating paper for
users/customers, the quality of the finished product leaves lasting
impressions (don't forget about color! <g>)
2) there will be a huge payoff for future maintainability and
flexibility (got change in form, new form, more data? no problem!).
In fact, if your company would allow you, go ahead and send me
started
Post by Rafael Copquin
Post by Charlie-gm
for you (I generally use VFP9, but if you have earlier versions let me
know). The thing is, there are some features of the VFP Report Writer
that are hard to explain, but if you see them in action the lightbulb
comes on (for example, to put a box around the whole content, just
stretch a box from header to footer bands). So, while I may not have
time to do a complete form, I can probably set up the initial layout
which you could easily expand from there.
-Charlie
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAJidMYKyP8rfX=***@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages
Frank Cazabon
2018-09-14 15:10:13 UTC
Permalink
If you can get the PDF as a fillable PDF form you can then use PDFtk to
fill the form from VFP.

Frank.

Frank Cazabon
Post by Rafael Copquin
Perhaps I was not very clear.
I have scanned the empty receipt as a pdf image.
I want to fill it with the applicable data and then print it on a laser
printer
I can't use the vfp report writer because it will not take a pdf file as an
image. And if I use a jpg file instead, it will not allow me to make it fit
in the page with the right shape.
Rafael
Post by Alan Bourke
Maybe I'm missing something but would you not just design a normal VFP
report with the logo graphic and whatever boxes and lines are required,
reproducing the pre-printed stationery, and print that to PDF via XFRX or
whatever?
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/8587096e-c3d2-eeec-3cad-***@gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see
Koen Piller
2018-09-14 16:57:22 UTC
Permalink
Frank,

Ted is completely correct.
Just use VFP:
1) scan your given PDF form and extract the different images from that
file into separate .jpg files
2) create a dbf/cursor with all the fields you are required to fill in the
given PDF
3) search internet for the font used for that PDF
4) create a VFP Report, where you put the images you have colleted at their
place like on the given PDF
5) set all the captions as on the given PDF to the text as in the font as
6) set all the textboxes font as on the given PDF
7) save report, print and compare
A job which can be done in less than 1 hour. (maybe 1st time a little bit
longer, however when you know how-to certainly < 1 hour)
If you find problems with this approach, feel free to contact me.

Koen
Post by Frank Cazabon
If you can get the PDF as a fillable PDF form you can then use PDFtk to
fill the form from VFP.
Frank.
Frank Cazabon
Post by Rafael Copquin
Perhaps I was not very clear.
I have scanned the empty receipt as a pdf image.
I want to fill it with the applicable data and then print it on a laser
printer
I can't use the vfp report writer because it will not take a pdf file as
an
Post by Rafael Copquin
image. And if I use a jpg file instead, it will not allow me to make it
fit
Post by Rafael Copquin
in the page with the right shape.
Rafael
)
Post by Alan Bourke
Maybe I'm missing something but would you not just design a normal VFP
report with the logo graphic and whatever boxes and lines are required,
reproducing the pre-printed stationery, and print that to PDF via XFRX
or
Post by Rafael Copquin
Post by Alan Bourke
whatever?
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CACUu1SubfYkwb-***@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too
Ted Roche
2018-09-14 17:01:37 UTC
Permalink
Post by Koen Piller
Frank,
Ted is completely correct.
I keep telling you guys... <grin>
--
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CACW6n4tdoTXttDHFTNrR=M-GWtFqRyOcbjnX5pS5=***@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Frank Cazabon
2018-09-14 17:14:53 UTC
Permalink
Koen,

it's not me asking for help, it's Rafael. I suggested PDFtk as I use it
in some systems. Dead simple to implement, maybe 30 minutes tops if you
program slowly.

Frank.

Frank Cazabon
Post by Koen Piller
Frank,
Ted is completely correct.
1) scan your given PDF form and extract the different images from that
file into separate .jpg files
2) create a dbf/cursor with all the fields you are required to fill in the
given PDF
3) search internet for the font used for that PDF
4) create a VFP Report, where you put the images you have colleted at their
place like on the given PDF
5) set all the captions as on the given PDF to the text as in the font as
6) set all the textboxes font as on the given PDF
7) save report, print and compare
A job which can be done in less than 1 hour. (maybe 1st time a little bit
longer, however when you know how-to certainly < 1 hour)
If you find problems with this approach, feel free to contact me.
Koen
Post by Frank Cazabon
If you can get the PDF as a fillable PDF form you can then use PDFtk to
fill the form from VFP.
Frank.
Frank Cazabon
Post by Rafael Copquin
Perhaps I was not very clear.
I have scanned the empty receipt as a pdf image.
I want to fill it with the applicable data and then print it on a laser
printer
I can't use the vfp report writer because it will not take a pdf file as
an
Post by Rafael Copquin
image. And if I use a jpg file instead, it will not allow me to make it
fit
Post by Rafael Copquin
in the page with the right shape.
Rafael
)
Post by Alan Bourke
Maybe I'm missing something but would you not just design a normal VFP
report with the logo graphic and whatever boxes and lines are required,
reproducing the pre-printed stationery, and print that to PDF via XFRX
or
Post by Rafael Copquin
Post by Alan Bourke
whatever?
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/e71cb6ae-5efc-cb30-148b-***@gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to s
Rafael Copquin
2018-09-14 18:36:35 UTC
Permalink
This post might be inappropriate. Click to display it.
Ted Roche
2018-09-14 15:23:40 UTC
Permalink
The advice is pretty good, "don't do this unless you have to."

My clients have shipped a quarter-million PDFs with data merged from a
database app. so I've given this a bit of thought.

Using an image as a background is the worst possible solution short of
writing out the receipts by hand and postal-mailing them.

The image is large, it's usually poorly focused, it's rarely well-aligned
and it will look like poo when printed at the other end.

Rather than mix analog (the scanned image) and digital content, you can use
the VFP report writer, original hi-res logos, and a PDF printer to put out
clean text and high-resolution graphics.

Or you could redesign the form in another tool, like Word or LibreOffice or
Draw and convert it to a data form with CutePDF Professional and merge data
into the PDF with Adobe's (expensive) tools or something like pdftk (free
but more complex). That's a LOT more work, and I don't recommend it, unless
there's some reason you can't use VFP and/or XFRX or Foxy. ( I had to go
this way because app was PHP, not Fox)
Post by Rafael Copquin
Perhaps I was not very clear.
I have scanned the empty receipt as a pdf image.
I want to fill it with the applicable data and then print it on a laser
printer
I can't use the vfp report writer because it will not take a pdf file as an
image. And if I use a jpg file instead, it will not allow me to make it fit
in the page with the right shape.
Rafael
Post by Alan Bourke
Maybe I'm missing something but would you not just design a normal VFP
report with the logo graphic and whatever boxes and lines are required,
reproducing the pre-printed stationery, and print that to PDF via XFRX or
whatever?
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CACW6n4u4idntY7rbEMA-C71nyFw_myxucguyv=***@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those
Man-wai Chang
2018-09-14 09:36:48 UTC
Permalink
Check out freeware virtual PDF printers? Even if you needed to pay for
commercial use, they were cheap.

https://www.google.com/search?q=freeware+pdf+printer

In Window$ 10, there is a Microsoft Print To PDF in Printers and
Scanners section.

On Fri, Sep 14, 2018 at 5:39 AM, Rafael Copquin
Post by Rafael Copquin
Print a salary receipt to a company form, previously generated as a pdf file
The application calculates the monthly salaries of the company's personel
and issues a salary receipt for each employee.
Now they print the receipt to a preprinted form with te company logo and
the Treasurer's signature
But they want to have the blank form, with the logo and static text,
including the officer's signature on the form, to be filled with the salary
data, employee name, deductions, etc and print the whole on a blank sheet
by a laser printer.
In this way the company will save the cost of having preprinted forms. They
will simply use a letter size sheet to print each receipt
.~. Might, Courage, Vision. SINCERITY!
/ v \ 64-bit Fedora 25 Server Spin
/( _ )\ http://sites.google.com/site/changmw
^ ^ May the Force and farces be with you!

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/CAGv=***@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Jan Bucek
2018-09-14 16:46:35 UTC
Permalink
BTW "In this way the company will save the cost of having preprinted
forms" - is it really more expensive than blank paper + laser printer
printing logo, background picture, frames etc.?
Post by Rafael Copquin
Print a salary receipt to a company form, previously generated as a pdf file
The application calculates the monthly salaries of the company's personel
and issues a salary receipt for each employee.
Now they print the receipt to a preprinted form with te company logo and
the Treasurer's signature
But they want to have the blank form, with the logo and static text,
including the officer's signature on the form, to be filled with the salary
data, employee name, deductions, etc and print the whole on a blank sheet
by a laser printer.
In this way the company will save the cost of having preprinted forms. They
will simply use a letter size sheet to print each receipt
What do you suggest, please?
What about FoxyPreviewer, or any other software?
Perhaps ask the printing company to scan a blank form and produce a pdf
file, or another image file?
Please advise
Thank you
Rafael Copquin
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ***@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/96e8201a-af35-ae32-0460-***@post.cz
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Loading...