Re: Breaking out a PDF

2016-09-23 Thread Kay C Lan
On Tue, Sep 20, 2016 at 1:44 AM, Skip Kimpel  wrote:
> 200+ pages combined into 1
> PDF) that are 1 pager's (8.5x11) and each page in the PDF needs to be
> broken out into it's own file.
>
For those on OS X you can get LC to talk to an Automator workflow that
uses the cryptically named 'Split PDF' to do this for you.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Breaking out a PDF

2016-09-19 Thread Roger Eller
On Mon, Sep 19, 2016 at 3:56 PM, Roger Eller 
wrote:

> On Mon, Sep 19, 2016 at 3:26 PM, Dr. Hawkins  wrote:
>
>> On Mon, Sep 19, 2016 at 10:44 AM, Skip Kimpel 
>> wrote:
>>
>> > They are not created by me a bunch of forms (200+ pages combined
>> into 1
>> > PDF) that are 1 pager's (8.5x11) and each page in the PDF needs to be
>> > broken out into it's own file.
>> >
>>
>> Hmm, another possibility:  look at the packages pdftools, pdftk, and
>> pdfjam.
>>
>> they all have ways of doing the split for you, and you could use SHELL()
>> to
>> use them.
>>
>>
>> --
>> Dr. Richard E. Hawkins, Esq.
>> (702) 508-8462
>>
>
> I'm guessing that Skip is using Windows.  I don't know if there is a
> platform requirement though.
>
> ~Roger
>
>
>
PDFJam looks great for a linux solution.

http://txt.arboreus.com/2012/12/19/split-and-merge-pdf-files.html
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Breaking out a PDF

2016-09-19 Thread Roger Eller
On Mon, Sep 19, 2016 at 3:26 PM, Dr. Hawkins  wrote:

> On Mon, Sep 19, 2016 at 10:44 AM, Skip Kimpel 
> wrote:
>
> > They are not created by me a bunch of forms (200+ pages combined
> into 1
> > PDF) that are 1 pager's (8.5x11) and each page in the PDF needs to be
> > broken out into it's own file.
> >
>
> Hmm, another possibility:  look at the packages pdftools, pdftk, and
> pdfjam.
>
> they all have ways of doing the split for you, and you could use SHELL() to
> use them.
>
>
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
>

I'm guessing that Skip is using Windows.  I don't know if there is a
platform requirement though.

~Roger
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Breaking out a PDF

2016-09-19 Thread Dr. Hawkins
On Mon, Sep 19, 2016 at 10:44 AM, Skip Kimpel  wrote:

> They are not created by me a bunch of forms (200+ pages combined into 1
> PDF) that are 1 pager's (8.5x11) and each page in the PDF needs to be
> broken out into it's own file.
>

Hmm, another possibility:  look at the packages pdftools, pdftk, and pdfjam.

they all have ways of doing the split for you, and you could use SHELL() to
use them.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Breaking out a PDF

2016-09-19 Thread Roger Eller
LOL!

The content of my example is one line:   '20 122 Td (Hello World) Tj"
The rest is mostly static prologue setup to make it official.

You can script Adobe Acrobat Professional to split or combine pages.

~Roger



Roger Eller
Graphics Systems Analyst

803 North Maple Street P: 864.967.1625
Simpsonville, SC 29681 C: 864.908.0337
SealedAir.com  roger.e.el...@sealedair.com




On Mon, Sep 19, 2016 at 1:44 PM, Skip Kimpel  wrote:

