Page 1 of 1

SET HPDFDOC PERMISSION TO PRINT

Posted: Thu Dec 03, 2015 3:58 pm
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??

Re: SET HPDFDOC PERMISSION TO PRINT

Posted: Tue Dec 15, 2015 6:04 pm
by AidTIC
Alguien ha podido comprobarlo?? :?

Re: SET HPDFDOC PERMISSION TO PRINT

Posted: Tue Dec 15, 2015 6:31 pm
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

Re: SET HPDFDOC PERMISSION TO PRINT

Posted: Tue Dec 15, 2015 8:29 pm
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.