Breaking out a PDF

Roger Eller roger.e.eller at sealedair.com
Mon Sep 19 13:37:20 EDT 2016


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
0000000000 65535 f
0000000009 00000 n
0000000074 00000 n
0000000120 00000 n
0000000179 00000 n
0000000322 00000 n
0000000415 00000 n
0000000445 00000 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 <http://www.sealedair.com/> Roger.E.Eller at SealedAir.com
<roger.e.eller at sealedair.com>



On Mon, Sep 19, 2016 at 1:27 PM, Skip Kimpel <skiplondon at gmail.com> 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 <dochawk at gmail.com> wrote:
>
> > On Mon, Sep 19, 2016 at 8:13 AM, Skip Kimpel <skiplondon at gmail.com>
> 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 at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list