> Roger,
>
> They are not created by me a bunch of forms (200+ pages combined into 1
> PDF) that are 1 pager's (8.5x11) and each page in the PDF needs to be
> broken out into it's own file.
>
> I am scared of your example :)
>
> SKIP
>
> On Mon, Sep 19, 2016 at 1:37 PM, Roger Eller 
> wrote:
>
> > Are these PDFs created by you with LiveCode, or coming from other unknown
> > or varying programs?  Is is all text, or a mixture of content?
> >
> > A PDF built to the older PDF-1.4 spec, is fairly simple to construct from
> > scratch using just text.  Example: Paste the following into notepad, and
> > save it.  Change the extension to .pdf.  MediaBox is the page size in
> > points (Points are roughly 1/72 of an inch).  All measurements are in
> > points.
> >
> >
> > %PDF-1.4
> > 1 0 obj
> > <<
> > /Type /Catalog
> > /Pages 3 0 R
> > /Outlines 2 0 R
> > >>
> > endobj
> > 2 0 obj
> > <<
> > /Type /Outlines
> > /Count 0
> > >>
> > endobj
> > 3 0 obj
> > <<
> > /Type /Pages
> > /Count 1
> > /Kids [ 4 0 R ]
> > >>
> > endobj
> > 4 0 obj
> > <<
> > /Type /Page
> > /Parent 3 0 R
> > /Resources << /Font << /F1 7 0 R >> /ProcSet 6 0 R >>
> > /MediaBox [0 0 366 160]
> > /Contents 5 0 R
> > >>
> > endobj
> > 5 0 obj
> > <<
> > /Length 80
> > >>
> > stream
> > 1 w
> > 0 160 m
> > 0 0 l
> > 366 0 l
> > 366 160 l
> > 0 160 l
> > s
> > BT
> > /F1 7.5 Tf
> > 20 122 Td (Hello World) Tj
> > ET
> > endstream
> > endobj
> > 6 0 obj
> > [ /PDF /Text ]
> > endobj
> > 7 0 obj
> > <<
> > /Type /Font
> > /Subtype /TrueType
> > /Name /F1
> > /BaseFont /CourierNew,Bold
> > /Encoding /WinAnsiEncoding
> > >>
> > endobj
> > xref
> > 0 8
> > 00 65535 f
> > 09 0 n
> > 74 0 n
> > 000120 0 n
> > 000179 0 n
> > 000322 0 n
> > 000415 0 n
> > 000445 0 n
> > trailer
> > <<
> > /Size 8
> > /Root 1 0 R
> > >>
> > startxref
> > 553
> > %%EOF
> >
> >
> >
> > Roger Eller
> > Graphics Systems Analyst
> >
> > 803 North Maple Street P: 864.967.1625
> > Simpsonville, SC 29681 C: 864.908.0337
> > SealedAir.com  roger.e.el...@sealedair.com
> > 
> >
> >
> >
> > On Mon, Sep 19, 2016 at 1:27 PM, Skip Kimpel 
> wrote:
> >
> > > Thanks for the input.  Kind of what I thought but was looking for some
> > > feedback to confirm this before I started down that path.
> > >
> > > SKIP
> > >
> > > On Mon, Sep 19, 2016 at 12:47 PM, Dr. Hawkins 
> wrote:
> > >
> > > > On Mon, Sep 19, 2016 at 8:13 AM, Skip Kimpel 
> > > wrote:
> > > >
> > > > > Has anybody taken a PDF, read it into LC and then split that PDF
> and
> > > > > created multiple PDF documents from it?  Looking to create a
> > > streamlined
> > > > > way of doing this an a continuous basis.
> > > > >
> > > >
> > > > Playing with PDF is a nightmare.
> > > >
> > > > I've looked at it, ad there are two many inconsistent ways to write a
> > > pdf.
> > > >
> > > > As far as I can tell, there are no two programs that are actually
> > > > compatible with one another in handling pdfs.
> > > >
> > > >
> > > > --
> > > > Dr. Richard E. Hawkins, Esq.
> > > > (702) 508-8462
> > > > ___
> > > > use-livecode mailing list
> > > > use-livecode@lists.runrev.com
> > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > subscription preferences:
> > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > >
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Breaking out a PDF

2016-09-19 Thread Skip Kimpel
Roger,

They are not created by me a bunch of forms (200+ pages combined into 1
PDF) that are 1 pager's (8.5x11) and each page in the PDF needs to be
broken out into it's own file.

I am scared of your example :)

SKIP

