• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

AltME groups: search

Help · search scripts · search articles · search mailing list

results summary

worldhits
r4wp5907
r3wp58701
total:64608

results window for this page: [start: 18801 end: 18900]

world-name: r3wp

Group: PDF-Maker ... discuss Gabriele's pdf-maker [web-public]
Henrik:
11-Aug-2005
it created a PDF invoice om rebol/view 1.3 for OSX just fine :-) 
I use only boxes, lines, helvetica, helvetica bold and courier though. 
no images or anything
Louis:
11-Aug-2005
Gabriele, I'll look foreward to the update.  Actually, I use pdf-maker 
all the time.  This is the only time I have experienced a problem.
Louis:
11-Aug-2005
Henrik, pdf-maker is great. I have one program that creates mailmerge 
letters from data in an object database.  It creates a pdf file, 
allowing me to check each letter before printing it.  I can also 
pick out just one letter in the file to print.  Or, if the printer 
jams, it is easy to begin anew printing just the remaining letters. 
And, of course, I can use the program on any operating system.  Nice.
Henrik:
11-Aug-2005
louis: yes, I've used it in a few apps so far with great success, 
because it's very stable and fast. the only things I miss are better 
font handling, some better docs and importing vector drawings into 
a PDF. Getting OCR fonts in will really make it useful for me.
Henrik:
11-Aug-2005
I've also been thinking about building a very simple application 
to let you create pdf's graphically to make the process simpler. 
of course it would be no where near a DTP application, but it would 
speed up generation of more complex stuff
Henrik:
11-Aug-2005
I think there is great potential to unifying all the tools that are 
forming now: pdf-maker, AGG, SVG input and makedoc2. Allow these 
things to talk to eachother! imagine making a drawing in AGG or import 
an SVG into a DRAW and then use the very same block with layout-pdf. 
Future versions of makedoc could print pdfs as well as HTML through 
pdf-maker. by letting these tools use eachother, the combination 
could be a very fast and powerful document creation system.
Janeks:
24-Oct-2005
Thanks for anwers!

I don't know any thing about PDF, but I did couple functions for 
encoding conversation.

Could it be a "quick hack" or it requires good background of PDF 
format ?
Gabriele:
25-Oct-2005
it might be a quick hack, but i need to check the docs for PDF... 
but IIRC for an encoding different from the default you need to provide 
a char table or something like that...
Janeks:
25-Oct-2005
It is probably a bit funny, but I used to put both of following head 
part in my HTML pages:

    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1257">

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-10">

It worked so that it was corectly displayed in M$ Exploer and Opera.

The Baltic Rim ( "Windows Baltic Microsoft code page – cp 1257") 
is the standart.

I will send to your e-mail couple of images with characters and codes.
Oldes:
22-Feb-2006
Would it be possible to use PDF-maker to extract just a pure text 
from PDF files?
JaimeVargas:
22-Feb-2006
I think PDF-makes is a generator not a parser.
Oldes:
22-Feb-2006
I know, I was just thinking, if it's easily possible to use it as 
a PDF decoder, but will rather use this http://sourceforge.net/projects/pdftohtml/
and then use Rebol to parse the HTML
JaimeVargas:
22-Feb-2006
Probably it has some level of security. PDF has a layered system 
of rights.
Henrik:
9-Mar-2006
http://www.lerup.com/printfile/<--- would this be a good way to 
print PDFs easily from rebol under windows?
Henrik:
11-Mar-2006
haven't tried (don't have a printer), but if it can print postscript, 
then it can print graphics
Ryan:
12-Mar-2006
I  can do this pretty much with html, or PDFmaker with acrobat version 
x, but I would a more exact publicly usable solution.
Henrik:
13-Mar-2006
I don't think you can do that 100% within rebol, but Printfile seems 
to let you spool PS from a watched directory. Store a PDF or PS file 
in that specific directory and it will be printed. Printfile can't 
run as a service or in the background it seems.

It's easier under Linux where you can employ PDF2PS and just feed 
it to LPR, which will then print it.
Anton:
13-Mar-2006
Henrik did you try using SRVANY.EXE ? (runs any program as a service).
http://support.microsoft.com/kb/q137890/
Graham:
3-Apr-2006
I'd like somehow to plot a child's growth over the top of a pdf such 
as this.
Graham:
3-Apr-2006
I'd hate to have to redraw this in the plot dialect just to stick 
a few points on it.
Graham:
3-Apr-2006
So, given such a pdf, all I have to do is figure out where to put 
the 0, 0 and the scale, and try plotting to it?
Gabriele:
3-Apr-2006
well, basically updating a pdf works this way:
Gabriele:
3-Apr-2006
each object has an id and a generation number; the generation number 
must be incremented when you update the object, that is when you 
append a new object to the file that should actually replace the 
old
Gabriele:
3-Apr-2006
you need to provide a new xref for this new object and referring 
to the old xref
Graham:
3-Apr-2006
this one contains a lot of binary
Gabriele:
3-Apr-2006
if you are lucky and the source pdf has a simple structure, and all 
your source pdfs have the same structure, then this might be very 
easy
Gabriele:
3-Apr-2006
(the xref generator in the pdf maker only works for the main xref 
of the file, not the change xrefs, but it should be easy to change 
it to generate a change xref)
Gabriele:
3-Apr-2006
depending on how much you need to parse the original file, you may 
need to just read a few pages, or learn the whole spec
Gabriele:
3-Apr-2006
since ps doesn't have a structure like this
Graham:
3-Apr-2006
I might have a go that way then.
Graham:
3-Apr-2006
now, all I have to do is learn a bit of PS :)
Gabriele:
3-Apr-2006
it depends a lot on your source files. it may be easier with pdf 
if you don't need to parse much, otherwise if you need to you could 
need to implement decompression and so on.
Graham:
3-Apr-2006
I got my "Hello World" at the bottom of the page, bottom left.  But 
the pdf which was originally one page, now has a second blank page.
Graham:
3-Apr-2006
Which makes me wonder if we shouldn't have a ps-maker dialect.
Graham:
5-Apr-2006
Having done a few graphs now in postscript, and it seems fairly easy 
to do .. make be those expert in dialects could look at constructing 
a postscript dialect.  This makes for great output, and potentially 
seems easier to do than creating pdfs.
Henrik:
5-Apr-2006
easier? I thought pdf was a simpler subset of pdf?
Henrik:
5-Apr-2006
I've always wanted to build a postscript emitter for REBOL. This 
would solve many problems in the printing area.
Henrik:
5-Apr-2006
it would be cool if you could take a DRAW block and convert that 
to postscript
Gabriele:
5-Apr-2006
that shouldn't be hard. actually, being that ps is forth, once you 
code the functions you need it's almost a 1:1 translation
Henrik:
5-Apr-2006
well, if lines, curves, text and general paper size handling could 
be done first, that would be a very good thing
Gabriele:
5-Apr-2006
text is a different issue, you need to do the typesetting yourself, 
and you eventually need to handle fonts.
Gabriele:
5-Apr-2006
for the typesetter, the one i'm designing for pdf maker 2 could be 
easily reused (based on TeX, and i will write it as a RLP so you'll 
have full docs)
Henrik:
5-Apr-2006
would you mind if I made a group that would focus on the challenges 
in such an effort?
Joe:
1-Jun-2006
I have to design a complex form with lots of boxes and text. Is there 
a dialect to define that ? thxs
Joe:
1-Jun-2006
Gabriele, will you have a pdf-maker 2 alpha ?
Gabriele:
2-Jun-2006
btw, I just fixed a bug with the View 1.3 version of the pdf-maker 
and images.
Joe:
7-Jun-2006
I just printed a PDF doc and it shows 3 different measures: 1) the 
preview window shows 210,02 x 297,01 2) Document: 211,0 x296,7 and 
3) Paper: 209,9x296,7 Weird!
Janeks:
31-Jul-2006
REBOL/View 1.3.50.3.1 14-Oct-2005 Core 2.7.0
Copyright 2000-2005 REBOL Technologies.  All rights reserved.
REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM
>> change-dir winpath-to-file "C:\rebol\scripts\pdf_maker"
== %/C/rebol/scripts/pdf_maker/
>> do %pdf-maker.r
>> myLayPdf: layout-pdf [[textbox ["This is some text."]]]
** Script Error: Cannot use add on none! value
** Where: make-pages
** Near: pid: (2 * length? pages) + i
foreach
>>
Janeks:
2-Aug-2006
There was a reason - already forgot it.

The only thing in user.r was the function above (except set-net) 
- and I removed it ;-)
But:
REBOL/View 1.3.2.3.1 5-Dec-2005 Core 2.6.3
Copyright 2000-2005 REBOL Technologies.  All rights reserved.
REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM
>> change-dir to-rebol-file "C:\rebol\scripts\pdf_maker"
== %/C/rebol/scripts/pdf_maker/
>> do %pdf-maker.r
>> myLayPdf: layout-pdf [[textbox ["This is some text."]]]
** Script Error: Cannot use add on none! value
** Where: make-pages
** Near: pid: (2 * length? pages) + i


