SET HPDFDOC PERMISSION TO PRINT

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
AidTIC
Posts: 117
Joined: Mon Apr 22, 2013 8:29 am
DBs Used: DBF
Contact:

SET HPDFDOC PERMISSION TO PRINT

Post by AidTIC »

Hola,

Cuando trato de proteger un documento PDF.
Pero quiero que me deje copiar , leer y imprimir, no me deja IMPRIMIR, incluso la demo
\hmg.3.4.2\SAMPLES\HPDF\HMG_HPDF\

Tampoco permite imprimir el pdf que crea.

SELECT HPDFDOC 'HMG_HPDF_Doc.pdf' TO lSuccess papersize HPDF_PAPER_A4
SET HPDFDOC COMPRESS ALL
SET HPDFDOC PASSWORD OWNER "password"
SET HPDFDOC PAGEMODE TO OUTLINE
SET HPDFINFO AUTHOR TO 'S. Rathinagiri'
SET HPDFINFO CREATOR TO 'S. Rathinagiri'
SET HPDFINFO TITLE TO 'HMG_HPDF Documentation'
SET HPDFINFO SUBJECT TO 'Documentation of LibHaru/HPDF Library in HMG'
SET HPDFINFO KEYWORDS TO 'HMG, HPDF, Documentation, LibHaru, Harbour, MiniGUI'
SET HPDFINFO DATECREATED TO date() TIME time()
SET HPDFDOC PERMISSION TO READ
SET HPDFDOC PERMISSION TO PRINT
SET HPDFDOC PERMISSION TO COPY



Que debo hacer??

+ - - - - - - - - - - - - -- - - - Traducido con Google - - - - - - - - - - - - - - - -+

Hello,
When I try to protect a PDF document.
But I want to let me copy, read and print, not let me print, even the demo
\ hmg.3.4.2 \ SAMPLES \ hPDF \ HMG_HPDF \
Nor can print the pdf it creates.

SELECT HPDFDOC 'HMG_HPDF_Doc.pdf' TO lSuccess papersize HPDF_PAPER_A4
SET HPDFDOC COMPRESS ALL
SET HPDFDOC PASSWORD OWNER "password"
SET HPDFDOC PAGEMODE TO OUTLINE
SET HPDFINFO AUTHOR TO 'S. Rathinagiri'
SET HPDFINFO CREATOR TO 'S. Rathinagiri'
SET HPDFINFO TITLE TO 'HMG_HPDF Documentation'
SET HPDFINFO SUBJECT TO 'Documentation of LibHaru/HPDF Library in HMG'
SET HPDFINFO KEYWORDS TO 'HMG, HPDF, Documentation, LibHaru, Harbour, MiniGUI'
SET HPDFINFO DATECREATED TO date() TIME time()
SET HPDFDOC PERMISSION TO READ
SET HPDFDOC PERMISSION TO PRINT
SET HPDFDOC PERMISSION TO COPY


What should I do??
Skydone Solutions
www.skydone.com
User avatar
AidTIC
Posts: 117
Joined: Mon Apr 22, 2013 8:29 am
DBs Used: DBF
Contact:

Re: SET HPDFDOC PERMISSION TO PRINT

Post by AidTIC »

Alguien ha podido comprobarlo?? :?
Skydone Solutions
www.skydone.com
User avatar
AidTIC
Posts: 117
Joined: Mon Apr 22, 2013 8:29 am
DBs Used: DBF
Contact:

Re: SET HPDFDOC PERMISSION TO PRINT

Post by AidTIC »

solucionado

Tras varias pruebas lo he solucionado cambiando el orden:
SELECT HPDFDOC 'HMG_HPDF_Doc.pdf' TO lSuccess papersize HPDF_PAPER_A4
SET HPDFDOC COMPRESS ALL
SET HPDFDOC PASSWORD OWNER "password"
SET HPDFDOC PERMISSION TO COPY
SET HPDFDOC PERMISSION TO PRINT
// SET HPDFDOC PERMISSION TO READ

SET HPDFDOC PAGEMODE TO OUTLINE
SET HPDFINFO AUTHOR TO 'S. Rathinagiri'
SET HPDFINFO CREATOR TO 'S. Rathinagiri'
SET HPDFINFO TITLE TO 'HMG_HPDF Documentation'
SET HPDFINFO SUBJECT TO 'Documentation of LibHaru/HPDF Library in HMG'
SET HPDFINFO KEYWORDS TO 'HMG, HPDF, Documentation, LibHaru, Harbour, MiniGUI'
SET HPDFINFO DATECREATED TO date() TIME time()


Ahora mis PDF, estan protegidos para edicion, pero se pueden imprimir y seleccionar los datos para copiar.


GRACIAS :D
Skydone Solutions
www.skydone.com
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: SET HPDFDOC PERMISSION TO PRINT

Post by andyglezl »

Gracias AidTIC por la info
Ha habido varios detalles de ese tipo, que con solo cambiar el orden de algún comando, se soluciona.
------------------------------------------------------------------------------------------------------------------------
Thanks for the info AidTIC
There have been several such details, that just change the order of a command, it is solved.
Andrés González López
Desde Guadalajara, Jalisco. México.
Post Reply