Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any chance to run this great pdf-generator within VFP?
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00834147
Message ID:
00835118
Views:
33
Hi Rich,

>It sounds like for the most part my control can easily provide the interface that you need to get your images into a multipage PDF document with a lot of images. I would need to finish up my encryption and password protection code as well as add in the bookmarking which isn't all that difficult to add in. It just hasn't surfaced to the top of my priority list as compared to all the other stuff on my huge list.

I am looking for a rapidly available solution here.
TIF support in volume is a must for this thing.

>With my control I've been trying to do a lot of things that I always wanted to do in the VFP Report Writer but couldn't or at least couldn't very easily and also add a lot more functionality and flexibility to my reports such as combining multiple Page Sizes and Orientations into a single report. This kind of stuff I keep adding to constantly. I'm always looking for new ideas and ways to improve it too...

I shall make a serious try of your product soon.

>Howver i'd much prefer a fully programmable interface where the meta-model
>could pretty much control and drive the pdf make in such details that are
>indeed no details to-day:
>- encryption and password protection,
>- bookmarking,
>- limited text marking....

Below is the solution i found, it perfectly fits the functional needs
(dynamically building a secure encrypted document from an arbitrary
list of base resources (mono and multipage documents, jpeg and tiffs)
stored in the blobs of a db engine).

The thing is not free. Not royalty-free as well. Which means that
i'll still be looking for a product with a royalty-free license
scheme.

The code is very dry and pretty effective.
** from a collection of TIFFs into a secure PDF
** trivial solution with ACTIVEpdf from with VFP
** still looking for a royalty-free solution...
oTK = CREATEOBJECT("APToolkit.Object")
oTK.OpenOutputFile ("output.pdf")
iBookPage = 1
iPageCount = 0
cfileName = GETFILE("tif")
IF EMPTY(cfileName)
	RETURN
ENDIF
iDocument = 1
DO WHILE .T.
	oTK.TIFFToPDF(cfileName,"temp.pdf")
	iPageCount = iPageCount + oTK.NumPages("temp.pdf")
	oTK.MergeFile("c:\hroffice\temp.pdf",0,0)
	oTK.AddInternalLinkBookmark("Document "+TRANSFORM(iDocument)+" "+;
	JUSTSTEM(cfileName),iBookPage,0,0)
	iBookPage = iPageCount+1
	cfileName = GETFILE("tif")
	IF EMPTY(cfileName)
		EXIT
	ENDIF
	iDocument = iDocument+1
ENDDO

oTK.SetInfo("HR management","Full HR File","HR","CV, payroll, contract")
oTK.CloseOutputFile()
oTK.EncryptFile128("output.pdf",;
	"c:\hroffice\encrypt128output.pdf","John","Jim",1,0,0,0,0,0,0,0)
oTK = NULL

>If you have any questions or have some sample images that I can look at to test for building in the functionality you need, please let me know. You can always email me directly.

Thank for your offer. I'l send you a report on your product once i have
tested it. It might replace the stuff that i currently do with VPE.
Their pricing for the full product is just not for me(:

Kind regards for your time

François
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform