Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

pdflib · PDFlib users

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 3736
  • Category: Cyberculture
  • Founded: Jun 28, 1999
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 21540 - 21579 of 21943   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#21540 From: Kurt Stützer <kurt@...>
Date: Thu Dec 1, 2011 7:20 pm
Subject: Re: text wrapping + indent = problem?
kurt@...
Send Email Send Email
 
Hi,

hortabmethod=typewriter is unappropriate for indentation.

Please look for our Cookbook sample
http://www.pdflib.com/pdflib-cookbook/text-output/numbered-list/

If you have questions don't hesitate to contact our support
http://www.pdflib.com/support-policy/opening-a-support-case/

Kurt

Am 30.11.2011 03:36, schrieb rajulkabir:
> The following code results in the "third tabbed line" being indented by
> an extra tab stop. I don't understand why this should be, nor have I
> been able to come up with a way around it. Is there a solution, or is
> wrapping fundamentally incompatible with tabs and indentation?
>
> <?php
>
> // needs a file called "small-image.jpg" in the same directory
>
> $p = new PDFlib();
> $p->begin_document('./test.pdf', '');
>
> $text_options = 'fontname=Helvetica fontsize=12 textformat=utf8
> encoding=unicode '
> . 'hortabmethod=typewriter hortabsize=20 leftindent=20 parindent=-20';
> $text = <<<EOF
> Untabbed line.
>
> -\tTabbed line.
>
> -\tAnother tabbed line.
>
> -\tA third tabbed line.
>
> -\tA fourth tabbed line.
>
> Final untabbed line.
> EOF;
>
> $image_options = 'boxsize={200 30} fitmethod=entire matchbox={name=img}';
> $image = $p->load_image('auto', './small-image.jpg', '');
>
> $textflow = $p->create_textflow($text, $text_options);
>
> $p->begin_page_ext(612, 792, '');
> $p->fit_image($image, 50, 500, $image_options);
> $p->fit_textflow($textflow, 50, 50, 200, 600, 'showtabs=validarea
> wrap={usematchboxes={{img}}}');
> $p->end_page_ext('');
> $p->end_document('');
>
> echo "<p>Done.</p>";
>
> ?>
>
>

--
_______________________________________________________________
Kurt Stützer           kurt@...           www.pdflib.com
       phone +49 89 452 33 84-15      fax +49 89 452 33 84-99
    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
         Court of registry/Amtsgericht München HRB 129497
   Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
---------------------------------------------------------------
   PDFlib 8: Complex script shaping and bidirectional formatting
for Arabic, Hebrew, Thai, Hindi, and many other writing systems
_______PDFlib - a library for generating PDF on the fly________

#21544 From: "Athar iqbal" <athariqbalrahi@...>
Date: Wed Dec 14, 2011 5:10 am
Subject: Now you can start earning a real income from home and enjoy the benefits of an E
athariqbalrahi
Send Email Send Email
 
Now you can start earning a real income from home and enjoy the benefits of an
Extra Unlimited Income, FREE Groceries, Free Holidays, FREE Gifts and more when
you register in any of our positions.
Are you finding it difficult to pay the bills, feed the family, fuel the car and
enjoy life?
If you answered yes then a work at home position is for you!
We give you the opportunity to earn a real income working from home in a variety
of positions. Including typing, research, compiling, processing and more.
You have the freedom to work as many of our positions as you like working in
your own time from home. Visit us today for full details on our positions or to
register today.
(jobs@...)
http://www.netbizinternational.net
http://tinyurl.com/6crlsf7

#21545 From: "venki" <chvenkat_mca@...>
Date: Wed Dec 14, 2011 6:57 am
Subject: Adding named destination in pdf document using dot net
chvenkat_mca
Send Email Send Email
 
Hello,

     In one of my .NET application, I need to create named destination on an arbitrary page in the PDF document.

     I belive this is possible using add_nameddest function. This function is working fine for me in Perl i am able to generate PDF document i can see the named destination in the PDF document.But in the .NET application  i could not find any named destination added to PDF document.

     In Perl application i used the function like this

     $p->add_nameddest("PANNUMBER",""); 

     In .NET application 
     pdflib_obj.add_nameddest("PANNUMBER", "");

    I am using dot net PDFLib 6.0.3 version.

    Can anybody suggest me how to use this function in dot net, what options need to be passed to get named destinations in PDF document?

Thanks,
Venkat

    

    

#21549 From: "fbhhji" <fbhhji@...>
Date: Wed Dec 21, 2011 6:53 am
Subject: You've got a private message!
fbhhji
Send Email Send Email
 
You've got a private message! Check it here:
http://file1.hpage.com/007369/50/html/hottie.htm

#21550 From: kunsmann@...
Date: Thu Dec 22, 2011 1:20 pm
Subject: PDFLIB table
kunsmann@...
Send Email Send Email
 
Hello,

maybe someone can help me with following problem with tables.

I have an invoice document. All items of this invoice I add to an table with
add_table_cell. After that, I print the complete table to the document. If there
an page-break (_boxful), I print on the bottom of the page (not in the table)
the subtotal. That's running fine. Now I must print the same value on the next
page as balance brought forward (but within the table). Can I add "dynamically"
a row (with add_table_cell) to the table, or can I say that the content of the
table need space after the header, but not on the first table instance (on
every page I print an header)?

One solution will be don't print the header in the table. But is there an
solution, that I can print the header "automatically" with fit_table?

Here an graphical example:

(HEADER): Pos Item name price
1 AAA 50
2 BBB 50

Subtotal: 100

(HEADER): Pos Item name price
Balance brought forward: 100
3 CCC 50

Have someone an idea?

Matthias

___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192

#21551 From: Rainer Plöckl <rp@...>
Date: Thu Dec 22, 2011 1:53 pm
Subject: Re: PDFLIB table
ruebennase_de
Send Email Send Email
 
Hi,

> I have an invoice document. All items of this invoice I add to an table with
add_table_cell. After that, I print the complete table to the document. If there
an page-break (_boxful), I print on the bottom of the page (not in the table)
the subtotal. That's running fine. Now I must print the same value on the next
page as balance brought forward (but within the table). Can I add "dynamically"
a row (with add_table_cell) to the table, or can I say that the content of the
table need space after the header, but not on the first table instance (on every
page I print an header)?
>
> One solution will be don't print the header in the table. But is there an
solution, that I can print the header "automatically" with fit_table?
>
> Here an graphical example:
>
> (HEADER): Pos Item name price
> 1 AAA 50
> 2 BBB 50
>
> Subtotal: 100
>
> (HEADER): Pos Item name price
> Balance brought forward: 100
> 3 CCC 50
>
> Have someone an idea?

just a quick idea, create a two row header but the second
line contains only a matchbox.
After fitting the table, you can retrieve the matchbox position
and place the " Balance brought forward: 100" similar as we
demonstrate the "subtotal" in the following example:
http://www.pdflib.com/pdflib-cookbook/tables/table-invoice/

Not perfect, because you will also have an "empty" row on the
first instance.

There is no way to insert rows afterwards.

Rainer
--
_______________________________________________________________
Rainer Plöckl        rp@...        http://www.pdflib.com
   PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
        Court of registry/Amtsgericht München HRB 129497
  Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
---------------------------------------------------------------
     PDFlib: powerful toolkits for PDF developers since 1997
_______ See www.pdflib.com/products for product details________

#21553 From: "george" <vespaschorsch@...>
Date: Tue Dec 27, 2011 8:53 pm
Subject: ghostscript merge pdfmarks into pdf looses blocks
itpmgeorge
Send Email Send Email
 
This is not directly related to pdflib but someone might have an answer to it:

i need to change and write blocks .. not only in acrobat :-) so i went with your
proposed pdfmarks and join a pdfmark file with a pdf using ghostscript like
this:

   gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=fileout.pdf pdf_marks
