pdf permission mystrery

classic Classic list List threaded Threaded
54 messages Options
123
Reply | Threaded
Open this post in threaded view
|

pdf permission mystrery

list
I'm having some issues getting password protected pdfs to work.

The pdf object is created like this:

                                var( 'pdf' = pdf_doc(
                                        -size = $pagetype,
                                        -file = $pdfExportFilePath + $pdfExportFileName,
                                        -margins = array( 0.0, 0.0, 0.0, 0.0),
                                        -encryptstrong,
                                        -permissions = 'Print, Copy, Annotate',
                                        -userpassword = '1',
                                        -OwnerPassword = '2'),
                                        );

When I open it in Preview it works as long as I use the userpassword but it wont allow me to open with the ownerpassword.

If I try to open the pdf in an application that allow editing neither of the passwords work.

This is pdfs generated by Lasso 8.5.5 on a Windows server.
Using Bils latest adjusted pdf.jar.

HDB
Jolle
--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

stevepiercy
On 4/6/10 at 1:24 PM, [hidden email] (Jolle Carlestam) pronounced:

>I'm having some issues getting password protected pdfs to work.
>
>The pdf object is created like this:
>
>var( 'pdf' = pdf_doc(
>-size = $pagetype,
>-file = $pdfExportFilePath + $pdfExportFileName,
>-margins = array( 0.0, 0.0, 0.0, 0.0),
>-encryptstrong,
>-permissions = 'Print, Copy, Annotate',
>-userpassword = '1',
>-OwnerPassword = '2'),
>);
>
>When I open it in Preview it works as long as I use the
>userpassword but it wont allow me to open with the ownerpassword.

I get the same results.

>If I try to open the pdf in an application that allow editing
>neither of the passwords work.

Ditto.

I think this is an issue with either the encryption used in the
PDF tags or the available encryption on the OS.  I tested with
Adobe Acrobat Pro 9.3.1.  I was able to view the file with "1",
but not with "2".  When I commented out -encryptstrong, then I
was able to open it with either password.

So time to dig into the java source again.  meh.