Could it be connected with that I am starting rebol with view.exe 
-i ?
Gabriele:
3-Aug-2006
it's also possible that the 2-jun-2006 version has a bug; it was 
released to fix a bug with images, and it's not to exclude that it 
introduced another bug, although i haven't got any reports about 
it.
Gabriele:
3-Aug-2006
ah, confirmed it was a bug. i just fixed it and uploaded a new version.
Gabriele:
4-Aug-2006
my plan is to eventually have that in version 2 (a first release 
of version 2 is due in a couple weeks). however, note that while 
the pdf format directly supports latin1 encoding, it does not support 
unicode encodings directly. so it's a pain to make it work. openoffice, 
for example, creates divides the characters you use in the document 
in groups of 256, then creates a new custom font for each group. 
(i also assume that the 14 standard fonts do not support unicode, 
so you need custom font support to be able to use unicode.)
Graham:
4-Aug-2006
Are you able to give us a preview of the capabilities of version 
2?
Henrik:
4-Aug-2006
I would want those things as a layer above pdf maker
Henrik:
4-Aug-2006
gabriele, I was more thinking about general page layout, not the 
lower level text flow functions, so you  can decide a general template 
for your pages on your own.
Henrik:
4-Aug-2006
that's what I would like to see pre-prepared on a higher level
Gabriele:
4-Aug-2006
i.e. it's much more flexible than TeX actually, however there are 
a number of drawbacks; you can't apply a fit algorithm to pages (boxes 
in this case) if they are not all the same width.
Gabriele:
4-Aug-2006
higher level: well, the first application of the pdfm2 will be a 
qml emitter, and i guess the second will be a md3 emitter.
Robert:
4-Aug-2006
I'm going to add a MDP emitter as well :-)) Looks very good!!
Henrik:
5-Aug-2006
this question might not entirely be related to PDF Maker, but I had 
an idea of using Pages for MacOSX to create pretty PDF documents 
with areas where text can be put in by a separate program and then 
create a new PDF (not X-Forms) for printing. This would require the 
ability to search/replace text in PDFs. Is this possible with compressed 
PDFs?
Gabriele:
5-Aug-2006
you have to parse it out and rebuild it. (or at least recreate some 
objects and append them as a change, but then you have both the original 
and the new version in the file)
Gabriele:
11-Aug-2006
the pdf maker is not a markup language :) it's a (rather low level) 
dialect. you generally want to hook up higher level mls to it (like 
makedoc and qml)
Graham:
25-Aug-2006
to insert a hyphen into a word to split the word up
Gabriele:
25-Aug-2006
graham: i'm not using a dictionary, and i'm not sure i want to do 
that in the pdf maker. i think it's more low level than that. otoh, 
doing so could provide some optimization (don't hypenate if it's 
not needed, like TeX does), so i'm not completely against it.
Gabriele:
25-Aug-2006
i'm going to play with the penalties and demerits for hypens to see 
if i can get a better output; however the columns in the test are 
pretty small so it's hard to get a good ouput anyway.
Gabriele:
25-Aug-2006
also notice that the columns have a different width (i think TeX 
can't do this, not easily at least)
Gabriele:
25-Aug-2006
i think TeX has a very good hypenation algorithm (at least it was 
the best at the time)
Gabriele:
25-Aug-2006
imagine you want to typeset a sentence in english that quotes a sentence 
in italian...
Gabriele:
25-Aug-2006
or, if i ever get to support unicode, a sentence in english that 
quotes japanese.
Gabriele:
25-Aug-2006
i want this to stay at a upper layer. :) i will have to do it anyway 
- i'll have to do the pdf emitter for qml for e.g.
Gabriele:
25-Aug-2006
e.g. http://www.colellachiara.com/soft/PDFM2/pdf-maker.html#section-3
gives a description of the dialect that you can base the user docs 
on.
Gabriele:
25-Aug-2006
e.g. (above url) gives a description of the dialect that you can 
base the user docs on. (text was not visible in previous post)
Gabriele:
25-Aug-2006
Anton, only a few things of the text dialect are implemented. i wanted 
to get to a working version as soon as possible so that i could test 
the typesetter easily.
Gabriele:
25-Aug-2006
bold and italic are a different font (i.e. you use Times-Italic instead 
of Times-Roman)
Gabriele:
26-Aug-2006
Henrik, do you have a fix for the CSS? (actually, i'd need someone 
to create a good CSS for wetan...) I have only tested it on Firefox 
so far.
Henrik:
27-Aug-2006
gabriele, looking at the source, I'm not sure it's enough to fix 
the CSS. it would be far easier to manage if the history and the 
license was wrapped in a table with two cells. the page actually 
also breaks when using Firefox and making the window narrow.
Gabriele:
27-Aug-2006
henrik, it does not necessarily need to appear that way. i prefer 
a semantic approach in the source. history and license are just two 
fields, how they are displayed depends on the CSS, not on the xhtml 
structure.
Henrik:
27-Aug-2006
gabriele, well, anyway, I think it's not very easy to place up elements 
next to eachother in a controlled way other than by using a table. 
<div>s are nice, but there are limits to how much fiddling should 
be necessary.
Gabriele:
1-Sep-2006
new update - para alignments and a few other things. break-lines 
now always succeeds, at worst producing "ugly" output.
Gabriele:
1-Sep-2006
see test.pdf for an example of typesetting a long text into columns, 
with headers etc. (doesn't break just after a header and things like 
this)
Gabriele:
2-Sep-2006
new update - finally fixed break-lines (more on this below), added 
widow/orphan penalties and setting of parameters like tolerance, 
interline glue and looseness (the latter allows increasing or decreasing 
the number of lines of a paragraph).
Gabriele:
2-Sep-2006
what the problem was with break-lines: as some of you probably know, 
when TeX cannot break a paragraph with a given stretch tolerance, 
it produces overfull boxes, assuming that in such a case manual intervention 
is desirable.
Gabriele:
2-Sep-2006
however, i underestimated the problem, since that was a source of 
infinite bugs... i wasn't doing it right.
Gabriele:
2-Sep-2006
after many attempts, i decided to think about how the algorithm was 
really supposed to work, so found a good way to implement emergency 
breaks... now i finally fixed all bugs with it and it is working 
fine.
Gabriele:
2-Sep-2006
note, that the result when using emergency breaks is not optimal. 
they are only used to allow break-lines to produce a result in all 
cases. increasing the tolerance is the only way to get optimal results.
Gabriele:
2-Sep-2006
not yet. that will be possible when i implement unicode support (and 
you'll need a font with all the chars you want).
Henrik:
2-Sep-2006
will there be a method to use custom fonts?
Gabriele:
3-Sep-2006
new update - paragraph margins; as a side effect this now allows 
drop caps and paragraph shapes (check out the circle paragraph in 
the second page).
Gabriele:
3-Sep-2006
oldes: i have an utf8 parser too. however it's not that easy because 
the PDF format does not support unicode directly. you have to create 
custom fonts. i have to study this in detail, but i noticed that 
OpenOffice generates a font for each set of 256 characters.
Gabriele:
4-Sep-2006
my plan is to eventually add a "simple" text mode for use when you 
care for speed instead of quality.
Gabriele:
5-Sep-2006
yes... if you're typesetting a book, you'll want the quality; if 
you're typesetting an invoice, you won't care about justification 
with the total-fit algorithm (although, the total-fit algorithm could 
still help to break pages when there are tables)
Gabriele:
6-Sep-2006
anyway - i have a question. do you think that it would be useful 
to have tabs, as fixed positions inside lines to go to with a tab 
command in the middle of a paragraph?
Gabriele:
6-Sep-2006
btw, new update fixing a bug
Anton:
6-Sep-2006
I think tabs will be good when importing text from a script's console 
output, for instance.
Anton:
6-Sep-2006
How did you implement the leading indent at the beginning of paragraphs 
? Is that not in reality a kind of tab ?
Anton:
6-Sep-2006
Excuse me if I sound a bit disconnected. I do not clearly envisage 
yet how it should be used.
Gabriele:
7-Sep-2006
that is a fixed space, not a tab.
Anton:
7-Sep-2006
Mmm.. I can't think of any particular need for tabs off the top of 
my head, but I remember a situation a long time ago where I was editing 
text, tabs were not implemented and I missed them. I'm sorry I can't 
be more specific than that at the moment.
Anton:
7-Sep-2006
Just tabs are a quick and handy alternative to setting up a table.
Gabriele:
11-Sep-2006
does anyone think there are good reasons to support variable widths 
when breaking a table between pages?
18801 / 6460812345...187188[189] 190191...643644645646647