pdf_with_blocks.pdf


the new file contains the blocks defined in the pdfmarks but has lost its
original pdflib blocks.

btw: i would really like to see block writing capabilities in pdflib because
right now i will need to go this way .. correct me if i am wrong:

- got pdf with blocks
- read them with pcos/pdflib
- user edit blocks
- convert to pdfmarks markup
- save back to a new pdf with gs .. and potentially loose stuff

#21554 From: "george" <vespaschorsch@...>
Date: Wed Dec 28, 2011 3:56 pm
Subject: Re: ghostscript merge pdfmarks into pdf looses blocks
itpmgeorge
Send Email Send Email
 
--- In pdflib@yahoogroups.com, "george" <vespaschorsch@...> wrote:
>
> This is not directly related to pdflib but someone might have an answer to it:
>
> i need to change and write blocks .. not only in acrobat :-) so i went with
your proposed pdfmarks and join a pdfmark file with a pdf using ghostscript like
this:
>
>   gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=fileout.pdf pdf_marks
pdf_with_blocks.pdf
>
>
> the new file contains the blocks defined in the pdfmarks but has lost its
original pdflib blocks.
>
> btw: i would really like to see block writing capabilities in pdflib because
right now i will need to go this way .. correct me if i am wrong:
>
> - got pdf with blocks
> - read them with pcos/pdflib
> - user edit blocks
> - convert to pdfmarks markup
> - save back to a new pdf with gs .. and potentially loose stuff
>

after reading a bit in your bible. i probably found out why blocks are lost. You
are inserting them also as pdfmarks and those dont get joined.
Are there other pdflib options besides block potantially in pdfmarks?
Title/Author,.. so if i am editing such a template i would also need to take
care of those before writing again.

#21555 From: "pressreturn2002" <ducrot@...>
Date: Thu Dec 29, 2011 12:47 pm
Subject: Percent values for horizscaling in PDFlib Block plugin 4.3
pressreturn2002
Send Email Send Email
 
I can't enter a percent value for "horizscaling" after updating the block plugin
to 4.3. Is there a fix or workaround?

The german error message is: "Bitte geben Sie einen korrekten Wert für die
Eigenschaft 'horizscaling' ein".

Same problem with "charspacing" and "wordspacing".


Christian

#21556 From: "pravingundawar" <pravingundawar@...>
Date: Fri Dec 30, 2011 1:11 pm
Subject: Reducing fontsize in a text flow inside a table cell
pravingundawar
Send Email Send Email
 
Hi All,
I want to wrap the text coming dynamically inside a table cell, so first I am
creating a textflow then adding it to the cell. But it reduces the font size of
that cell as compare to other cell without textflow. I am using following code.
$fontNormal = $p->load_font($normalFont, "winansi", "");
$dimMargin=4;$dimStatCapheight=4;$dimStatMargin=3;$dimStatRrowHeight=10;
$dimCapheight=4; $dimLeading='120%'; $dimRrowHeight=32;
$trust['TrustIndexSurveyQuestion']['statement'] = "Some dynamic text";

$dimTfStatOpts = "font=" . $fontNormal . " alignment=left" .  "
fontsize={capheight=" . $dimStatCapheight . " } leading=" .$dimLeading;
$dimTf =$p->add_textflow(0,  $trust['TrustIndexSurveyQuestion']['statement'],
$dimTfStatOpts);
if($dimTf == 0){
	 die("Error: 3" . $p->get_errmsg());
}
$dimTbCellOpts = "textflow=" . $dimTf .  " fittextflow={firstlinedist=capheight
}" .  " colwidth=" .$dimStatColWidth. " rowheight=" . $dimStatRrowHeight .  "
margin=" . $dimStatMargin ;
$dimTb = $p->add_table_cell($dimTb, $col,$row, "", $dimTbCellOpts);


This is how I am adding textflow to the cell. Data is coming properly, but
fontsize is reduced as compared to other cell without textflow. please help me.
Thanks

#21557 From: Rainer Plöckl <rp@...>
Date: Fri Dec 30, 2011 1:25 pm
Subject: Re: Percent values for horizscaling in PDFlib Block plugin 4.3
ruebennase_de
Send Email Send Email
 
Christian,

Am 29.12.2011 13:47, schrieb pressreturn2002:
> I can't enter a percent value for "horizscaling" after updating the block
plugin to 4.3. Is there a fix or workaround?
>
> The german error message is: "Bitte geben Sie einen korrekten Wert für die
Eigenschaft 'horizscaling' ein".
>
> Same problem with "charspacing" and "wordspacing".

this is a known and fixed issue. The fix will available in the
next block version, which will be available Mid of January 2012.

Rainer

--
_______________________________________________________________
Rainer Plöckl        rp@...        http://www.pdflib.com
   PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
        Court of registry/Amtsgericht München HRB 129497
  Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
---------------------------------------------------------------
     PDFlib: powerful toolkits for PDF developers since 1997
_______ See www.pdflib.com/products for product details________

#21558 From: "xavierf666" <xavier_f666@...>
Date: Tue Jan 3, 2012 11:07 pm
Subject: wordspacing option and U+00A0 character
xavierf666
Send Email Send Email
 
Hi,

I wrote a C++ program which allow to create pdf dynamically with Unicode Text
(especially arabic text but not only)
My question concerns fit_textline method and more particularly the "wordspacing"
option.
It can happens that my text contains U+00A0 characters.(no-break space)
But in that case,  "wordspacing" option doesn't have the same behavior depending
on the font that I apply on the text.
Pdflib seems to convert U+00A0 character to U+0020 character with some fonts so
that fit_textline with "wordspacing" option shifts text after U+00A0 character
too ...
It is possible to avoid this function's behavior?

Many thanks in advance

#21559 From: Thomas Merz <tm@...>
Date: Tue Jan 10, 2012 2:03 pm
Subject: [ANN] PDFlib 8.0.4 maintenance release available
thomasmerz1
Send Email Send Email
 
