문제

This is driving me completely and utterly nuts... Basically I have a PDF form generated by TCPDF and want to set the user rights (using setUserRights) for that PDF so that users can save the form with the data they inputted. The TCPDF manual isn't really helpful at this particular point and states that you need a "signing certificate" to enable saving and other extended features.

So I generated an SSL certificate and private using OpenSSL and "imported" them using the setSignature method. Without using that method Adobe Reader moans:

This document enabled extended features in Adobe Reader. The document has been changed since it was created and use of extended features is no longer available. Please contact the author for the original version of this document.

When the required setSignature method is set that message doesn't appear, but Reader still can't save the PDF.

$this->Pdf->setSignature("file:///certificates/forms.crt", "file:///certificates/forms.key", "somepassword", "", 3);

And then I set full user rights:

$this->Pdf->setUserRights(true, '/FullSave', '/Create/Delete/Modify/Copy/Import/Export', '/Add/Delete/FillIn/Import/Export/SubmitStandalone/SpawnTemplate', '/Modify');

Has anybody worked with this particular feature and is able to point out what I'm doing wrong here?

Update

TCPDF includes an example using a demo certificate. But it's unclear to me how to obtain such a certificate. Using the demo version still doesn't allow me to set the user's rights properly.

도움이 되었습니까?

해결책 3

예, 주로 표준 편의성이며 부분 적용을 수행 할 수있는 유연성입니다.카레의 기능은 OCAML에서 관용적이며 컴파일러는 Tupled 함수보다 다소 더 잘 최적화 할 수 있습니다 (반면 SML 컴파일러는 일반적으로 튜플을 위해 최적화).

튜닝의 판단은 당신이 언급 한 인수 / 결과 대칭 (특히 기능을 구성 할 때 특히 유용합니다)이며, 아마도주의 사항은 최소한 적어도 비 기능적 세계에서 오는 사람들에게는

다른 팁

이방성 필터링, OpenGL 및 그래픽 하드웨어가 구현 하시겠습니까?r ripmaps를 사용하십시오.텍스처를 많이 샘플링하여 작동합니다.MIPPAPS는 많이 에 도움이되며 현재 (적절한 미크 필터가 사용되는 경우)

프로그램은 이방성 필터링을 사용하지 않습니다.개별 텍스처는 개별 텍스처가 MIPMAP 필터링을 사용할 수 있거나 사용하지 않을 수 있으므로 개별 텍스처가 이방성 필터링 될 수 있습니다.따라서 프로그램을 사용하고 있는지 알려주는 것에 대한 귀하의 질문은 의미가 없습니다.

개별 텍스처는 비 -110 개의 최대 이방성 값을 지정하여 해당 텍스처를 켜면이를 사용합니다.드라이버는 제어판 설정을 사용하여 특정 조건에서 강제로 강요 할 수 있지만, 당신이 그것에 대해 할 수있는 것은 아무것도 없습니다.

Have you tried without the setUserRights call? According to the docs that last parameter sets the rights. Perhaps the second call modifies the pdf and thus the signature no longer matches the PDF because it's changed?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top