On Mon, Sep 19, 2016 at 1:37 PM, Roger Eller 
wrote:

> Are these PDFs created by you with LiveCode, or coming from other unknown
> or varying programs?  Is is all text, or a mixture of content?
>
> A PDF built to the older PDF-1.4 spec, is fairly simple to construct from
> scratch using just text.  Example: Paste the following into notepad, and
> save it.  Change the extension to .pdf.  MediaBox is the page size in
> points (Points are roughly 1/72 of an inch).  All measurements are in
> points.
>
>
> %PDF-1.4
> 1 0 obj
> <<
> /Type /Catalog
> /Pages 3 0 R
> /Outlines 2 0 R
> >>
> endobj
> 2 0 obj
> <<
> /Type /Outlines
> /Count 0
> >>
> endobj
> 3 0 obj
> <<
> /Type /Pages
> /Count 1
> /Kids [ 4 0 R ]
> >>
> endobj
> 4 0 obj
> <<
> /Type /Page
> /Parent 3 0 R
> /Resources << /Font << /F1 7 0 R >> /ProcSet 6 0 R >>
> /MediaBox [0 0 366 160]
> /Contents 5 0 R
> >>
> endobj
> 5 0 obj
> <<
> /Length 80
> >>
> stream
> 1 w
> 0 160 m
> 0 0 l
> 366 0 l
> 366 160 l
> 0 160 l
> s
> BT
> /F1 7.5 Tf
> 20 122 Td (Hello World) Tj
> ET
> endstream
> endobj
> 6 0 obj
> [ /PDF /Text ]
> endobj
> 7 0 obj
> <<
> /Type /Font
> /Subtype /TrueType
> /Name /F1
> /BaseFont /CourierNew,Bold
> /Encoding /WinAnsiEncoding
> >>
> endobj
> xref
> 0 8
> 00 65535 f
> 09 0 n
> 74 0 n
> 000120 0 n
> 000179 0 n
> 000322 0 n
> 000415 0 n
> 000445 0 n
> trailer
> <<
> /Size 8
> /Root 1 0 R
> >>
> startxref
> 553
> %%EOF
>
>
>
> Roger Eller
> Graphics Systems Analyst
>
> 803 North Maple Street P: 864.967.1625
> Simpsonville, SC 29681 C: 864.908.0337
> SealedAir.com  roger.e.el...@sealedair.com
> 
>
>
>
> On Mon, Sep 19, 2016 at 1:27 PM, Skip Kimpel  wrote:
>
> > Thanks for the input.  Kind of what I thought but was looking for some
> > feedback to confirm this before I started down that path.
> >
> > SKIP
> >
> > On Mon, Sep 19, 2016 at 12:47 PM, Dr. Hawkins  wrote:
> >
> > > On Mon, Sep 19, 2016 at 8:13 AM, Skip Kimpel 
> > wrote:
> > >
> > > > Has anybody taken a PDF, read it into LC and then split that PDF and
> > > > created multiple PDF documents from it?  Looking to create a
> > streamlined
> > > > way of doing this an a continuous basis.
> > > >
> > >
> > > Playing with PDF is a nightmare.
> > >
> > > I've looked at it, ad there are two many inconsistent ways to write a
> > pdf.
> > >
> > > As far as I can tell, there are no two programs that are actually
> > > compatible with one another in handling pdfs.
> > >
> > >
> > > --
> > > Dr. Richard E. Hawkins, Esq.
> > > (702) 508-8462
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Breaking out a PDF

2016-09-19 Thread Roger Eller
Are these PDFs created by you with LiveCode, or coming from other unknown
or varying programs?  Is is all text, or a mixture of content?

A PDF built to the older PDF-1.4 spec, is fairly simple to construct from
scratch using just text.  Example: Paste the following into notepad, and
save it.  Change the extension to .pdf.  MediaBox is the page size in
points (Points are roughly 1/72 of an inch).  All measurements are in
points.