The maintenance release PDFlib 8.0.4 is available for all
users with a valid PDFlib 8.0.x license. Updating to 8.0.4
is recommended for all users of PDFlib, PDFlib+PDI, and PPS 8.0.x.
All 8.0.4 binaries accept valid 8.0.x license keys.

PDFlib 8.0.4 includes the following new features:
- support for iOS, Android and embedded Linux
- Objective-C language binding for Mac OS X and iOS
- support for PHP 5.4
- object-oriented interface for the Python language binding
- PDI page cache reduces output file size for applications which
    re-open imported pages that are used more than once
- support for PostScript XObjects for certain prepress workflows
- layers in PDF/X-4:2010 can be used without layer variants
- improved date handling for file attachments
- license key can be set with PDF_set_option()

PDFlib 8.0.4 includes a variety of bug fixes and enhancements,
including the following:
- reduced memory requirements for imported PDI pages by 35%
- further reduced memory requirements of PDFlib for documents with
    tens of thousands of pages
- updated the internal list of standard output intents for PDF/X
    to reflect the Characterization Data collection at www.color.org
- fix for 16-bit TIFF images with a palette
- fix for 16-bit PNG images with a soft mask
- accelerated loading of fonts with a very large number of kerning pairs
- various bug fixes in the Textflow and Table formatters as well as
    other functional areas

The full list of changes can be found in the change log which is
included in all packages, and is also available on the download page.

The PDFlib Block plugin has been updated to version 4.4. It includes
a number of user interface bug fixes on Windows and Mac OS X, including
several crash situations.

The new packages are immediately available for download from
www.pdflib.com/download/pdflib-family/pdflib-8/

Thomas Merz

_______________________________________________________________
Thomas Merz             tm@...            www.pdflib.com
    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
         Court of registry/Amtsgericht München HRB 129497
   Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
---------------------------------------------------------------
      PDFlib: powerful toolkits for PDF developers since 1997
_______ See www.pdflib.com/products for product details________

#21560 From: "pressreturn2002" <ducrot@...>
Date: Thu Jan 12, 2012 12:06 pm
Subject: Re: Percent values for horizscaling in PDFlib Block plugin 4.3
pressreturn2002
Send Email Send Email
 
Hi Rainer,

after updating to 4.4 the "percent value" problem is fixed. But a new problem
occurred.

I can't paste text from the clipboard to "defaullttext" (Acrobat 9 / MAC). In
fact pasting data from the clipboard doesn't work on any field.


Greetings
Christian


--- In pdflib@yahoogroups.com, Rainer Plöckl <rp@...> wrote:
>
> Christian,
>
> Am 29.12.2011 13:47, schrieb pressreturn2002:
> > I can't enter a percent value for "horizscaling" after updating the block
plugin to 4.3. Is there a fix or workaround?
> >
> > The german error message is: "Bitte geben Sie einen korrekten Wert für die
Eigenschaft 'horizscaling' ein".
> >
> > Same problem with "charspacing" and "wordspacing".
>
> this is a known and fixed issue. The fix will available in the
> next block version, which will be available Mid of January 2012.
>
> Rainer
>
> --
> _______________________________________________________________
> Rainer Plöckl        rp@...        http://www.pdflib.com
>   PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
>        Court of registry/Amtsgericht München HRB 129497
>  Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
> ---------------------------------------------------------------
>     PDFlib: powerful toolkits for PDF developers since 1997
> _______ See www.pdflib.com/products for product details________
>

#21561 From: "pressreturn2002" <ducrot@...>
Date: Thu Jan 12, 2012 4:27 pm
Subject: Re: Percent values for horizscaling in PDFlib Block plugin 4.3
pressreturn2002
Send Email Send Email
 
After rebooting the system copy + paste worked as expected.
Thanks for the update ;-)

--- In pdflib@yahoogroups.com, "pressreturn2002" <ducrot@...> wrote:
>
>
>
> Hi Rainer,
>
> after updating to 4.4 the "percent value" problem is fixed. But a new problem
occurred.
>
> I can't paste text from the clipboard to "defaullttext" (Acrobat 9 / MAC). In
fact pasting data from the clipboard doesn't work on any field.
>
>
> Greetings
> Christian
>
>
> --- In pdflib@yahoogroups.com, Rainer Plöckl <rp@> wrote:
> >
> > Christian,
> >
> > Am 29.12.2011 13:47, schrieb pressreturn2002:
> > > I can't enter a percent value for "horizscaling" after updating the block
plugin to 4.3. Is there a fix or workaround?
> > >
> > > The german error message is: "Bitte geben Sie einen korrekten Wert für die
Eigenschaft 'horizscaling' ein".
> > >
> > > Same problem with "charspacing" and "wordspacing".
> >
> > this is a known and fixed issue. The fix will available in the
> > next block version, which will be available Mid of January 2012.
> >
> > Rainer
> >
> > --
> > _______________________________________________________________
> > Rainer Plöckl        rp@        http://www.pdflib.com
> >   PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
> >        Court of registry/Amtsgericht München HRB 129497
> >  Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
> > ---------------------------------------------------------------
> >     PDFlib: powerful toolkits for PDF developers since 1997
> > _______ See www.pdflib.com/products for product details________
> >
>