/Applications/Lasso Professional 8/Documentation/3 - Language
Guide/Examples/LJAPI/Tags/PDFType/Source/PDFDoc.java:line 461
-----------------------------------------------------------------
     public int setEncrypt(byte[] userPwd, byte[] ownerPwd, int
permissions, boolean strong)
     {
         if (pdfwriter != null)
         {
             try
             {
                 pdfwriter.setEncryption(userPwd, ownerPwd,
permissions, strong);
             }

Note the variable 'strong' is typed as boolean, when it should
be one of the following:

encryptionType - the type of encryption. It can be one of
STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or
ENCRYPTION_AES128. Optionally DO_NOT_ENCRYPT_METADATA can be
ored to output the metadata in cleartext

http://api.itextpdf.com/com/itextpdf/text/pdf/interfaces/PdfEncryptionSettings.html

So in the same java file, this needs to have some conditional added:

/Applications/Lasso Professional 8/Documentation/3 - Language
Guide/Examples/LJAPI/Tags/PDFType/Source/PDFTag.java:line 300
---------------------------------------------------------------
         //optionally get -encryptStrong parameter
         boolean bStrongEnc =
lasso.tagParamIsDefined("-encryptStrong") == ERR_NOERR;

         if(bStrongEnc){
             bStrongEnc = 'STANDARD_ENCRYPTION_128';
         }

I think that should do it.  Maybe a java guru can help us
connect the dots.

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

list
I'm using the gurus adjusted pdf.jar so I'm dependent on his wisdom anyhow. Can't adjust the pdf.jar myself since I don't have access to his already adjusted source code.

As if I'd try something in the pdf.jar anyhow... :-)

But a good spotting from you Steve, thanks!

HDB
Jolle

6 apr 2010 kl. 14.25 skrev Steve Piercy - Web Site Builder:

> I think that should do it.  Maybe a java guru can help us connect the dots.


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

dguardiola
In reply to this post by list
Jolle

you can also use the pdftk command line + the shell tag upon an  
existing PDf file, that's what I do
but you need to save the file before serving it...


Le 6 avr. 10 à 13:24, Jolle Carlestam a écrit :

> I'm having some issues getting password protected pdfs to work.
>
> The pdf object is created like this:
>
> var( 'pdf' = pdf_doc(
> -size = $pagetype,
> -file = $pdfExportFilePath + $pdfExportFileName,
> -margins = array( 0.0, 0.0, 0.0, 0.0),
> -encryptstrong,
> -permissions = 'Print, Copy, Annotate',
> -userpassword = '1',
> -OwnerPassword = '2'),
> );
>
> When I open it in Preview it works as long as I use the userpassword  
> but it wont allow me to open with the ownerpassword.
>
> If I try to open the pdf in an application that allow editing  
> neither of the passwords work.
>
> This is pdfs generated by Lasso 8.5.5 on a Windows server.
> Using Bils latest adjusted pdf.jar.
>
> HDB
> Jolle
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

--
Dominique Guardiola, QUINODE
http://www.quinode.fr/
• Tel : 04.27.86.84.37
• GSM : 06.15.13.22.27





--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

Bil Corry-3
In reply to this post by stevepiercy
Steve Piercy - Web Site Builder wrote on 4/6/2010 5:25 AM:
> I think this is an issue with either the encryption used in the PDF tags
> or the available encryption on the OS.  I tested with Adobe Acrobat Pro
> 9.3.1.  I was able to view the file with "1", but not with "2".  When I
> commented out -encryptstrong, then I was able to open it with either
> password.

There's a bug in iText 1.4.1 library where the owner password is set to blank on 128-bit encryption (strong).  It's fixed in iText 1.4.3:

        http://itextpdf.com/history.php?branch=history.10&node=14#143

Try downloading 1.4.3 and/or maybe 1.4.8:

        http://sourceforge.net/projects/itext/files/#node-51-1

Then remove the old one (path may vary depending on OS):

        C:\Program Files\OmniPilot Software\Lasso Professional 8\JavaLibraries\itext-1.4.1.jar

And drop in your new one and restart Lasso.

Does it work?


> encryptionType - the type of encryption. It can be one of
> STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or ENCRYPTION_AES128.
> Optionally DO_NOT_ENCRYPT_METADATA can be ored to output the metadata in
> cleartext
>
> http://api.itextpdf.com/com/itextpdf/text/pdf/interfaces/PdfEncryptionSettings.html

That's for a newer version of iText, the one Lasso uses doesn't have those options.


- Bil

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

Rick Draper-2
Thanks, Bil.

I have loaded 1.4.8 and so far can't see anything that has been broken by
doing so.  That certainly fixed the owner password issue.

What version of iText does Lasso 9 use?

Very best regards,

Rick

-----Original Message-----
From: Lasso Talk [mailto:[hidden email]] On Behalf Of Bil Corry
Sent: Wednesday, 7 April 2010 5:16 AM
To: Lasso Talk
Subject: Re: pdf permission mystrery

Steve Piercy - Web Site Builder wrote on 4/6/2010 5:25 AM:
> I think this is an issue with either the encryption used in the PDF
> tags or the available encryption on the OS.  I tested with Adobe
> Acrobat Pro 9.3.1.  I was able to view the file with "1", but not with
> "2".  When I commented out -encryptstrong, then I was able to open it
> with either password.

There's a bug in iText 1.4.1 library where the owner password is set to
blank on 128-bit encryption (strong).  It's fixed in iText 1.4.3:

        http://itextpdf.com/history.php?branch=history.10&node=14#143

Try downloading 1.4.3 and/or maybe 1.4.8:

        http://sourceforge.net/projects/itext/files/#node-51-1

Then remove the old one (path may vary depending on OS):

        C:\Program Files\OmniPilot Software\Lasso Professional
8\JavaLibraries\itext-1.4.1.jar

And drop in your new one and restart Lasso.

Does it work?


> encryptionType - the type of encryption. It can be one of
> STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or ENCRYPTION_AES128.
> Optionally DO_NOT_ENCRYPT_METADATA can be ored to output the metadata
> in cleartext
>
> http://api.itextpdf.com/com/itextpdf/text/pdf/interfaces/PdfEncryption
> Settings.html

That's for a newer version of iText, the one Lasso uses doesn't have those
options.


- Bil




--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

Bil Corry-3
Rick Draper wrote on 4/6/2010 2:42 PM:
> I have loaded 1.4.8 and so far can't see anything that has been broken by
> doing so.  That certainly fixed the owner password issue.

You'd want to run Lasso in console mode and watch for Java errors (that's the only place you'll see them).  If you run through your application creating PDFs and don't see any, then it's probably safe.

 
> What version of iText does Lasso 9 use?

Not sure, but my guess is it's the same version as what LP8 uses -- the newest version of iText doesn't match up very well with the current PDF tags (e.g. being able to output PDFs and RDFs from the same object isn't supported anymore in the newest version of iText).

Given the numerous changes to the iText library, it'd be better to create a new PDF tag that better mimics/implements the latest iText library, and fix all the orientation issues to make them consistent ;)


- Bil

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

stevepiercy
In reply to this post by Rick Draper-2
On my system:
/Applications/Lasso9Beta/JavaLibraries/itext-1.4.8.jar

With this extra:
/Applications/Lasso9Beta/JavaLibraries/itext-hyph-xml.jar
which I assume is hyphenation.

--steve


On 4/7/10 at 7:42 AM, [hidden email] (Rick Draper) pronounced:

> Thanks, Bil.
>
> I have loaded 1.4.8 and so far can't see anything that has been broken by
> doing so.  That certainly fixed the owner password issue.
>
> What version of iText does Lasso 9 use?
>
> Very best regards,
>
> Rick
>
> -----Original Message-----
> From: Lasso Talk [mailto:[hidden email]] On Behalf Of Bil Corry
> Sent: Wednesday, 7 April 2010 5:16 AM
> To: Lasso Talk
> Subject: Re: pdf permission mystrery
>
> Steve Piercy - Web Site Builder wrote on 4/6/2010 5:25 AM:
> > I think this is an issue with either the encryption used in the PDF
> > tags or the available encryption on the OS.  I tested with Adobe
> > Acrobat Pro 9.3.1.  I was able to view the file with "1", but not with
> > "2".  When I commented out -encryptstrong, then I was able to open it
> > with either password.
>
> There's a bug in iText 1.4.1 library where the owner password is set to
> blank on 128-bit encryption (strong).  It's fixed in iText 1.4.3:
>
>   http://itextpdf.com/history.php?branch=history.10&node=14#143
>
> Try downloading 1.4.3 and/or maybe 1.4.8:
>
>   http://sourceforge.net/projects/itext/files/#node-51-1
>
> Then remove the old one (path may vary depending on OS):
>
>   C:\Program Files\OmniPilot Software\Lasso Professional
> 8\JavaLibraries\itext-1.4.1.jar
>
> And drop in your new one and restart Lasso.
>
> Does it work?
>
>
> > encryptionType - the type of encryption. It can be one of
> > STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or ENCRYPTION_AES128.
> > Optionally DO_NOT_ENCRYPT_METADATA can be ored to output the metadata
> > in cleartext
> >
> > http://api.itextpdf.com/com/itextpdf/text/pdf/interfaces/PdfEncryption
> > Settings.html
>
> That's for a newer version of iText, the one Lasso uses doesn't have those
> options.
>
>
> - Bil
>
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy               Web Site Builder               Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

Rick Draper-2
In reply to this post by Bil Corry-3
 
> You'd want to run Lasso in console mode and watch for Java errors

Thanks Bil.

A newbie question, but I have never had cause to do so - how does one run in
console mode in  a Windows environment?

Very best regards,

Rick



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

Bil Corry-3
Rick Draper wrote on 4/6/2010 7:55 PM:
> A newbie question, but I have never had cause to do so - how does one run in
> console mode in  a Windows environment?

First, stop LassoService

        Start > Run... > net stop lasso8service

Then, launch it by double-clicking the application:

        C:\Program Files\OmniPilot Software\Lasso Professional 8\LassoService.exe

That should pop open a console window, closing the windows stops Lasso.  To start LassoService again:

        Start > Run... > net start lasso8service


- Bil

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

list
In reply to this post by stevepiercy
Note that it's not possible to use the pdf tags in Lasso 9. This has been reported to Kyle for well over 6 month but he's so far given no response at all.

HDB
Jolle

7 apr 2010 kl. 01.09 skrev Steve Piercy - Web Site Builder:

> On my system:
> /Applications/Lasso9Beta/JavaLibraries/itext-1.4.8.jar
>
> With this extra:
> /Applications/Lasso9Beta/JavaLibraries/itext-hyph-xml.jar
> which I assume is hyphenation.
>
> --steve
>
>
> On 4/7/10 at 7:42 AM, [hidden email] (Rick Draper) pronounced:
>
>> Thanks, Bil.
>>
>> I have loaded 1.4.8 and so far can't see anything that has been broken by
>> doing so.  That certainly fixed the owner password issue.
>>
>> What version of iText does Lasso 9 use?
>>
>> Very best regards,
>>
>> Rick
>>
>> -----Original Message-----
>> From: Lasso Talk [mailto:[hidden email]] On Behalf Of Bil Corry
>> Sent: Wednesday, 7 April 2010 5:16 AM
>> To: Lasso Talk
>> Subject: Re: pdf permission mystrery
>>
>> Steve Piercy - Web Site Builder wrote on 4/6/2010 5:25 AM:
>>> I think this is an issue with either the encryption used in the PDF
>>> tags or the available encryption on the OS.  I tested with Adobe
>>> Acrobat Pro 9.3.1.  I was able to view the file with "1", but not with
>>> "2".  When I commented out -encryptstrong, then I was able to open it
>>> with either password.
>>
>> There's a bug in iText 1.4.1 library where the owner password is set to
>> blank on 128-bit encryption (strong).  It's fixed in iText 1.4.3:
>>
>>  http://itextpdf.com/history.php?branch=history.10&node=14#143
>>
>> Try downloading 1.4.3 and/or maybe 1.4.8:
>>
>>  http://sourceforge.net/projects/itext/files/#node-51-1
>>
>> Then remove the old one (path may vary depending on OS):
>>
>>  C:\Program Files\OmniPilot Software\Lasso Professional
>> 8\JavaLibraries\itext-1.4.1.jar
>>
>> And drop in your new one and restart Lasso.
>>
>> Does it work?
>>
>>
>>> encryptionType - the type of encryption. It can be one of
>>> STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or ENCRYPTION_AES128.
>>> Optionally DO_NOT_ENCRYPT_METADATA can be ored to output the metadata
>>> in cleartext
>>>
>>> http://api.itextpdf.com/com/itextpdf/text/pdf/interfaces/PdfEncryption
>>> Settings.html
>>
>> That's for a newer version of iText, the one Lasso uses doesn't have those
>> options.
>>
>>
>> - Bil
>>
>>
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy               Web Site Builder               Soquel, CA
> <[hidden email]>                  <http://www.StevePiercy.com/>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>
>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

Rick Draper-2
In reply to this post by Bil Corry-3
Thanks, Bil.

No sign of any Java errors - all looking good with 1.4.8.

Very best regards,

Rick

-----Original Message-----
From: Lasso Talk [mailto:[hidden email]] On Behalf Of Bil Corry
Sent: Wednesday, 7 April 2010 1:19 PM
To: Lasso Talk
Subject: Re: pdf permission mystrery

Rick Draper wrote on 4/6/2010 7:55 PM:
> A newbie question, but I have never had cause to do so - how does one
> run in console mode in  a Windows environment?

First, stop LassoService

        Start > Run... > net stop lasso8service

Then, launch it by double-clicking the application:

        C:\Program Files\OmniPilot Software\Lasso Professional
8\LassoService.exe

That should pop open a console window, closing the windows stops Lasso.  To
start LassoService again:

        Start > Run... > net start lasso8service


- Bil

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search
the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/






--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

Bil Corry-3
In reply to this post by list
Jolle Carlestam wrote on 4/6/2010 5:34 AM:
> Can't adjust the pdf.jar myself since I don't have access to his already adjusted source code.

The latest source to the PDF tags is here:

        http://www.corry.biz/lasso/src-pdf7.zip


- Bil

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

stevepiercy
On 4/6/10 at 11:50 PM, [hidden email] (Bil Corry) pronounced:

>Jolle Carlestam wrote on 4/6/2010 5:34 AM:
>>Can't adjust the pdf.jar myself since I don't have access to his already adjusted source
>code.
>
>The latest source to the PDF tags is here:
>
>http://www.corry.biz/lasso/src-pdf7.zip

Thanks for sharing that.

Would you consider putting that into a Google Code project (or
any other provider) so we can use SVN?

http://code.google.com/p/support/wiki/GettingStarted

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

stevepiercy
In reply to this post by Bil Corry-3
On 4/6/10 at 4:03 PM, [hidden email] (Bil Corry) pronounced:

>>What version of iText does Lasso 9 use?
>
>Not sure, but my guess is it's the same version as what LP8
>uses -- the newest version of iText doesn't match up very well
>with the current PDF tags (e.g. being able to output PDFs and
>RDFs from the same object isn't supported anymore in the newest
>version of iText).
>
>Given the numerous changes to the iText library, it'd be better
>to create a new PDF tag that better mimics/implements the
>latest iText library, and fix all the orientation issues to
>make them consistent ;)

The latest version of iText seems to have gone through major
improvements and they split out RTF (I think that was the TLA
you meant to use) into a separate project.
http://sourceforge.net/mailarchive/forum.php?thread_name=4B1CDEC4.1000600%40lowagie.com&forum_name=itext-releases

This would be an opportune time to rewrite the PDF tags.

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: pdf permission mystrery

stevepiercy
In reply to this post by Bil Corry-3
On 4/6/10 at 12:16 PM, [hidden email] (Bil Corry) pronounced:

>There's a bug in iText 1.4.1 library where the owner password
>is set to blank on 128-bit encryption (strong).  It's fixed in
>iText 1.4.3:
>
>http://itextpdf.com/history.php?branch=history.10&node=14#143
>
>Try downloading 1.4.3 and/or maybe 1.4.8:
>
>http://sourceforge.net/projects/itext/files/#node-51-1
>
>Then remove the old one (path may vary depending on OS):
>
>C:\Program Files\OmniPilot Software\Lasso Professional 8\JavaLibraries\itext-1.4.1.jar
>
>And drop in your new one and restart Lasso.
>
>Does it work?

I went with 1.4.8 and it works.  I didn't see any errors in
Lasso Console and the functions I tested were fine.

>>encryptionType - the type of encryption. It can be one of
>>STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or ENCRYPTION_AES128.
>>Optionally DO_NOT_ENCRYPT_METADATA can be ored to output the metadata in
>>cleartext
>>
>>http://api.itextpdf.com/com/itextpdf/text/pdf/interfaces/PdfEncryptionSettings.html
>
>That's for a newer version of iText, the one Lasso uses doesn't have those options.

*sigh*  Yeah, it's missing a lot of nice options that later
versions of iText have.

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

file_listdirectory - directories outside of web root

Brett Harvey
Is it possible to have file_listdirectory search outside of the web
root?  I believe it's a permissions  thing, yes?  if so, where does
one set it to allow it?   I've been searching but can't find it.

Thanks!

Brett

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: file_listdirectory - directories outside of web root

jasonhuck
In serveradmin, you can add additional file paths for the site in question.

Then in siteadmin, you have to assign permissions to Lasso users for
those paths.


- jason



On Wed, Apr 7, 2010 at 10:46 AM, Brett Harvey
<[hidden email]> wrote:

> Is it possible to have file_listdirectory search outside of the web root?  I
> believe it's a permissions  thing, yes?  if so, where does one set it to
> allow it?   I've been searching but can't find it.
>
> Thanks!
>
> Brett
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
tagSwap.net :: Open Source Lasso Code
<http://tagSwap.net/>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: file_listdirectory - directories outside of web root

Brett Harvey
Thanks Jason!

Brett

>In serveradmin, you can add additional file paths for the site in question.
>
>Then in siteadmin, you have to assign permissions to Lasso users for
>those paths.
>
>
>- jason
>
>
>
>On Wed, Apr 7, 2010 at 10:46 AM, Brett Harvey
><[hidden email]> wrote:
>>  Is it possible to have file_listdirectory search outside of the web root?  I
>>  believe it's a permissions  thing, yes?  if so, where does one set it to
>>  allow it?   I've been searching but can't find it.
>>
>>  Thanks!
>>
>>  Brett
>>
>>  --
>>  This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>  Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>  Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>>
>
>
>
>--
>tagSwap.net :: Open Source Lasso Code
><http://tagSwap.net/>
>
>--
>This list is a free service of LassoSoft: http://www.LassoSoft.com/
>Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>Manage your subscription: http://www.ListSearch.com/Lasso/


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: file_listdirectory - directories outside of web root

Brian Loomis-3
For those of you using version control.  This is an important technique (manipulating files outside the webroot) to implement because you can store all user uploaded content outside of the web root, and then you can keep your repo small and keep user uploaded content elsewhere on the server with a separate backup scheme.

Ideally you only want application code and application graphics in a source code repository, it's better not to have to set up the repo to ignore stuff that's in the same root.

Also if you followed Huck's talk on speeding up sites IIRC from Chicago, this technique also allows you to put images and content on a separate domain.

Brian
 
On Apr 7, 2010, at 8:55 AM, Brett Harvey wrote:

> Thanks Jason!
>
> Brett
>
>> In serveradmin, you can add additional file paths for the site in question.
>>
>> Then in siteadmin, you have to assign permissions to Lasso users for
>> those paths.
>>
>>
>> - jason
>>
>>
>>
>> On Wed, Apr 7, 2010 at 10:46 AM, Brett Harvey
>> <[hidden email]> wrote:
>>> Is it possible to have file_listdirectory search outside of the web root?  I
>>> believe it's a permissions  thing, yes?  if so, where does one set it to
>>> allow it?   I've been searching but can't find it.
>>>
>>> Thanks!
>>>
>>> Brett
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>>
>>>
>>
>>
>>
>> --
>> tagSwap.net :: Open Source Lasso Code
>> <http://tagSwap.net/>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

Brian Loomis
http://www.virtualrelations.us
(208) 639-2569 - 208 NEW BLOX
-- email checked daily --


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


123