%PDF-1.4
1 0 obj
<<
/Type /Catalog
/Pages 3 0 R
/Outlines 2 0 R
>>
endobj
2 0 obj
<<
/Type /Outlines
/Count 0
>>
endobj
3 0 obj
<<
/Type /Pages
/Count 1
/Kids [ 4 0 R ]
>>
endobj
4 0 obj
<<
/Type /Page
/Parent 3 0 R
/Resources << /Font << /F1 7 0 R >> /ProcSet 6 0 R >>
/MediaBox [0 0 366 160]
/Contents 5 0 R
>>
endobj
5 0 obj
<<
/Length 80
>>
stream
1 w
0 160 m
0 0 l
366 0 l
366 160 l
0 160 l
s
BT
/F1 7.5 Tf
20 122 Td (Hello World) Tj
ET
endstream
endobj
6 0 obj
[ /PDF /Text ]
endobj
7 0 obj
<<
/Type /Font
/Subtype /TrueType
/Name /F1
/BaseFont /CourierNew,Bold
/Encoding /WinAnsiEncoding
>>
endobj
xref
0 8
00 65535 f
09 0 n
74 0 n
000120 0 n
000179 0 n
000322 0 n
000415 0 n
000445 0 n
trailer
<<
/Size 8
/Root 1 0 R
>>
startxref
553
%%EOF



Roger Eller
Graphics Systems Analyst

803 North Maple Street P: 864.967.1625
Simpsonville, SC 29681 C: 864.908.0337
SealedAir.com  roger.e.el...@sealedair.com




On Mon, Sep 19, 2016 at 1:27 PM, Skip Kimpel  wrote:

> Thanks for the input.  Kind of what I thought but was looking for some
> feedback to confirm this before I started down that path.
>
> SKIP
>
> On Mon, Sep 19, 2016 at 12:47 PM, Dr. Hawkins  wrote:
>
> > On Mon, Sep 19, 2016 at 8:13 AM, Skip Kimpel 
> wrote:
> >
> > > Has anybody taken a PDF, read it into LC and then split that PDF and
> > > created multiple PDF documents from it?  Looking to create a
> streamlined
> > > way of doing this an a continuous basis.
> > >
> >
> > Playing with PDF is a nightmare.
> >
> > I've looked at it, ad there are two many inconsistent ways to write a
> pdf.
> >
> > As far as I can tell, there are no two programs that are actually
> > compatible with one another in handling pdfs.
> >
> >
> > --
> > Dr. Richard E. Hawkins, Esq.
> > (702) 508-8462
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Breaking out a PDF

2016-09-19 Thread Skip Kimpel
Thanks for the input.  Kind of what I thought but was looking for some
feedback to confirm this before I started down that path.

SKIP

On Mon, Sep 19, 2016 at 12:47 PM, Dr. Hawkins  wrote:

> On Mon, Sep 19, 2016 at 8:13 AM, Skip Kimpel  wrote:
>
> > Has anybody taken a PDF, read it into LC and then split that PDF and
> > created multiple PDF documents from it?  Looking to create a streamlined
> > way of doing this an a continuous basis.
> >
>
> Playing with PDF is a nightmare.
>
> I've looked at it, ad there are two many inconsistent ways to write a pdf.
>
> As far as I can tell, there are no two programs that are actually
> compatible with one another in handling pdfs.
>
>
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Breaking out a PDF

2016-09-19 Thread Dr. Hawkins
On Mon, Sep 19, 2016 at 8:13 AM, Skip Kimpel  wrote:

> Has anybody taken a PDF, read it into LC and then split that PDF and
> created multiple PDF documents from it?  Looking to create a streamlined
> way of doing this an a continuous basis.
>

Playing with PDF is a nightmare.

I've looked at it, ad there are two many inconsistent ways to write a pdf.

As far as I can tell, there are no two programs that are actually
compatible with one another in handling pdfs.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Breaking out a PDF

2016-09-19 Thread Skip Kimpel
Has anybody taken a PDF, read it into LC and then split that PDF and
created multiple PDF documents from it?  Looking to create a streamlined
way of doing this an a continuous basis.

SKIP
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode