delete pages in a thumbnail control - Visual Foxpro

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
sortiz
Posts: 5
Joined: Fri Dec 01 2006

delete pages in a thumbnail control - Visual Foxpro

Post by sortiz »

I managed to get the thumbnail control to display a pdf file.

Now I have been trying to delete the selected pages without success.
There is not documentation about the thumb control.

I have sent several e-mail to support but without success.

Is there anybody that have managed to delete the selected pages on a thumbnail control???.


Sergio
sortiz
Posts: 5
Joined: Fri Dec 01 2006

solution

Post by sortiz »

nArraySelectedPages = Thisform.oleAmyuniFrom.SelectedPages && return an array
IF pdfFrom.PageCount = ALEN(nArraySelectedPages)
MESSAGEBOX("Cannot delete all pages!!",64,"Document Management System")
RETURN .F.
ENDIF

*-- Save the pages selected for displaying purposes
lcSelectedPages = ""
FOR i= 1 TO ALEN(nArraySelectedPages)
lcSelectedPages = lcSelectedPages + ALLTRIM(STR(nArraySelectedPages(i))) + ","
ENDFOR
IF !EMPTY(lcSelectedPages)
*-- Remove the ',' character
lcSelectedPages = SUBSTR(lcSelectedPages,1,LEN(lcSelectedPages) - 1)


IF MESSAGEBOX("Are you sure you want to delete the following page(s): " ;
+ lcSelectedPages, 65,"Document Management System") = 1

FOR i= 1 TO ALEN(nArraySelectedPages)
*WAIT WINDOW
pdfFrom.DeletePage(i,.F.)
ENDFOR
pdfFrom.Save(Thisform.filenamefrom,0)



I wish we can be provided documentation on the thumnail control!!!!!!!!

Sergio
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,

Hello,

We are in the process of finalizing our next major update to the PDF Creator and this update will include additional information regarding the thumbnail control.

However to assist you further, I have included below some information which may not currently documented.

Example:
AxacThumbnailCtrl1.Initialize(Me.AxPDFCreactiveX1.GetOcx())


Reset():
- Can be called to temporarily detach the thumbnail control from the PDF control, hence providing faster overall application performance in the case where the thumbnail control is not visible for instance. When this method is called, and the application logic later needs to show the thumbnail control again, it can simply call the Initialize() method another time.


ScrollPageThumbIntoView():

Can be called to directly make a page thumb visible if it is not currently in the view of the client area of the thumbnail control. The user may call this function any time after Initialize() has been called. It can be called in response to a current page number change event if there is one.


IsInitialized:

- A boolean property value that indicates whether the thumbnail control has been already Initialize()d or not. Useful to avoid making redundant calls Initialize().


ThumbSizeFactor:

- A numeric integer value that indicates the percentage of the size of a page thumb. This value has a default of 14 (14% of the original page size.) It cannot be less than 10.


RedrawAllThumbs():

- Causes all thumbs to be redrawn, and their thumb images be refreshed to reflect any actual page changes.


SelectedPages()

-Returns array of selected pages
Post Reply