#21562 From: "jhmarti" <jhmarti@...>
Date: Mon Jan 16, 2012 5:43 pm
Subject: PDFlib-Lite-7.0.5 VS C++ Compilation Errors
jhmarti
Send Email Send Email
 
I've tried unsuccessfully many times to compile the PDFlib-Lite-7.0.5.zip files
with Visual C++ 2008 Express Edition on Win XP Pro with all updates installed.

VS C++ configuration was Active(Release) Active(Win32) Configuration Manager was
Release DLL Win32

Build Solution pdflib_dll reports missing files below
TCL missing tcl.h
Python missing python.h
missing EXTERN.h
Java missing jni.h
Perl missing pdflib_pl.sbr

Verified 5 missing files DO NOT exist in PDFlib-Lite-7.0.5.zip download.

Please provide some clues how to proceed.

#21563 From: David Irving <dirving@...>
Date: Mon Jan 16, 2012 5:43 pm
Subject: Problem with a particular PDF
dirving@...
Send Email Send Email
 
Hello,

I have a question about a file that has sprung up on me only twice in
the last 4 years of using PDFLib.  First off, forgive my limited
knowledge of PDFs, I make heavy use of PDFLib but when I encounter a
problem like the following, I feel like a 10 year old in a calculus class.

I have an existing PDF file that has multiple separations (CMYK and
Pantone colors). When the PDF is opened in illustrator, a few particular
colors DO NOT render until the "Simulate Overprinting" option is turned
on in the "Output Preview" window. Once that is turned on, the colors
render and the PDF looks correct. I currently use PDFLib to process PDF
files and add annotations to them. When I process this file, I need to
be able to get PDFLib to render these spot colors, like I was checking
off that option in Acrobat (currently colors aren't rendering)

The code I use for processing the PDF looks like:

$page = $pdflib->open_pdi_page($outputPDF, $pageNum, '');
if (!$pdfPage) {
...
}

$width = $pdflib->get_pdi_value('width', $sourcePDF, $pdfPage, 0);
$height = $pdflib->get_pdi_value('height', $sourcePDF, $pdfPage, 0);
$pdflib->begin_page_ext($width, $height, '');
$pdflib->fit_pdi_page($pdfPage, 0, 0, 'adjustpage');

I've tried adding the following before the call to fit_pdi_page but it
hasn't made a difference:

$gState = $pdflib->create_gstate("overprintfill overprintmode=1");
$pdflib->set_gstate($gState);

Any thoughts would be much appreciated!

Thanks,
David

#21566 From: Leonard Rosenthol <leonardr@...>
Date: Tue Jan 17, 2012 3:50 pm
Subject: Re: Problem with a particular PDF
leonardr@...
Send Email Send Email
 
If you were to have the file comply with the PDF/X standards (any of the parts), then Acrobat/Reader will display the file as you expect.

Leonard

On Mon, Jan 16, 2012 at 9:43 AM, David Irving <dirving@...> wrote:
 

Hello,

I have a question about a file that has sprung up on me only twice in
the last 4 years of using PDFLib. First off, forgive my limited
knowledge of PDFs, I make heavy use of PDFLib but when I encounter a
problem like the following, I feel like a 10 year old in a calculus class.

I have an existing PDF file that has multiple separations (CMYK and
Pantone colors). When the PDF is opened in illustrator, a few particular
colors DO NOT render until the "Simulate Overprinting" option is turned
on in the "Output Preview" window. Once that is turned on, the colors
render and the PDF looks correct. I currently use PDFLib to process PDF
files and add annotations to them. When I process this file, I need to
be able to get PDFLib to render these spot colors, like I was checking
off that option in Acrobat (currently colors aren't rendering)

The code I use for processing the PDF looks like:

$page = $pdflib->open_pdi_page($outputPDF, $pageNum, '');
if (!$pdfPage) {
...
}

$width = $pdflib->get_pdi_value('width', $sourcePDF, $pdfPage, 0);
$height = $pdflib->get_pdi_value('height', $sourcePDF, $pdfPage, 0);
$pdflib->begin_page_ext($width, $height, '');
$pdflib->fit_pdi_page($pdfPage, 0, 0, 'adjustpage');

I've tried adding the following before the call to fit_pdi_page but it
hasn't made a difference:

$gState = $pdflib->create_gstate("overprintfill overprintmode=1");
$pdflib->set_gstate($gState);

Any thoughts would be much appreciated!

Thanks,
David



#21567 From: "Jonathan Pool" <pool@...>
Date: Sun Jan 22, 2012 9:32 pm
Subject: No text found
autoling
Send Email Send Email
 
I am testing pdflib via the PDFlib TET Plugin on Acrobat Pro version 10.1.2 for
OS X.

The first file I am testing it on contains text that Acrobat and Preview both
permit me to select and copy, but the character mapping is nonstandard, so
pasted text is garbage without being remapped. For example, the string "dress
worn by Yolmo women" appears, after being copied by either Acrobat or Preview
and then pasted, as ":1*33#='15#(4#>'98'#='8*5".

My understanding is that such remapping is one of the problems that pdflib is
designed to solve.

However, when I select any text with Acrobat, the TET Copy menu item is disabled
gray. When I instead select the Copy Contents of current Page or Copy Contents
of all Pages menu item, I received an error dialog saying "No text found in
document".

Acrobat and Preview can find text in this document. Acrobat cat export the
document as HTML or PostScript (with the characters remapped into garbage, as
above). So I am surprised that PDFlib TET Plugin cannot find any text in the
document.

#21568 From: "Jonathan Pool" <pool@...>
Date: Sun Jan 22, 2012 10:17 pm
Subject: Re: No text found
autoling
Send Email Send Email
 
In fact, I can't get the plugin to find any text in any PDF document.

#21569 From: "Jonathan Pool" <pool@...>
Date: Sun Jan 22, 2012 10:38 pm
Subject: Re: No text found
autoling
Send Email Send Email
 
I have also installed TET and tried it, too. It does succeed in finding text in
this PDF and other PDF files, and converting PDF files to txt files. However,
the remapped file's conversion contains the same garbage characters as one gets
by copying with Acrobat or Preview and pasting.

#21570 From: "mrscalahan" <mrscalahan@...>
Date: Mon Jan 23, 2012 8:39 am
Subject: Unit of PDF_info_textflow('textheight')
mrscalahan
Send Email Send Email
 
Hello,

can someone tell me in which unit the value 'text-height' is returned?

- pixel?
- millimeters?
- point?

Thanks!

#21571 From: Rainer Plöckl <rp@...>
Date: Mon Jan 23, 2012 9:40 am
Subject: Re: No text found
ruebennase_de
Send Email Send Email
 
Jonathan,

> However, when I select any text with Acrobat, the TET Copy menu item is
disabled gray. When I instead select the Copy Contents of current Page or Copy
Contents of all Pages menu item, I received an error dialog saying "No text
found in document".

might it be possible, that you open a support case for this topic
at support@... and provide us such a problematic PDF file.
(http://www.pdflib.com/en/support-policy/opening-a-support-case/)

Then we might analyses this in detail, what's happens in your case.

kind regards,
Rainer Plöckl
PDFlib Support

--
_______________________________________________________________
Rainer Plöckl        rp@...        http://www.pdflib.com
   PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
        Court of registry/Amtsgericht München HRB 129497
  Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
---------------------------------------------------------------
     PDFlib: powerful toolkits for PDF developers since 1997
_______ See www.pdflib.com/products for product details________

#21572 From: Rainer Plöckl <rp@...>
Date: Mon Jan 23, 2012 9:47 am
Subject: Re: Unit of PDF_info_textflow('textheight')
ruebennase_de
Send Email Send Email
 
Hello,

Am 23.01.2012 09:39, schrieb mrscalahan:
> Hello,
>
> can someone tell me in which unit the value 'text-height' is returned?
>
> - pixel?
> - millimeters?
> - point?

from the PDFlib API reference, chapter 5.4 table 5.16:
"Height of the bounding box of the whole text (taking firstlinedist and
lastlinedist into account) in current user coordinates"
In the PDFlib 8 Tutorial, the coordinates system is explained in detail:
(chapter 3.2.1 "Coordinate Systems"):
"PDFlib client programs may change the default user space by rotating,
scaling, translating, or skewing, resulting in new user coordinates."

=> textflow returns the "textheight" in your used coordinates. If no
scaling is involved, then the value is in points.

kind regards,
Rainer Plöckl
PDFlib Support


--
_______________________________________________________________
Rainer Plöckl        rp@...        http://www.pdflib.com
   PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
        Court of registry/Amtsgericht München HRB 129497
  Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
---------------------------------------------------------------
     PDFlib: powerful toolkits for PDF developers since 1997
_______ See www.pdflib.com/products for product details________

#21573 From: "mrscalahan" <mrscalahan@...>
Date: Mon Jan 23, 2012 9:50 am
Subject: Re: Unit of PDF_info_textflow('textheight')
mrscalahan
Send Email Send Email
 
Thanks!

--- In pdflib@yahoogroups.com, Rainer Plöckl <rp@...> wrote:
>
> Hello,
>
> Am 23.01.2012 09:39, schrieb mrscalahan:
> > Hello,
> >
> > can someone tell me in which unit the value 'text-height' is returned?
> >
> > - pixel?
> > - millimeters?
> > - point?
>
> from the PDFlib API reference, chapter 5.4 table 5.16:
> "Height of the bounding box of the whole text (taking firstlinedist and
> lastlinedist into account) in current user coordinates"
> In the PDFlib 8 Tutorial, the coordinates system is explained in detail:
> (chapter 3.2.1 "Coordinate Systems"):
> "PDFlib client programs may change the default user space by rotating,
> scaling, translating, or skewing, resulting in new user coordinates."
>
> => textflow returns the "textheight" in your used coordinates. If no
> scaling is involved, then the value is in points.
>
> kind regards,
> Rainer Plöckl
> PDFlib Support
>
>
> --
> _______________________________________________________________
> Rainer Plöckl        rp@...        http://www.pdflib.com
>   PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
>        Court of registry/Amtsgericht München HRB 129497
>  Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
> ---------------------------------------------------------------
>     PDFlib: powerful toolkits for PDF developers since 1997
> _______ See www.pdflib.com/products for product details________
>

#21575 From: "oztek314" <oztek314@...>
Date: Thu Jan 26, 2012 8:56 pm
Subject: Text / rectangle question
oztek314
Send Email Send Email
 
How would I create a section header on a page that is basically bold text that
is left justified in a shaded rectangle. That rectangle stretches the width of
page (minus margins) and has a slightly darker color for the border then it's
fill.

I've tried doing this with fit_textline() using various options unsuccessfully
so I'm wondering if I need to accomplish this by drawing the rectangle and then
using fit_textline() to draw the text on top of it like below:

p.save();
p.setlinewidth(.1);
p.setcolor("fill", "rgb", .9, .9, .9, 0);
p.setcolor("stroke", "rgb", .8, .8, .8, .8);
p.rect(lm, vPos-6, 612-lm*2, 13);
p.fill_stroke();
p.restore();

p.fit_textline("ACCOUNT TYPE", lm, vPos-6, "font=" + font + " position={left
center} fontsize=13  strokewidth=.1 boxsize={400 13} "+
					 " margin=4 ");

I should also note that basically the entire pdf we are trying to create is
basically a bunch of cells containing a label and then a blank area that will
either be filled out by person after printing or we will fill it in
electronically. Each cell has border and they can be adjacent to other cells on
all sides.  This is not a table since each row can contain a different number of
cells and they do not necessarily line up with those above and below, but they
all have borders.

Many Thanks

#21576 From: Kurt Stützer <kurt@...>
Date: Fri Jan 27, 2012 4:17 pm
Subject: Re: Text / rectangle question
kurt@...
Send Email Send Email
 
Hi,

I don't understand your problem completely, but I think that you want
to decorate a text dynamically. You can achieved this by means of
option "matchbox" (see PDFlib Tutorial, section 8.4.1).

The option "strokewidth=.1" in p.fit_textline() has only an effect
for underline, strikeout, overline and outline text.

Please contact our support
(http://www.pdflib.com/support-policy/opening-a-support-case/) and show
us your page layout about you
mean that it cannot be realized by PDFlib's table engine.

Kurt

Am 26.01.2012 21:56, schrieb oztek314:
> How would I create a section header on a page that is basically bold
> text that is left justified in a shaded rectangle. That rectangle
> stretches the width of page (minus margins) and has a slightly darker
> color for the border then it's fill.
>
> I've tried doing this with fit_textline() using various options
> unsuccessfully so I'm wondering if I need to accomplish this by drawing
> the rectangle and then using fit_textline() to draw the text on top of
> it like below:
>
> p.save();
> p.setlinewidth(.1);
> p.setcolor("fill", "rgb", .9, .9, .9, 0);
> p.setcolor("stroke", "rgb", .8, .8, .8, .8);
> p.rect(lm, vPos-6, 612-lm*2, 13);
> p.fill_stroke();
> p.restore();
>
> p.fit_textline("ACCOUNT TYPE", lm, vPos-6, "font=" + font + "
> position={left center} fontsize=13 strokewidth=.1 boxsize={400 13} "+
> " margin=4 ");
>
> I should also note that basically the entire pdf we are trying to create
> is basically a bunch of cells containing a label and then a blank area
> that will either be filled out by person after printing or we will fill
> it in electronically. Each cell has border and they can be adjacent to
> other cells on all sides. This is not a table since each row can contain
> a different number of cells and they do not necessarily line up with
> those above and below, but they all have borders.
>
> Many Thanks
>
>

--
_______________________________________________________________
Kurt Stützer           kurt@...           www.pdflib.com
       phone +49 89 452 33 84-15      fax +49 89 452 33 84-99
    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
         Court of registry/Amtsgericht München HRB 129497
   Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
---------------------------------------------------------------
   PDFlib 8: Complex script shaping and bidirectional formatting
for Arabic, Hebrew, Thai, Hindi, and many other writing systems
_______PDFlib - a library for generating PDF on the fly________

#21577 From: Jeffrey Jones <jjones@...>
Date: Tue Jan 31, 2012 9:20 am
Subject: Reading in PDF data without filesystem
jjones@...
Send Email Send Email
 
Ahoi all

I am using the Ruby bindings to PDFlib.

I have a PDF file stored in a location that is not the usual file-system
(Inside a database) and want to pass this PDF data into PDFLib for
processing from ruby.

For example

require "./Pdflib"

# databse stuff

data =  @database_record.pdf_file.data
# data is a string, same as if it were done via ruby's File.read

p = Pdflib.new

p.open_pdi_???

Now at this point I would go to open_pdi_document but this will only
take the name of a file on the file-system. Is there a way to bring the
data into PDFLib without having to write a temporary file just so that
open_pdi_document can read it?

We want to avoid hitting the physical disk since it is a bottleneck in
what we want to be a fast system (Plus some other security related stuff
about having to delete temporary files).

I have looked through the documentation but cannot see anything obvious.

Regards,

Jeff

#21578 From: Rainer Plöckl <rp@...>
Date: Tue Jan 31, 2012 9:23 am
Subject: Re: Reading in PDF data without filesystem
ruebennase_de
Send Email Send Email
 
Am 31.01.2012 10:20, schrieb Jeffrey Jones:
> Now at this point I would go to open_pdi_document but this will only
> take the name of a file on the file-system. Is there a way to bring the
> data into PDFLib without having to write a temporary file just so that
> open_pdi_document can read it?
>
> We want to avoid hitting the physical disk since it is a bottleneck in
> what we want to be a fast system (Plus some other security related stuff
> about having to delete temporary files).

please check out the PDFlib Virtual Filesystem (PVF) to solve your
request. We demontrate this for images in starter_pvf.rb, but this
technique works exactly in the same way also for PDI.


> I have looked through the documentation but cannot see anything obvious.

PDFlib 8.0.4 Tutorial, chapter 3.1.2.

Rainer

--
_______________________________________________________________
Rainer Plöckl        rp@...        http://www.pdflib.com
   PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
        Court of registry/Amtsgericht München HRB 129497
  Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
---------------------------------------------------------------
     PDFlib: powerful toolkits for PDF developers since 1997
_______ See www.pdflib.com/products for product details________

#21579 From: Jeffrey Jones <jjones@...>
Date: Tue Jan 31, 2012 9:29 am
Subject: Re: Reading in PDF data without filesystem
jjones@...
Send Email Send Email
 
Hello Rainer,

Thank you for the speedy reply.

Aah ok, I didn't realise that the PVF could also be used for that.
For some reason I had it in my head that it was only for things like images etc rather than the source PDF templates.

Thank you very much!

Jeff

On 31/01/12 18:23, Rainer Plöckl wrote:
 

Am 31.01.2012 10:20, schrieb Jeffrey Jones:
> Now at this point I would go to open_pdi_document but this will only
> take the name of a file on the file-system. Is there a way to bring the
> data into PDFLib without having to write a temporary file just so that
> open_pdi_document can read it?
>
> We want to avoid hitting the physical disk since it is a bottleneck in
> what we want to be a fast system (Plus some other security related stuff
> about having to delete temporary files).

please check out the PDFlib Virtual Filesystem (PVF) to solve your
request. We demontrate this for images in starter_pvf.rb, but this
technique works exactly in the same way also for PDI.

> I have looked through the documentation but cannot see anything obvious.

PDFlib 8.0.4 Tutorial, chapter 3.1.2.

Rainer

--
__________________________________________________________
Rainer Plöckl rp@... http://www.pdflib.com
PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München, Germany
Court of registry/Amtsgericht München HRB 129497
Managing Directors/Geschäftsführer: Thomas Merz, Petra Porst
----------------------------------------------------------
PDFlib: powerful toolkits for PDF developers since 1997
_______ See www.pdflib.com/products for product details________


Messages 21540 - 21579 of 21943   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help