Search the web
Sign In
New User? Sign Up
pdflib · PDFlib users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 20008 - 20037 of 20037   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries   (Group by Topic) Sort by Date ^  
#20008 From: "devkumar13" <devkumar13@...>
Date: Tue Nov 17, 2009 8:08 pm
Subject: Re: Chinese strings
devkumar13
Offline Offline
Send Email Send Email
 
Thanks Kurt. I will test and let you know if I have any questions. Do you have a
simple c++ sample which prints any of these chinese string to pdf. Thant will
help a lot.

Thanks,

Dev


--- In pdflib@yahoogroups.com, Kurt Stützer <kurt@...> wrote:
>
> Hi Dev,
>
> see below!
>
> devkumar13 wrote:
> >
> >
> > Hi Kurt,
> >
> > Thanks for your suggestions. I took the chinese string from
> > http://gb.chinatimes.com/gate/gb/news.chinatimes.com/
> > <http://gb.chinatimes.com/gate/gb/news.chinatimes.com/>
> >
> > And still it shows ??????. In browser it looks good but in PDF it is all
> > ????. Do you think it is related to something else I might be missing. I
> > did the build as Unicode. Here is how the code looks like now. All the
> > strings are taken from china times.
> >
> > std::string str="&#22269;&#23478;&#21457;&#23637;&#25913;&#38761;&#22996;";
> > p.SetFont(font);
>
> What is it?
>
> > int chFont=p.load_font("AdobeSongStd-Light", "GB-EUC-H", "");
>
> As I told you if you supply Unicode text strings you must supply
> a Unicode CMap (see PDFlib Tutorial Manual):
>
> chFont=p.load_font("STSong-Light", "UniGB-UTF16-H", "keepnative=false");
>
> > p.setfont(chFont,12);
> > p.show_xy(str,50,30);
> >
p.show_xy("&#22269;&#23478;&#21457;&#23637;&#25913;&#38761;&#22996;",50,150);
>
> If you set "encoding=UniGB-UTF16-H" PDFlib expects UTF-16 formatted
> strings. But you supply single byte strings with ASCII characters like
> '&', '#' etc. Therefore you must set
>
> p.set_parameter("textformat", "bytes");
>
> Because you are using character references to express Unicode values
> you must enable character references by
>
> p.set_parameter("charref", "true");
>
> in order that PDFlib can substitute Unicode values for the character
> references.
>
> Kurt
>
> >
p.show_xy("&#20013;&#20449;&#37329;&#25511;&#20170;&#22825;&#19982;&#20013;&#315\
74;&#38598;&#22242;",
> > 50, 80);
> >
p.show_xy("&#20013;&#20449;&#37329;&#25511;&#20170;&#22825;&#19982;&#20013;&#315\
74;&#38598;&#22242;",
> > 50, 100);
> >
> > Any ideas?
> >
> > Thanks,
> > Dev
> >
> > --- In pdflib@yahoogroups.com <mailto:pdflib%40yahoogroups.com>, Kurt
> > Stützer <kurt@> wrote:
> >  >
> >  > Hi Dev,
> >  >
> >  > if the desired text is given as Unicode string
> >  > you can use the corresponding Unicode CMap for
> >  > Simplified Chinese and you can supply the Unicode text
> >  > immediately for the text output function:
> >  >
> >  > chFont=p.load_font("STSong-Light", "UniGB-UTF16-H", "keepnative=false");
> >  > p.setfont(chFont,12);
> >  > p.show_xy("\x80\x7B\x53\x4F\x2D\x4E\x87\x65", 20, 30);
> >  >
> >  > where the literal char array is a Unicode string in little endian byte
> >  > ordering. If the char array contains binary zeros you must specify the
> >  > length of the character array:
> >  >
> >  >
> >
p.show_xy(string("\x41\x00\x42\x00\x43\x00\x20\x00\x80\x7B\x53\x4F\x2D\x4E\x87\x\
65",
> >
> >  >
> >  > 16), 20, 30);
> >  >
> >  > But you can work independently on byte ordering if you are using
> >  > unsigned short arrays:
> >  >
> >  > const unsigned short unitext[] =
> >  > {0x0041, 0x0042, 0x0043, 0x0020, 0x7B80, 0x4F53, 0x4E2D, 0x6587};
> >  > p.show_xy(string((const char *)unitext, 16), 20, 30);
> >  >
> >  > Sorry, but I didn't understand the string L"¹ú¼Ò·¢Õ¹¸Ä¸ïί" (Unicode?).
> >  > Therefore I took an own sample text. Please keep in mind that PDFlib
> >  > doesn't support wstring in the C++ language binding.
> >  >
> >  > If the desired text is given as Simplified Chinese string
> >  > according "GB-EUC-H" (or "cp936" resp.) you can supply the text
> >  > immediately as Simplified Chinese string:
> >  >
> >  > int chFont=p.load_font("STSong-Light", "GB-EUC-H", "keepnative=false");
> >  > p.setfont(chFont,12);
> >  > p.show_xy("\x41\x42\x43\x20\xBC\xF2\xCC\xE5\xD6\xD0\xCE\xC4", 20, 30);
> >  >
> >  > where str is the text as Simplified Chinese string which doesn't
> >  > contain any binary zeros. Conversions are not necessary.
> >  >
> >  > Kurt
> >  >
> >  >
> >  > devkumar13 wrote:
> >  > >
> >  > >
> >  > > Hi,
> >  > >
> >  > > I am new to UNICODE and multi-language. I am struggling with creating
> >  > > pdf doc with chinese. Here is a sample code in C++. I am using
> > pdflib 7.0.3.
> >  > >
> >  > > std::wstring wstr=L"¹ú¼Ò·¢Õ¹¸Ä¸ïί";
> >  > > string strTitle;
> >  > >
> >  > > p.SetFont(font);
> >  > > int chFont=p.load_font("STSong-Light", "GB-EUC-H", "keepnative=false");
> >  > > p.setfont(chFont,12);
> >  > > char *szTo = new char[wstr.length() + 1];
> >  > > szTo[wstr.size()] = '\0';
> >  > > WideCharToMultiByte(CP_ACP, 0, wstr.c_str(), -1, szTo,
> >  > > (int)wstr.length(), NULL, NULL);
> >  > > strTitle = szTo;
> >  > > p.show_xy(strTitle,20,30);
> >  > >
> >  > > It shows ????? instead of the chinese string. I will be grateful
> > for all
> >  > > the help in this regard.
> >  > >
> >  > > Thanks,
> >  > > Dev
> >  > >
> >  > >
> >  >
> >  > --
> >  > __________________________________________________________
> >  > Kurt Stützer kurt@ http://www.pdflib.com <http://www.pdflib.com>
> >  > PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München, Germany
> >  > Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
> >  > ----------------------------------------------------------
> >  > PDFlib 7: Create PDF/A for archiving, format tables, and more!
> >  > _______PDFlib - a library for generating PDF on the fly________
> >  >
> >
> >
>
> --
> _______________________________________________________________
> Kurt Stützer       kurt@...        http://www.pdflib.com
>     PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München, Germany
>    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
> ---------------------------------------------------------------
> PDFlib 7:  Create PDF/A for archiving, format tables, and more!
> _______PDFlib - a library for generating PDF on the fly________
>

#20009 From: "kodexe77@..." <per@...>
Date: Wed Nov 18, 2009 10:13 am
Subject: .NET x64 "Bad image format"
kodexe77...
Offline Offline
Send Email Send Email
 
Hello,

I am using the public PDFLib 8 beta for .NET and Visual Studio 2008 on Windows 7
x64.

If I compile against "AnyCPU" or "x64", I get an image loading error at runtime:

Unhandled Exception: System.BadImageFormatException: Could not load file or
assembly 'PDFlib_dotnet, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=af0805f2b25bb299' or one of its dependencies. An attempt was made
to load a program with an incorrect format.
File name: 'PDFlib_dotnet, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=af0805f2b25bb299'

If I compile against "x86", it works. So my questions now are;

1. Is this because the .NET DLL is compiled specifically against x86?

2. Does this mean IIS on Windows x64 will need to run in explicit x86 mode
(which has a performance hit) for PDFLib to work?

(Please note that the Windows Server operating system series is *discontinued*
for x86, so PDFLib should seriously consider upgrading itself to either AnyCPU
or x64.)

Best regards from Sweden,

#20010 From: Thomas Merz <tm@...>
Date: Wed Nov 18, 2009 12:03 pm
Subject: Re: .NET x64 "Bad image format"
thomasmerz1
Offline Offline
Send Email Send Email
 
kodexe77@... wrote:
> I am using the public PDFLib 8 beta for .NET and Visual Studio 2008 on Windows
7 x64.
>
> If I compile against "AnyCPU" or "x64", I get an image loading error at
runtime:
>
> Unhandled Exception: System.BadImageFormatException: Could not load file or
assembly 'PDFlib_dotnet, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=af0805f2b25bb299' or one of its dependencies. An attempt was made
to load a program with an incorrect format.
> File name: 'PDFlib_dotnet, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=af0805f2b25bb299'
>
> If I compile against "x86", it works. So my questions now are;
>
> 1. Is this because the .NET DLL is compiled specifically against x86?
>
> 2. Does this mean IIS on Windows x64 will need to run in explicit x86 mode
(which has a performance hit) for PDFLib to work?
>
> (Please note that the Windows Server operating system series is *discontinued*
for x86, so PDFLib should seriously consider upgrading itself to either AnyCPU
or x64.)

We support our products on Windows x64 platforms since a long
time. The fact is simply that a Windows x64 version of Beta 1
has not been produced. We will release PDFlib 8 Beta 2 in a
few days, and will add x64 binaries for your testing.

Thomas

_______________________________________________________________
Thomas Merz             tm@...            www.pdflib.com
    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
---------------------------------------------------------------
PDFlib 7:  Create PDF/A for archiving, format tables, and more!
_______PDFlib - a library for generating PDF on the fly________

#20011 From: "kodexe77@..." <per@...>
Date: Wed Nov 18, 2009 1:14 pm
Subject: Re: .NET x64 "Bad image format"
kodexe77...
Offline Offline
Send Email Send Email
 
Thomas Merz <tm@...> wrote:
>
> kodexe77@... wrote:
> >
> > I am using the public PDFLib 8 beta for .NET and Visual
> > Studio 2008 on Windows 7 x64.
> >
> > If I compile against "AnyCPU" or "x64", I get an image
> > loading error at runtime:
> >
> > [...]
>
> We support our products on Windows x64 platforms since a long
> time. The fact is simply that a Windows x64 version of Beta 1
> has not been produced. We will release PDFlib 8 Beta 2 in a
> few days, and will add x64 binaries for your testing.

That's good news. Since the download page for beta 8 didn't mention anything
about x86/x64/AnyCPU for .NET I misunderstood.

Thanks, looking forward to the new beta!

#20012 From: "bontjerate" <a.bontjer@...>
Date: Thu Nov 19, 2009 2:54 pm
Subject: Transparency causes color change in print
bontjerate
Offline Offline
Send Email Send Email
 
Hi,

I'm creating a transparent rectangle in my code but some printers messes up this
page with transparency. The page with transparency is darker then the page
without transparency.

On our screens the colors are perfect and when I meassure these colors they all
are the same (cmyk 0, 75, 0, 100).

Is there a way the prevent the colors from changing while printing?

Thanks

Not sure if it's needed but here is my code for generating the transparency:
if($p->pcos_get_string($indoc, "type:pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock") != "null")
{
	 $llx = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[0]");
	 $lly = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[1]");
	 $urx = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[2]");
	 $ury = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[3]");

	 $p->save();
	 $gstate = $p->create_gstate("opacityfill=.8");
	 $p->set_gstate($gstate);
	 $p->setcolor("fill", "cmyk", 0, 0, 0, 0);
	 $p->rect($llx, $lly, $urx-$llx, $ury-$lly);
	 $p->fill();
	 $p->restore();
}

#20013 From: Thomas Merz <tm@...>
Date: Thu Nov 19, 2009 3:05 pm
Subject: Re: Transparency causes color change in print
thomasmerz1
Offline Offline
Send Email Send Email
 
I believe the "transparencygroup" option in PDF_begin/end_page()
is your friend. From its description:

Default: if a page contains image masks with more than 1 bit
or the opacityfill/opacitystroke options of PDF_create_gstate( )
the following option list will automatically be created to
improve output quality:
"transparencygroup={CS=DeviceRGB}"

You can try this option explicitly in your code. If it solves
the problem, you are either using an older version of PDFlib
(the automatic has been introduced in 7.0.3), or you ran into
a bug.

Please let us know whether the option list above solves your
problem.

Thomas



bontjerate wrote:
> Hi,
>
> I'm creating a transparent rectangle in my code but some printers messes up
this page with transparency. The page with transparency is darker then the page
without transparency.
>
> On our screens the colors are perfect and when I meassure these colors they
all are the same (cmyk 0, 75, 0, 100).
>
> Is there a way the prevent the colors from changing while printing?
>
> Thanks
>
> Not sure if it's needed but here is my code for generating the transparency:
> if($p->pcos_get_string($indoc, "type:pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock") != "null")
> {
>  $llx = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[0]");
>  $lly = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[1]");
>  $urx = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[2]");
>  $ury = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[3]");
>
>  $p->save();
>  $gstate = $p->create_gstate("opacityfill=.8");
>  $p->set_gstate($gstate);
>  $p->setcolor("fill", "cmyk", 0, 0, 0, 0);
>  $p->rect($llx, $lly, $urx-$llx, $ury-$lly);
>  $p->fill();
>  $p->restore();
> }
>

_______________________________________________________________
Thomas Merz             tm@...            www.pdflib.com
    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
---------------------------------------------------------------
PDFlib 7:  Create PDF/A for archiving, format tables, and more!
_______PDFlib - a library for generating PDF on the fly________

#20014 From: "bontjerate" <a.bontjer@...>
Date: Thu Nov 19, 2009 3:17 pm
Subject: Re: Transparency causes color change in print
bontjerate
Offline Offline
Send Email Send Email
 
Hi Thomas,

Does transparencygroup={CS=DeviceRGB} add RGB colors to the file? And if so, is
transparencygroup={CS=DeviceCMYK} a good replacement?

--- In pdflib@yahoogroups.com, Thomas Merz <tm@...> wrote:
>
> I believe the "transparencygroup" option in PDF_begin/end_page()
> is your friend. From its description:
>
> Default: if a page contains image masks with more than 1 bit
> or the opacityfill/opacitystroke options of PDF_create_gstate( )
> the following option list will automatically be created to
> improve output quality:
> "transparencygroup={CS=DeviceRGB}"
>
> You can try this option explicitly in your code. If it solves
> the problem, you are either using an older version of PDFlib
> (the automatic has been introduced in 7.0.3), or you ran into
> a bug.
>
> Please let us know whether the option list above solves your
> problem.
>
> Thomas
>
>
>
> bontjerate wrote:
> > Hi,
> >
> > I'm creating a transparent rectangle in my code but some printers messes up
this page with transparency. The page with transparency is darker then the page
without transparency.
> >
> > On our screens the colors are perfect and when I meassure these colors they
all are the same (cmyk 0, 75, 0, 100).
> >
> > Is there a way the prevent the colors from changing while printing?
> >
> > Thanks
> >
> > Not sure if it's needed but here is my code for generating the transparency:
> > if($p->pcos_get_string($indoc, "type:pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock") != "null")
> > {
> >  $llx = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[0]");
> >  $lly = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[1]");
> >  $urx = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[2]");
> >  $ury = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[3]");
> >
> >  $p->save();
> >  $gstate = $p->create_gstate("opacityfill=.8");
> >  $p->set_gstate($gstate);
> >  $p->setcolor("fill", "cmyk", 0, 0, 0, 0);
> >  $p->rect($llx, $lly, $urx-$llx, $ury-$lly);
> >  $p->fill();
> >  $p->restore();
> > }
> >
>
> _______________________________________________________________
> Thomas Merz             tm@...            www.pdflib.com
>    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
>    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
> ---------------------------------------------------------------
> PDFlib 7:  Create PDF/A for archiving, format tables, and more!
> _______PDFlib - a library for generating PDF on the fly________
>

#20015 From: Thomas Merz <tm@...>
Date: Thu Nov 19, 2009 3:21 pm
Subject: Re: Re: Transparency causes color change in print
thomasmerz1
Offline Offline
Send Email Send Email
 
bontjerate wrote:
> Does transparencygroup={CS=DeviceRGB} add RGB colors to the file?

No, it doesn't.

  > And if so, is transparencygroup={CS=DeviceCMYK} a good replacement?

DeviceCMYK is Acrobat's default color space for the transparency
calculations, which causes the color shifts in the first place.
This option doesn't add any colors to the file, but instructs
Acrobat _not_ to switch to an unwanted (different) color space
when rendering the colors.

I expect that transparencygroup={CS=DeviceCMYK} would not
solve your problem.

Thomas

_______________________________________________________________
Thomas Merz             tm@...            www.pdflib.com
    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
---------------------------------------------------------------
PDFlib 7:  Create PDF/A for archiving, format tables, and more!
_______PDFlib - a library for generating PDF on the fly________

#20016 From: "bontjerate" <a.bontjer@...>
Date: Thu Nov 19, 2009 3:56 pm
Subject: Re: Transparency causes color change in print
bontjerate
Offline Offline
Send Email Send Email
 
Hi Thomas,

Both the "transparencygroup={CS=DeviceCMYK}" and the
"transparencygroup={CS=DeviceRGB}" doesn't help. The colors still changes on the
page with the transparency.

Maybe its something in my code:
	 public function createPdf($preview = false)
	 {
		 global $config;
		 global $settings;

		 $infile = dirname(__FILE__).'/pdf/MateriaaloptieFolder.pdf';

		 if($preview)
		 {
			 $outfile = uniqid(md5(time()), true);
			 $outfilePath = $config->pdf['tmp'].'/'.$outfile.'.pdf';
		 }
		 else
		 {
			 $outfile = $this->bestellingId;
			 $outfilePath = $config->pdf['path'].'/'.$outfile.'.pdf';
		 }

		 try
		 {
			 $p = new PDFlib();

			 //$p->set_parameter("errorpolicy", "return");
			 $p->set_parameter("openwarning", "true");
			 $p->set_parameter("textformat", "utf8");
			 $p->set_parameter("license", $config->pdflib['license']);

			 $p->set_info("Title", "Document");

			 if($p->begin_document($outfilePath, "tempdirname=".$config->site['tmp']."
optimize=true") == 0)
			 {
				 die("Error: " . $p->get_errmsg());
			 }

			 if(($indoc = $p->open_pdi_document($infile, "")) == 0)
			 {
				 die("Error: " . $p->get_errmsg());
			 }

			 $p->load_font($config->pdf['fonts']."/SUNSC-BO", "winansi", "embedding");
			 $p->load_font($config->pdf['fonts']."/SUNSC-BI", "winansi", "embedding");
			 $p->load_font($config->pdf['fonts']."/SUNSCEBI", "winansi", "embedding");
			 $p->load_font($config->pdf['fonts']."/SUNCD-IT", "winansi", "embedding");
			 $p->load_font($config->pdf['fonts']."/SUN-REGU", "winansi", "embedding");
			 $p->load_font($config->pdf['fonts']."/SUN-BOLD", "winansi", "embedding");

			 $pages = $p->pcos_get_number($indoc, "length:pages");

			 for($pageNumber = 1;$pageNumber <= $pages;$pageNumber++)
			 {
				 if(($page = $p->open_pdi_page($indoc, $pageNumber, "")) == 0)
				 {
					 die("Error: " . $p->get_errmsg());
				 }

				 $optlist = "";

				 if($p->pcos_get_string($indoc, "type:pages[".($pageNumber - 1)."]/BleedBox")
== "array")
				 {
					 $bleedBox = array();
					 $bleedBox['llx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/BleedBox[0]");
					 $bleedBox['lly'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/BleedBox[1]");
					 $bleedBox['urx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/BleedBox[2]");
					 $bleedBox['ury'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/BleedBox[3]");
					 $optlist .= "bleedbox={".$bleedBox['llx']." ".$bleedBox['lly']."
".$bleedBox['urx']." ".$bleedBox['ury']."} ";
				 }

				 if($p->pcos_get_string($indoc, "type:pages[".($pageNumber - 1)."]/CropBox")
== "array")
				 {
					 $cropBox = array();
					 $cropBox['llx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/CropBox[0]");
					 $cropBox['lly'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/CropBox[1]");
					 $cropBox['urx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/CropBox[2]");
					 $cropBox['ury'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/CropBox[3]");
					 $optlist .= "cropbox={".$cropBox['llx']." ".$cropBox['lly']."
".$cropBox['urx']." ".$cropBox['ury']."} ";
				 }

				 if($p->pcos_get_string($indoc, "type:pages[".($pageNumber - 1)."]/TrimBox")
== "array")
				 {
					 $trimBox = array();
					 $trimBox['llx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/TrimBox[0]");
					 $trimBox['lly'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/TrimBox[1]");
					 $trimBox['urx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/TrimBox[2]");
					 $trimBox['ury'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/TrimBox[3]");
					 $optlist .= "trimbox={".$trimBox['llx']." ".$trimBox['lly']."
".$trimBox['urx']." ".$trimBox['ury']."} ";
				 }

				 if($p->pcos_get_string($indoc, "type:pages[".($pageNumber - 1)."]/MediaBox")
== "array")
				 {
					 $mediaBox = array();
					 $mediaBox['llx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/MediaBox[0]");
					 $mediaBox['lly'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/MediaBox[1]");
					 $mediaBox['urx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/MediaBox[2]");
					 $mediaBox['ury'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/MediaBox[3]");
					 $optlist .= "mediabox={".$mediaBox['llx']." ".$mediaBox['lly']."
".$mediaBox['urx']." ".$mediaBox['ury']."} ";
				 }

				 $width = $p->pcos_get_number($indoc, "pages[".($pageNumber - 1)."]/width");
				 $height = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/height");

				 if($p->begin_page_ext($width, $height, $optlist."
transparencygroup={CS=DeviceCMYK}") == 0)
				 {
					 die("Error: " . $p->get_errmsg());
				 }

				 $p->fit_pdi_page($page, 0, 0, "");
/**
  * Pagina 1
  */
				 if(!$this->pagina1FotoLijsttrekker && $this->pagina1FotoLijsttrekkerImageId)
				 {
					 $this->pagina1FotoLijsttrekker = new
Afbeelding($this->pagina1FotoLijsttrekkerImageId);
				 }

				 if($preview)
				 {
					 $imagefile = $this->pagina1FotoLijsttrekker->previewPath;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina1FotoLijsttrekker', $imagefile, $this->pagina1FotoLijsttrekkerImageId,
'preview_');
				 }
				 else
				 {
					 $imagefile = $this->pagina1FotoLijsttrekker->path;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina1FotoLijsttrekker', $imagefile, $this->pagina1FotoLijsttrekkerImageId);
				 }

				 $image = $p->load_image("auto", $imagefile, "");
				 $p->fill_imageblock($page, "pagina1FotoLijsttrekker", $image,
"position={center top} fitmethod=slice");

				 if($this->pagina1Lijstnummer)
				 {
					 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
							  ."fontsize=97.817 "
							  ."fitmethod=nofit "
							  ."encoding=unicode "
							  ."alignment=right "
							  ."fillcolor={cmyk 0 0 0 0} "
							  ."textflow=true "
							  ."textrendering=2 "
							  ."strokecolor={cmyk 0.75 0 1 0} "
							  ."strokewidth=0.82 "
							  ."firstlinedist=capheight "
							  ."verticalalign=top "
							  ."embedding=true "
							  ."fitmethod=clip "
							  //."autocidfont=false "
							  //."unicodemap=false "
							  ."";
					 $p->fill_textblock($page, "pagina1Lijstnummer", $this->pagina1Lijstnummer,
$optlist);
				 }

				 if($p->pcos_get_string($indoc, "type:pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock") != "null")
				 {
					 $llx = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[0]");
					 $lly = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[1]");
					 $urx = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[2]");
					 $ury = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[3]");

					 $p->save();
					 $gstate = $p->create_gstate("opacityfill=.8");
					 $p->set_gstate($gstate);
					 $p->setcolor("fill", "cmyk", 0, 0, 0, 0);
					 $p->rect($llx, $lly, $urx-$llx, $ury-$lly);
					 $p->fill();
					 $p->restore();
				 }

				 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BI "
						  ."fontsize=25.723 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=center "
						  ."fillcolor={cmyk 0 0 0 1} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  //."autocidfont=false "
						  //."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina1NaamLijsttrekker",
$this->pagina1NaamLijsttrekker, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUNSCEBI "
						  ."fontsize=17 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0.75 0 1 0} "
						  ."textflow=true "
						  ."rotate=0 orientate west "
						  ."embedding=true "
						  ."fitmethod=clip "
						  //."autocidfont=false "
						  //."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina1Slogan", $this->pagina1Slogan, $optlist);

/**
  * Pagina 2
  */

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-BOLI "
						  ."fontsize=20 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=center "
						  ."fillcolor={cmyk 0 0 0 0} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina2Slogan", $this->pagina2Slogan, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUNCD-IT "
						  ."fontsize=17 "
						  ."encoding=unicode "
						  ."alignment=justify "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0.75 0 1 0} "
						  ."textflow=true "
						  ."leading=24 "
						  ."embedding=true "
						  ."fitmethod=clip "
						  //."autocidfont=false "
						  //."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina2Inleiding", $this->pagina2Inleiding,
$optlist);

				 if(!$this->pagina2Tekstblok1Foto && $this->pagina2Tekstblok1FotoImageId)
				 {
					 $this->pagina2Tekstblok1Foto = new
Afbeelding($this->pagina2Tekstblok1FotoImageId);
				 }

				 if($preview)
				 {
					 $imagefile = $this->pagina2Tekstblok1Foto->previewPath;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina2Tekstblok1Foto', $imagefile, $this->pagina2Tekstblok1FotoImageId,
'preview_');
				 }
				 else
				 {
					 $imagefile = $this->pagina2Tekstblok1Foto->path;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina2Tekstblok1Foto', $imagefile, $this->pagina2Tekstblok1FotoImageId);
				 }

				 $image = $p->load_image("auto", $imagefile, "");
				 $p->fill_imageblock($page, "pagina2Tekstblok1Foto", $image,
"position={center top} fitmethod=slice");

				 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
						  ."fontsize=10 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0.55 1 0} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  //."autocidfont=false "
						  //."unicodemap=false "
						  ."";

				 $p->fill_textblock($page, "pagina2Tekstblok1Titel",
$this->pagina2Tekstblok1Titel, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
						  ."fontsize=9 "
						  ."encoding=unicode "
						  ."alignment=justify "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0 0 1} "
						  ."textflow=true "
						  ."leading=12 "
						  ."embedding=true "
						  ."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina2Tekstblok1Tekst",
$this->pagina2Tekstblok1Tekst, $optlist);

				 if(!$this->pagina2Tekstblok2Foto && $this->pagina2Tekstblok2FotoImageId)
				 {
					 $this->pagina2Tekstblok2Foto = new
Afbeelding($this->pagina2Tekstblok2FotoImageId);
				 }

				 if($preview)
				 {
					 $imagefile = $this->pagina2Tekstblok2Foto->previewPath;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina2Tekstblok2Foto', $imagefile, $this->pagina2Tekstblok2FotoImageId,
'preview_');
				 }
				 else
				 {
					 $imagefile = $this->pagina2Tekstblok2Foto->path;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina2Tekstblok2Foto', $imagefile, $this->pagina2Tekstblok2FotoImageId);
				 }

				 $image = $p->load_image("auto", $imagefile, "");
				 $p->fill_imageblock($page, "pagina2Tekstblok2Foto", $image,
"position={center top} fitmethod=slice");

				 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
						  ."fontsize=10 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0.55 1 0} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  //."autocidfont=false "
						  //."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina2Tekstblok2Titel",
$this->pagina2Tekstblok2Titel, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
						  ."fontsize=9 "
						  ."encoding=unicode "
						  ."alignment=justify "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0 0 1} "
						  ."textflow=true "
						  ."leading=12 "
						  ."embedding=true "
						  ."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina2Tekstblok2Tekst",
$this->pagina2Tekstblok2Tekst, $optlist);

/**
  * Pagina 3
  */

				 if(!$this->pagina3Tekstblok1Foto && $this->pagina3Tekstblok1FotoImageId)
				 {
					 $this->pagina3Tekstblok1Foto = new
Afbeelding($this->pagina3Tekstblok1FotoImageId);
				 }

				 if($preview)
				 {
					 $imagefile = $this->pagina3Tekstblok1Foto->previewPath;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok1Foto', $imagefile, $this->pagina3Tekstblok1FotoImageId,
'preview_');
				 }
				 else
				 {
					 $imagefile = $this->pagina3Tekstblok1Foto->path;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok1Foto', $imagefile, $this->pagina3Tekstblok1FotoImageId);
				 }

				 $image = $p->load_image("auto", $imagefile, "");
				 $p->fill_imageblock($page, "pagina3Tekstblok1Foto", $image,
"position={center top} fitmethod=slice");

				 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
						  ."fontsize=10 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0.55 1 0} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  //."autocidfont=false "
						  //."unicodemap=false "
						  ."";

				 $p->fill_textblock($page, "pagina3Tekstblok1Titel",
$this->pagina3Tekstblok1Titel, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
						  ."fontsize=9 "
						  ."encoding=unicode "
						  ."alignment=justify "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0 0 1} "
						  ."textflow=true "
						  ."leading=12 "
						  ."embedding=true "
						  ."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina3Tekstblok1Tekst",
$this->pagina3Tekstblok1Tekst, $optlist);

				 if(!$this->pagina3Tekstblok2Foto && $this->pagina3Tekstblok2FotoImageId)
				 {
					 $this->pagina3Tekstblok2Foto = new
Afbeelding($this->pagina3Tekstblok2FotoImageId);
				 }

				 if($preview)
				 {
					 $imagefile = $this->pagina3Tekstblok2Foto->previewPath;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok2Foto', $imagefile, $this->pagina3Tekstblok2FotoImageId,
'preview_');
				 }
				 else
				 {
					 $imagefile = $this->pagina3Tekstblok2Foto->path;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok2Foto', $imagefile, $this->pagina3Tekstblok2FotoImageId);
				 }

				 $image = $p->load_image("auto", $imagefile, "");
				 $p->fill_imageblock($page, "pagina3Tekstblok2Foto", $image,
"position={center top} fitmethod=slice");

				 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
						  ."fontsize=10 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0.55 1 0} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  //."autocidfont=false "
						  //."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina3Tekstblok2Titel",
$this->pagina3Tekstblok2Titel, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
						  ."fontsize=9 "
						  ."encoding=unicode "
						  ."alignment=justify "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0 0 1} "
						  ."textflow=true "
						  ."leading=12 "
						  ."embedding=true "
						  ."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina3Tekstblok2Tekst",
$this->pagina3Tekstblok2Tekst, $optlist);

				 if(!$this->pagina3Tekstblok3Foto && $this->pagina3Tekstblok3FotoImageId)
				 {
					 $this->pagina3Tekstblok3Foto = new
Afbeelding($this->pagina3Tekstblok3FotoImageId);
				 }

				 if($preview)
				 {
					 $imagefile = $this->pagina3Tekstblok3Foto->previewPath;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok3Foto', $imagefile, $this->pagina3Tekstblok3FotoImageId,
'preview_');
				 }
				 else
				 {
					 $imagefile = $this->pagina3Tekstblok3Foto->path;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok3Foto', $imagefile, $this->pagina3Tekstblok3FotoImageId);
				 }

				 $image = $p->load_image("auto", $imagefile, "");
				 $p->fill_imageblock($page, "pagina3Tekstblok3Foto", $image,
"position={center top} fitmethod=slice");

				 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
						  ."fontsize=10 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0.55 1 0} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  //."autocidfont=false "
						  //."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina3Tekstblok3Titel",
$this->pagina3Tekstblok3Titel, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
						  ."fontsize=9 "
						  ."encoding=unicode "
						  ."alignment=justify "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0 0 1} "
						  ."textflow=true "
						  ."leading=12 "
						  ."embedding=true "
						  ."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina3Tekstblok3Tekst",
$this->pagina3Tekstblok3Tekst, $optlist);

/**
  * Pagina 4
  */
				 if(!$this->pagina4Tekstblok1Foto && $this->pagina4Tekstblok1FotoImageId)
				 {
					 $this->pagina4Tekstblok1Foto = new
Afbeelding($this->pagina4Tekstblok1FotoImageId);
				 }

				 if($preview)
				 {
					 $imagefile = $this->pagina4Tekstblok1Foto->previewPath;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina4Tekstblok1Foto', $imagefile, $this->pagina4Tekstblok1FotoImageId,
'preview_');
				 }
				 else
				 {
					 $imagefile = $this->pagina4Tekstblok1Foto->path;

					 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina4Tekstblok1Foto', $imagefile, $this->pagina4Tekstblok1FotoImageId);
				 }

				 $image = $p->load_image("auto", $imagefile, "");
				 $p->fill_imageblock($page, "pagina4Tekstblok1Foto", $image,
"position={center top} fitmethod=slice");

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-BOLI "
						  ."fontsize=20 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0.75 0 1 0} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina4Tekstblok1Titel",
$this->pagina4Tekstblok1Titel, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-BOLD "
						  ."fontsize=11 "
						  ."encoding=unicode "
						  ."alignment=justify "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0.75 0 1 0} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."leading=109% "
						  ."";
				 $p->fill_textblock($page, "pagina4Tekstblok1Tekst",
$this->pagina4Tekstblok1Tekst, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-BOLI "
						  ."fontsize=20 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0.55 1 0} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."";
				 $p->fill_textblock($page, "pagina4Tekstblok2Titel",
$this->pagina4Tekstblok2Titel, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
						  ."fontsize=9.5 "
						  ."encoding=unicode "
						  ."alignment=justify "
						  ."firstlinedist=capheight "
						  ."verticalalign=top "
						  ."fillcolor={cmyk 0 0 0 1} "
						  ."textflow=true "
						  ."embedding=true "
						  ."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."leading=126% "
						  ."";
				 $p->fill_textblock($page, "pagina4Tekstblok2Tekst",
$this->pagina4Tekstblok2Tekst, $optlist);

				 $optlist = "fontname=".$config->pdf['fonts']."/SUN-BOLD "
						  ."fontsize=11 "
						  ."encoding=unicode "
						  ."alignment=left "
						  ."firstlinedist=capheight "
						  ."verticalalign=center "
						  ."fillcolor={cmyk 0 0 0 1} "
						  ."textflow=true "
						  ."embedding=true "
						  //."fitmethod=clip "
						  ."autocidfont=false "
						  ."unicodemap=false "
						  ."leading=126% "
						  ."";
				 $p->fill_textblock($page, "pagina4MeerInformatie",
$this->pagina4MeerInformatie, $optlist);

				 $p->end_page_ext("");
				 $p->close_pdi_page($page);
			 }

			 $p->end_document("");
			 $p->close_pdi_document($indoc);

			 return array($outfile);
		 }
		 catch (Exception $e) { Common::debug($e); }
	 }

--- In pdflib@yahoogroups.com, Thomas Merz <tm@...> wrote:
>
> bontjerate wrote:
> > Does transparencygroup={CS=DeviceRGB} add RGB colors to the file?
>
> No, it doesn't.
>
>  > And if so, is transparencygroup={CS=DeviceCMYK} a good replacement?
>
> DeviceCMYK is Acrobat's default color space for the transparency
> calculations, which causes the color shifts in the first place.
> This option doesn't add any colors to the file, but instructs
> Acrobat _not_ to switch to an unwanted (different) color space
> when rendering the colors.
>
> I expect that transparencygroup={CS=DeviceCMYK} would not
> solve your problem.
>
> Thomas
>
> _______________________________________________________________
> Thomas Merz             tm@...            www.pdflib.com
>    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
>    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
> ---------------------------------------------------------------
> PDFlib 7:  Create PDF/A for archiving, format tables, and more!
> _______PDFlib - a library for generating PDF on the fly________
>

#20017 From: "saibaba111" <saibaba111@...>
Date: Thu Nov 19, 2009 11:13 pm
Subject: How to combine pdfs into 1 pdf
saibaba111
Offline Offline
Send Email Send Email
 
Hi all,

    I am quite new to pdflib and wondering if it is possible to combine more than
1 pdfs into 1 pdf using vbscript and pdflib?

   If so could someone please share the sample code with me?

Thanks
Sai

#20018 From: Rainer Plöckl <rp@...>
Date: Fri Nov 20, 2009 9:01 am
Subject: Re: How to combine pdfs into 1 pdf
ruebennase_de
Offline Offline
Send Email Send Email
 
Sai,

saibaba111 schrieb:
> Hi all,
>
>    I am quite new to pdflib and wondering if it is possible to combine more
than 1 pdfs into 1 pdf using vbscript and pdflib?
>
>   If so could someone please share the sample code with me?

you can do this with PDFlib+PDI. We provide an example in our
download packages which demonstrate this task: starter_pdfmerge.
Please check the provided examples for this task.

best regards
Rainer


--
Rainer Plöckl        rp@...        http://www.pdflib.com
   PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
   Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
---------------------------------------------------------------
PDFlib 7:  Create PDF/A for archiving, format tables, and more!
_______PDFlib - a library for generating PDF on the fly________

#20019 From: "saibaba111" <saibaba111@...>
Date: Fri Nov 20, 2009 5:04 pm
Subject: Re: How to combine pdfs into 1 pdf
saibaba111
Offline Offline
Send Email Send Email
 
Hi Rainer,

    Thank you for responding to my question.

    I looked for starter_pdfmerge examples however I couldn't find any examples
in vbscript.

    Do you know if this can be done in vbscript or not?

Thanks
Sai

--- In pdflib@yahoogroups.com, Rainer Plöckl <rp@...> wrote:
>
> Sai,
>
> saibaba111 schrieb:
> > Hi all,
> >
> >    I am quite new to pdflib and wondering if it is possible to combine more
than 1 pdfs into 1 pdf using vbscript and pdflib?
> >
> >   If so could someone please share the sample code with me?
>
> you can do this with PDFlib+PDI. We provide an example in our
> download packages which demonstrate this task: starter_pdfmerge.
> Please check the provided examples for this task.
>
> best regards
> Rainer
>
>
> --
> Rainer Plöckl        rp@...        http://www.pdflib.com
>   PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
>   Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
> ---------------------------------------------------------------
> PDFlib 7:  Create PDF/A for archiving, format tables, and more!
> _______PDFlib - a library for generating PDF on the fly________
>

#20020 From: "mikegreineder" <mikegreineder@...>
Date: Fri Nov 20, 2009 5:30 pm
Subject: Re: PDFLib not Embedding Font
mikegreineder
Offline Offline
Send Email Send Email
 
Was this issue resolved?  I am having a similar problem.

I have a DLL that references PDFLib, and all set font and text calls are using
the "embedded" value.

If I run the code to create the PDF with the fonts installed on the host running
the dll, they all embed correctly.  If I run the same code with the fonts not
installed, but specified through the upr file it embeds some of the fonts.  Out
of the 8 non-standard fonts in the UPR file some embed fully, some don't embed
at all, and some have 2 entries, one embedded and one not embedded.

Could someone shed some light on this issue?

Thanks,

Mike

--- In pdflib@yahoogroups.com, Kurt Stützer <kurt@...> wrote:
>
> Ken,
>
> I found 2 entries for "Helvetica":
>
> FontPFM
> Helvetica=Helvet77.pfm
> Helvetica=Helvetic.pfm
>
> FontOutline
> Helvetica=Helvet77.pfb
> Helvetica=Helvetic.pfb
>
> The last one of a resource category will win.
> Otherwise I didn't find any bogus things.
>
> BTW: On which platforms are you working?
>
> Kurt
>
> Ken DesRochers wrote:
> > Here is the PDFlib.upr file.
> >
> > Thanks, Ken D.
> >
> >
> > On 3/16/09 11:51 AM, "Kurt Stützer" <kurt@...> wrote:
> >
> >>
> >>
> >>
> >> Ken,
> >>
> >> please bear in mind that you must specify "embedding" in load_font()
> >> or in fill_textblock() resp. Default is always "embedding=false" even
> >> if PFM and PFB files are specified.
> >>
> >> Please show us the respective entries of the pdflib.upr file and
> >> the load_font() / fill_textblock() call for "Helvetica".
> >> pdflib.upr is a kind of resource file for PDFlib, see chapter 3.1.3
> >> of PDFlib Tutorial.
> >>
> >> Kurt
> >>
> >> Ken DesRochers wrote:
> >>>> Hi,
> >>>>
> >>>> We are using PDFlib 6.0.3p1 and generate images of Business Cards from
> >>>> Dynamic Text.  All works well and the fonts are always embedded in the
> >>>> resulting PDF files.  Except when we use Helvetica.  It does not embed
> >>>> itself.  We have all of the same PFM and PFB files as the other fonts. 
We
> >>>> have looked at the pdflib.upr file and it seems to be correct but am not
> >>>> sure what this file does.
> >>>>
> >>>> Anyone experience similar problems with Helvetica?
> >>>>
> >>>> Thanks, Ken D.
> >>>> -------------------------------------
> >>>> Ken DesRochers
> >>>> IT Director
> >>>> kdesrochers@... <mailto:kdesrochers%40aslegal.com>
> >>>> 908-956-6526
> >>>>
> >>>>
> >>>>
> >>>>
> >
> > -------------------------------------
> > Ken DesRochers
> > IT Director
> > kdesrochers@...
> > 908-956-6526
> >
> >
> >
> >
>
> --
> _______________________________________________________________
> Kurt Stützer       kurt@...        http://www.pdflib.com
>     PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München, Germany
>    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
> ---------------------------------------------------------------
> PDFlib 7:  Create PDF/A for archiving, format tables, and more!
> _______PDFlib - a library for generating PDF on the fly________
>

#20021 From: Thomas Merz <tm@...>
Date: Fri Nov 20, 2009 8:04 pm
Subject: PDFlib 8 Beta 2 available
thomasmerz1
Offline Offline
Send Email Send Email
 
PDFlib 8 Beta 2 is now available for download at
http://www.pdflib.com/en/download/pdflib-family/pdflib-8-beta/

A summary of new features is available at
http://www.pdflib.com/products/pdflib-8-preview/
Licensing details are also available on our Web site.

Compared to PDFlib 8 Beta 1 several features have been
improved, bugs fixed, and the documentation enhanced.
Some noteworthy items for Beta 2:

- PDFlib 8 Beta 2 generates compressed object streams by
    default. This significantly reduces PDF output file size,
    in some cases even dramatically. This feature also allows
    us to create PDF documents > 10 GB.

- As requested on this list, binaries for Windows 64-bit
    systems are now also available for beta testing.

- PDFlib Block Plugin for Windows now includes a Japanese
    user interface version.

- The PDFlib Block Plugin is now also available for Mac OS X.

The final release of PDFlib 8 is expected for early December.

Thomas

_______________________________________________________________
Thomas Merz             tm@...            www.pdflib.com
    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
---------------------------------------------------------------
PDFlib 7:  Create PDF/A for archiving, format tables, and more!
_______PDFlib - a library for generating PDF on the fly________

#20022 From: "mfourgig" <mfourgig@...>
Date: Fri Nov 20, 2009 8:16 pm
Subject: Trying to pass many characters to charclass to change linebreaking behavior
mfourgig
Offline Offline
Send Email Send Email
 
Hi,

I'm currently trying to change the behavior of PDFLib linebreaking algorithm by
providing the following list of character to the charclass parameter:

" charclass {letter {! # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] _ ~ « » ±
÷}}"

The problem is that when I do that, I get a message telling me that "String
value (...) for option 'charclass' is too long (maximum 32).

I understand this error pretty well, what I don't get is why exactly there is
this limit of 32 characters and, most obviously, how am I supposed to have all
my special characters behave like letters if I can't list them all. Is there a
way I'm not aware of to specify a "range" of characters? I looked throughout the
reference and didn't find anyting specific regarding that matter.

Many thanks!
Maxim F.Giguere

#20023 From: "mfourgig" <mfourgig@...>
Date: Fri Nov 20, 2009 8:53 pm
Subject: Re: Trying to pass many characters to charclass to change linebreaking behavior
mfourgig
Offline Offline
Send Email Send Email
 
Okay, forget my first question, I found out that I could split the string
parameter that way in order to specify many character that have to be treated
like letters:

" charclass {letter {! # $ % & ' ( )} letter {* + , - . / : ;} letter {< = > ? @
[ \ ] _} letter {~}}"

I still have a problem tho. How can I pass the following character to charclass
to be treated as letters


        Décimal   Octal   Hex  Binaire   Caractère
        -------   -----   ---  --------    ------
          034      042    22   00100010        "    (double quote)
          123      173    7B   01111011        {    (left opening brace)
          125      175    7D   01111101        }    (right closing brace)
          174             AE                   «
          175             AF                   »
          246             F6                   ÷

Thank you!

#20024 From: "info_wanted" <info_wanted@...>
Date: Mon Nov 23, 2009 7:50 am
Subject: Please help me to learn PDFLib ...
info_wanted
Offline Offline
Send Email Send Email
 
Hi!

I'm new to PDFLib and attempting to use PDFLib COM version with Visual Basic 6.0
programming language. I attempted to learn different things using API Reference
and Cook-Book but couldn't gather the information that I'm looking for.

Firstly, almost all the examples included in the Installer package "Create New
PDF" and then demonstrate the features. I'm looking for the means to process
existing PDF Files. So, I want to learn how to Open Existing PDF File and then
...

1. Digitally Sign it
2. Get the Author, Description, Keywords, Created by, Produced by etc.
Information.
3. Change the information for the parameters mentioned in the point-2 above.
4. Embed JavaScript for different Document Action levels (such as Open, Close
etc.)
5. Encrypt the PDF file by disabling certain features (such Copy, Print etc) and
set Password (owner and/or user)

I've found an example that demonstrates how to embed Javascript but again, it
creates a new PDF file and then embeds the Javascript and saves it. I want
PDFLib to do the same with existing PDF File.

I tried open_file but for some reason, it simply erases all the data in my PDF
file and nothing is returned back to the calling application.

Please help me to learn PDFLib for using it with Existing PDF Files and process
it in different ways, later save it with the changes done.

Eagerly waiting for your valuable reply...

Best Regards,

Ruturaaj.

#20025 From: Kurt Stützer <kurt@...>
Date: Mon Nov 23, 2009 1:56 pm
Subject: Re: Re: Trying to pass many characters to charclass to change linebreaking behavior
kurt@...
Send Email Send Email
 
Hi,

you must separate the charcters by a space (list of unichar).
You can specify Unicode characters in different ways
(see section 1.2, Simple Values in the Reference Manual).

Kurt

mfourgig wrote:
>
>
> Okay, forget my first question, I found out that I could split the
> string parameter that way in order to specify many character that have
> to be treated like letters:
>
> " charclass {letter {! # $ % & ' ( )} letter {* + , - . / : ;} letter {<
> = > ? @ [ \ ] _} letter {~}}"
>
> I still have a problem tho. How can I pass the following character to
> charclass to be treated as letters
>
> Décimal Octal Hex Binaire Caractère
> ------- ----- --- -------- ------
> 034 042 22 00100010 " (double quote)
> 123 173 7B 01111011 { (left opening brace)
> 125 175 7D 01111101 } (right closing brace)
> 174 AE «
> 175 AF »
> 246 F6 ÷
>
> Thank you!
>
>

--
_______________________________________________________________
Kurt Stützer       kurt@...        http://www.pdflib.com
     PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München, Germany
    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
---------------------------------------------------------------
PDFlib 7:  Create PDF/A for archiving, format tables, and more!
_______PDFlib - a library for generating PDF on the fly________

#20026 From: "bontjerate" <a.bontjer@...>
Date: Mon Nov 23, 2009 2:05 pm
Subject: Re: Transparency causes color change in print
bontjerate
Offline Offline
Send Email Send Email
 
Hi,

Anyone knows whats causing this problem?

Thanks!

--- In pdflib@yahoogroups.com, "bontjerate" <a.bontjer@...> wrote:
>
> Hi Thomas,
>
> Both the "transparencygroup={CS=DeviceCMYK}" and the
"transparencygroup={CS=DeviceRGB}" doesn't help. The colors still changes on the
page with the transparency.
>
> Maybe its something in my code:
>  public function createPdf($preview = false)
>  {
> 	 global $config;
> 	 global $settings;
>
> 	 $infile = dirname(__FILE__).'/pdf/MateriaaloptieFolder.pdf';
>
> 	 if($preview)
> 	 {
> 		 $outfile = uniqid(md5(time()), true);
> 		 $outfilePath = $config->pdf['tmp'].'/'.$outfile.'.pdf';
> 	 }
> 	 else
> 	 {
> 		 $outfile = $this->bestellingId;
> 		 $outfilePath = $config->pdf['path'].'/'.$outfile.'.pdf';
> 	 }
>
> 	 try
> 	 {
> 		 $p = new PDFlib();
>
> 		 //$p->set_parameter("errorpolicy", "return");
> 		 $p->set_parameter("openwarning", "true");
> 		 $p->set_parameter("textformat", "utf8");
> 		 $p->set_parameter("license", $config->pdflib['license']);
>
> 		 $p->set_info("Title", "Document");
>
> 		 if($p->begin_document($outfilePath, "tempdirname=".$config->site['tmp']."
optimize=true") == 0)
> 		 {
> 			 die("Error: " . $p->get_errmsg());
> 		 }
>
> 		 if(($indoc = $p->open_pdi_document($infile, "")) == 0)
> 		 {
> 			 die("Error: " . $p->get_errmsg());
> 		 }
>
> 		 $p->load_font($config->pdf['fonts']."/SUNSC-BO", "winansi", "embedding");
> 		 $p->load_font($config->pdf['fonts']."/SUNSC-BI", "winansi", "embedding");
> 		 $p->load_font($config->pdf['fonts']."/SUNSCEBI", "winansi", "embedding");
> 		 $p->load_font($config->pdf['fonts']."/SUNCD-IT", "winansi", "embedding");
> 		 $p->load_font($config->pdf['fonts']."/SUN-REGU", "winansi", "embedding");
> 		 $p->load_font($config->pdf['fonts']."/SUN-BOLD", "winansi", "embedding");
>
> 		 $pages = $p->pcos_get_number($indoc, "length:pages");
>
> 		 for($pageNumber = 1;$pageNumber <= $pages;$pageNumber++)
> 		 {
> 			 if(($page = $p->open_pdi_page($indoc, $pageNumber, "")) == 0)
> 			 {
> 				 die("Error: " . $p->get_errmsg());
> 			 }
>
> 			 $optlist = "";
>
> 			 if($p->pcos_get_string($indoc, "type:pages[".($pageNumber -
1)."]/BleedBox") == "array")
> 			 {
> 				 $bleedBox = array();
> 				 $bleedBox['llx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/BleedBox[0]");
> 				 $bleedBox['lly'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/BleedBox[1]");
> 				 $bleedBox['urx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/BleedBox[2]");
> 				 $bleedBox['ury'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/BleedBox[3]");
> 				 $optlist .= "bleedbox={".$bleedBox['llx']." ".$bleedBox['lly']."
".$bleedBox['urx']." ".$bleedBox['ury']."} ";
> 			 }
>
> 			 if($p->pcos_get_string($indoc, "type:pages[".($pageNumber -
1)."]/CropBox") == "array")
> 			 {
> 				 $cropBox = array();
> 				 $cropBox['llx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/CropBox[0]");
> 				 $cropBox['lly'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/CropBox[1]");
> 				 $cropBox['urx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/CropBox[2]");
> 				 $cropBox['ury'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/CropBox[3]");
> 				 $optlist .= "cropbox={".$cropBox['llx']." ".$cropBox['lly']."
".$cropBox['urx']." ".$cropBox['ury']."} ";
> 			 }
>
> 			 if($p->pcos_get_string($indoc, "type:pages[".($pageNumber -
1)."]/TrimBox") == "array")
> 			 {
> 				 $trimBox = array();
> 				 $trimBox['llx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/TrimBox[0]");
> 				 $trimBox['lly'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/TrimBox[1]");
> 				 $trimBox['urx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/TrimBox[2]");
> 				 $trimBox['ury'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/TrimBox[3]");
> 				 $optlist .= "trimbox={".$trimBox['llx']." ".$trimBox['lly']."
".$trimBox['urx']." ".$trimBox['ury']."} ";
> 			 }
>
> 			 if($p->pcos_get_string($indoc, "type:pages[".($pageNumber -
1)."]/MediaBox") == "array")
> 			 {
> 				 $mediaBox = array();
> 				 $mediaBox['llx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/MediaBox[0]");
> 				 $mediaBox['lly'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/MediaBox[1]");
> 				 $mediaBox['urx'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/MediaBox[2]");
> 				 $mediaBox['ury'] = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/MediaBox[3]");
> 				 $optlist .= "mediabox={".$mediaBox['llx']." ".$mediaBox['lly']."
".$mediaBox['urx']." ".$mediaBox['ury']."} ";
> 			 }
>
> 			 $width = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/width");
> 			 $height = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/height");
>
> 			 if($p->begin_page_ext($width, $height, $optlist."
transparencygroup={CS=DeviceCMYK}") == 0)
> 			 {
> 				 die("Error: " . $p->get_errmsg());
> 			 }
>
> 			 $p->fit_pdi_page($page, 0, 0, "");
> /**
>  * Pagina 1
>  */
> 			 if(!$this->pagina1FotoLijsttrekker &&
$this->pagina1FotoLijsttrekkerImageId)
> 			 {
> 				 $this->pagina1FotoLijsttrekker = new
Afbeelding($this->pagina1FotoLijsttrekkerImageId);
> 			 }
>
> 			 if($preview)
> 			 {
> 				 $imagefile = $this->pagina1FotoLijsttrekker->previewPath;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina1FotoLijsttrekker', $imagefile, $this->pagina1FotoLijsttrekkerImageId,
'preview_');
> 			 }
> 			 else
> 			 {
> 				 $imagefile = $this->pagina1FotoLijsttrekker->path;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina1FotoLijsttrekker', $imagefile, $this->pagina1FotoLijsttrekkerImageId);
> 			 }
>
> 			 $image = $p->load_image("auto", $imagefile, "");
> 			 $p->fill_imageblock($page, "pagina1FotoLijsttrekker", $image,
"position={center top} fitmethod=slice");
>
> 			 if($this->pagina1Lijstnummer)
> 			 {
> 				 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
> 							 ."fontsize=97.817 "
> 							 ."fitmethod=nofit "
> 							 ."encoding=unicode "
> 							 ."alignment=right "
> 							 ."fillcolor={cmyk 0 0 0 0} "
> 							 ."textflow=true "
> 							 ."textrendering=2 "
> 							 ."strokecolor={cmyk 0.75 0 1 0} "
> 							 ."strokewidth=0.82 "
> 							 ."firstlinedist=capheight "
> 							 ."verticalalign=top "
> 							 ."embedding=true "
> 							 ."fitmethod=clip "
> 							 //."autocidfont=false "
> 							 //."unicodemap=false "
> 							 ."";
> 				 $p->fill_textblock($page, "pagina1Lijstnummer",
$this->pagina1Lijstnummer, $optlist);
> 			 }
>
> 			 if($p->pcos_get_string($indoc, "type:pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock") != "null")
> 			 {
> 				 $llx = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[0]");
> 				 $lly = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[1]");
> 				 $urx = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[2]");
> 				 $ury = $p->pcos_get_number($indoc, "pages[".($pageNumber -
1)."]/blocks/pagina1NaamLijsttrekkerBlock/Rect[3]");
>
> 				 $p->save();
> 				 $gstate = $p->create_gstate("opacityfill=.8");
> 				 $p->set_gstate($gstate);
> 				 $p->setcolor("fill", "cmyk", 0, 0, 0, 0);
> 				 $p->rect($llx, $lly, $urx-$llx, $ury-$lly);
> 				 $p->fill();
> 				 $p->restore();
> 			 }
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BI "
> 						 ."fontsize=25.723 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=center "
> 						 ."fillcolor={cmyk 0 0 0 1} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 //."autocidfont=false "
> 						 //."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina1NaamLijsttrekker",
$this->pagina1NaamLijsttrekker, $optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUNSCEBI "
> 						 ."fontsize=17 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0.75 0 1 0} "
> 						 ."textflow=true "
> 						 ."rotate=0 orientate west "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 //."autocidfont=false "
> 						 //."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina1Slogan", $this->pagina1Slogan,
$optlist);
>
> /**
>  * Pagina 2
>  */
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-BOLI "
> 						 ."fontsize=20 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=center "
> 						 ."fillcolor={cmyk 0 0 0 0} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina2Slogan", $this->pagina2Slogan,
$optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUNCD-IT "
> 						 ."fontsize=17 "
> 						 ."encoding=unicode "
> 						 ."alignment=justify "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0.75 0 1 0} "
> 						 ."textflow=true "
> 						 ."leading=24 "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 //."autocidfont=false "
> 						 //."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina2Inleiding", $this->pagina2Inleiding,
$optlist);
>
> 			 if(!$this->pagina2Tekstblok1Foto && $this->pagina2Tekstblok1FotoImageId)
> 			 {
> 				 $this->pagina2Tekstblok1Foto = new
Afbeelding($this->pagina2Tekstblok1FotoImageId);
> 			 }
>
> 			 if($preview)
> 			 {
> 				 $imagefile = $this->pagina2Tekstblok1Foto->previewPath;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina2Tekstblok1Foto', $imagefile, $this->pagina2Tekstblok1FotoImageId,
'preview_');
> 			 }
> 			 else
> 			 {
> 				 $imagefile = $this->pagina2Tekstblok1Foto->path;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina2Tekstblok1Foto', $imagefile, $this->pagina2Tekstblok1FotoImageId);
> 			 }
>
> 			 $image = $p->load_image("auto", $imagefile, "");
> 			 $p->fill_imageblock($page, "pagina2Tekstblok1Foto", $image,
"position={center top} fitmethod=slice");
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
> 						 ."fontsize=10 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0.55 1 0} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 //."autocidfont=false "
> 						 //."unicodemap=false "
> 						 ."";
>
> 			 $p->fill_textblock($page, "pagina2Tekstblok1Titel",
$this->pagina2Tekstblok1Titel, $optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
> 						 ."fontsize=9 "
> 						 ."encoding=unicode "
> 						 ."alignment=justify "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0 0 1} "
> 						 ."textflow=true "
> 						 ."leading=12 "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina2Tekstblok1Tekst",
$this->pagina2Tekstblok1Tekst, $optlist);
>
> 			 if(!$this->pagina2Tekstblok2Foto && $this->pagina2Tekstblok2FotoImageId)
> 			 {
> 				 $this->pagina2Tekstblok2Foto = new
Afbeelding($this->pagina2Tekstblok2FotoImageId);
> 			 }
>
> 			 if($preview)
> 			 {
> 				 $imagefile = $this->pagina2Tekstblok2Foto->previewPath;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina2Tekstblok2Foto', $imagefile, $this->pagina2Tekstblok2FotoImageId,
'preview_');
> 			 }
> 			 else
> 			 {
> 				 $imagefile = $this->pagina2Tekstblok2Foto->path;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina2Tekstblok2Foto', $imagefile, $this->pagina2Tekstblok2FotoImageId);
> 			 }
>
> 			 $image = $p->load_image("auto", $imagefile, "");
> 			 $p->fill_imageblock($page, "pagina2Tekstblok2Foto", $image,
"position={center top} fitmethod=slice");
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
> 						 ."fontsize=10 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0.55 1 0} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 //."autocidfont=false "
> 						 //."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina2Tekstblok2Titel",
$this->pagina2Tekstblok2Titel, $optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
> 						 ."fontsize=9 "
> 						 ."encoding=unicode "
> 						 ."alignment=justify "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0 0 1} "
> 						 ."textflow=true "
> 						 ."leading=12 "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina2Tekstblok2Tekst",
$this->pagina2Tekstblok2Tekst, $optlist);
>
> /**
>  * Pagina 3
>  */
>
> 			 if(!$this->pagina3Tekstblok1Foto && $this->pagina3Tekstblok1FotoImageId)
> 			 {
> 				 $this->pagina3Tekstblok1Foto = new
Afbeelding($this->pagina3Tekstblok1FotoImageId);
> 			 }
>
> 			 if($preview)
> 			 {
> 				 $imagefile = $this->pagina3Tekstblok1Foto->previewPath;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok1Foto', $imagefile, $this->pagina3Tekstblok1FotoImageId,
'preview_');
> 			 }
> 			 else
> 			 {
> 				 $imagefile = $this->pagina3Tekstblok1Foto->path;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok1Foto', $imagefile, $this->pagina3Tekstblok1FotoImageId);
> 			 }
>
> 			 $image = $p->load_image("auto", $imagefile, "");
> 			 $p->fill_imageblock($page, "pagina3Tekstblok1Foto", $image,
"position={center top} fitmethod=slice");
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
> 						 ."fontsize=10 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0.55 1 0} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 //."autocidfont=false "
> 						 //."unicodemap=false "
> 						 ."";
>
> 			 $p->fill_textblock($page, "pagina3Tekstblok1Titel",
$this->pagina3Tekstblok1Titel, $optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
> 						 ."fontsize=9 "
> 						 ."encoding=unicode "
> 						 ."alignment=justify "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0 0 1} "
> 						 ."textflow=true "
> 						 ."leading=12 "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina3Tekstblok1Tekst",
$this->pagina3Tekstblok1Tekst, $optlist);
>
> 			 if(!$this->pagina3Tekstblok2Foto && $this->pagina3Tekstblok2FotoImageId)
> 			 {
> 				 $this->pagina3Tekstblok2Foto = new
Afbeelding($this->pagina3Tekstblok2FotoImageId);
> 			 }
>
> 			 if($preview)
> 			 {
> 				 $imagefile = $this->pagina3Tekstblok2Foto->previewPath;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok2Foto', $imagefile, $this->pagina3Tekstblok2FotoImageId,
'preview_');
> 			 }
> 			 else
> 			 {
> 				 $imagefile = $this->pagina3Tekstblok2Foto->path;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok2Foto', $imagefile, $this->pagina3Tekstblok2FotoImageId);
> 			 }
>
> 			 $image = $p->load_image("auto", $imagefile, "");
> 			 $p->fill_imageblock($page, "pagina3Tekstblok2Foto", $image,
"position={center top} fitmethod=slice");
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
> 						 ."fontsize=10 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0.55 1 0} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 //."autocidfont=false "
> 						 //."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina3Tekstblok2Titel",
$this->pagina3Tekstblok2Titel, $optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
> 						 ."fontsize=9 "
> 						 ."encoding=unicode "
> 						 ."alignment=justify "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0 0 1} "
> 						 ."textflow=true "
> 						 ."leading=12 "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina3Tekstblok2Tekst",
$this->pagina3Tekstblok2Tekst, $optlist);
>
> 			 if(!$this->pagina3Tekstblok3Foto && $this->pagina3Tekstblok3FotoImageId)
> 			 {
> 				 $this->pagina3Tekstblok3Foto = new
Afbeelding($this->pagina3Tekstblok3FotoImageId);
> 			 }
>
> 			 if($preview)
> 			 {
> 				 $imagefile = $this->pagina3Tekstblok3Foto->previewPath;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok3Foto', $imagefile, $this->pagina3Tekstblok3FotoImageId,
'preview_');
> 			 }
> 			 else
> 			 {
> 				 $imagefile = $this->pagina3Tekstblok3Foto->path;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina3Tekstblok3Foto', $imagefile, $this->pagina3Tekstblok3FotoImageId);
> 			 }
>
> 			 $image = $p->load_image("auto", $imagefile, "");
> 			 $p->fill_imageblock($page, "pagina3Tekstblok3Foto", $image,
"position={center top} fitmethod=slice");
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUNSC-BO "
> 						 ."fontsize=10 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0.55 1 0} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 //."autocidfont=false "
> 						 //."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina3Tekstblok3Titel",
$this->pagina3Tekstblok3Titel, $optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
> 						 ."fontsize=9 "
> 						 ."encoding=unicode "
> 						 ."alignment=justify "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0 0 1} "
> 						 ."textflow=true "
> 						 ."leading=12 "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina3Tekstblok3Tekst",
$this->pagina3Tekstblok3Tekst, $optlist);
>
> /**
>  * Pagina 4
>  */
> 			 if(!$this->pagina4Tekstblok1Foto && $this->pagina4Tekstblok1FotoImageId)
> 			 {
> 				 $this->pagina4Tekstblok1Foto = new
Afbeelding($this->pagina4Tekstblok1FotoImageId);
> 			 }
>
> 			 if($preview)
> 			 {
> 				 $imagefile = $this->pagina4Tekstblok1Foto->previewPath;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina4Tekstblok1Foto', $imagefile, $this->pagina4Tekstblok1FotoImageId,
'preview_');
> 			 }
> 			 else
> 			 {
> 				 $imagefile = $this->pagina4Tekstblok1Foto->path;
>
> 				 $imagefile = Afbeelding::fitAndCache($p, $indoc, $pageNumber - 1,
'pagina4Tekstblok1Foto', $imagefile, $this->pagina4Tekstblok1FotoImageId);
> 			 }
>
> 			 $image = $p->load_image("auto", $imagefile, "");
> 			 $p->fill_imageblock($page, "pagina4Tekstblok1Foto", $image,
"position={center top} fitmethod=slice");
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-BOLI "
> 						 ."fontsize=20 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0.75 0 1 0} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina4Tekstblok1Titel",
$this->pagina4Tekstblok1Titel, $optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-BOLD "
> 						 ."fontsize=11 "
> 						 ."encoding=unicode "
> 						 ."alignment=justify "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0.75 0 1 0} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."leading=109% "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina4Tekstblok1Tekst",
$this->pagina4Tekstblok1Tekst, $optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-BOLI "
> 						 ."fontsize=20 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0.55 1 0} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina4Tekstblok2Titel",
$this->pagina4Tekstblok2Titel, $optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-REGU "
> 						 ."fontsize=9.5 "
> 						 ."encoding=unicode "
> 						 ."alignment=justify "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=top "
> 						 ."fillcolor={cmyk 0 0 0 1} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 ."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."leading=126% "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina4Tekstblok2Tekst",
$this->pagina4Tekstblok2Tekst, $optlist);
>
> 			 $optlist = "fontname=".$config->pdf['fonts']."/SUN-BOLD "
> 						 ."fontsize=11 "
> 						 ."encoding=unicode "
> 						 ."alignment=left "
> 						 ."firstlinedist=capheight "
> 						 ."verticalalign=center "
> 						 ."fillcolor={cmyk 0 0 0 1} "
> 						 ."textflow=true "
> 						 ."embedding=true "
> 						 //."fitmethod=clip "
> 						 ."autocidfont=false "
> 						 ."unicodemap=false "
> 						 ."leading=126% "
> 						 ."";
> 			 $p->fill_textblock($page, "pagina4MeerInformatie",
$this->pagina4MeerInformatie, $optlist);
>
> 			 $p->end_page_ext("");
> 			 $p->close_pdi_page($page);
> 		 }
>
> 		 $p->end_document("");
> 		 $p->close_pdi_document($indoc);
>
> 		 return array($outfile);
> 	 }
> 	 catch (Exception $e) { Common::debug($e); }
>  }
>
> --- In pdflib@yahoogroups.com, Thomas Merz <tm@> wrote:
> >
> > bontjerate wrote:
> > > Does transparencygroup={CS=DeviceRGB} add RGB colors to the file?
> >
> > No, it doesn't.
> >
> >  > And if so, is transparencygroup={CS=DeviceCMYK} a good replacement?
> >
> > DeviceCMYK is Acrobat's default color space for the transparency
> > calculations, which causes the color shifts in the first place.
> > This option doesn't add any colors to the file, but instructs
> > Acrobat _not_ to switch to an unwanted (different) color space
> > when rendering the colors.
> >
> > I expect that transparencygroup={CS=DeviceCMYK} would not
> > solve your problem.
> >
> > Thomas
> >
> > _______________________________________________________________
> > Thomas Merz             tm@            www.pdflib.com
> >    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
> >    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
> > ---------------------------------------------------------------
> > PDFlib 7:  Create PDF/A for archiving, format tables, and more!
> > _______PDFlib - a library for generating PDF on the fly________
> >
>

#20027 From: Lance Cotton <lcotton+pdflib@...>
Date: Mon Nov 23, 2009 2:35 pm
Subject: Re: Please help me to learn PDFLib ...
jose_can_u_c
Offline Offline
Send Email Send Email
 
On 11/23/2009 1:50, info_wanted wrote:
  > Firstly, almost all the examples included in the Installer package
  > "Create New PDF" and then demonstrate the features. I'm looking for the
  > means to process existing PDF Files. So, I want to learn how to Open
  > Existing PDF File and then ...
  >
  > 1. Digitally Sign it
  > 2. Get the Author, Description, Keywords, Created by, Produced by etc.
  > Information.
  > 3. Change the information for the parameters mentioned in the point-2
above.
  > 4. Embed JavaScript for different Document Action levels (such as Open,
  > Close etc.)
  > 5. Encrypt the PDF file by disabling certain features (such Copy, Print
  > etc) and set Password (owner and/or user)
  >
  > I tried open_file but for some reason, it simply erases all the data in
  > my PDF file and nothing is returned back to the calling application.
  >
  > Please help me to learn PDFLib for using it with Existing PDF Files and
  > process it in different ways, later save it with the changes done.

PDFlib cannot edit existing files. It can only create new PDFs. You can
create a new PDF, import an existing PDF into it, and then save the
resulting new PDF with a different filename.

-Lance

#20028 From: Walter Smith/NYLIC <walter_smith@...>
Date: Mon Nov 23, 2009 2:35 pm
Subject: Can anybody recommend a good graphing library/utility? We're using Pdflib 7 with Php
walter_smith@...
Send Email Send Email
 

What we'd really like is something that can output in vector and bitmapped format so our site and our pdfs have a consistent appearance.

#20029 From: "Peyman" <peymanpouryekta@...>
Date: Mon Nov 23, 2009 3:03 pm
Subject: license expired date
peymanpouryekta
Offline Offline
Send Email Send Email
 
hi
question about the license
is it possible to get the expiration date from the license ?!

#20030 From: Thomas Merz <tm@...>
Date: Mon Nov 23, 2009 3:19 pm
Subject: Re: license expired date
thomasmerz1
Offline Offline
Send Email Send Email
 
Peyman wrote:
> question about the license
> is it possible to get the expiration date from the license ?!

Commercial PDFlib licenses don't expire. If you got a temporary
evaluation license key from our sales team the corresponding
license does expire; the expiration date has been sent to you
along with the evaluation license key.

Thomas

_______________________________________________________________
Thomas Merz             tm@...            www.pdflib.com
    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
---------------------------------------------------------------
PDFlib 7:  Create PDF/A for archiving, format tables, and more!
_______PDFlib - a library for generating PDF on the fly________

#20031 From: DigiBrain Info Systems <info_wanted@...>
Date: Mon Nov 23, 2009 3:45 pm
Subject: Re:
info_wanted
Offline Offline
Send Email Send Email
 
Hi!

Thanks so much for your reply ... I was unaware that PDFLib cannot
edit  or change existing PDF files. can you please tell me how to
import an existing PDF file with all of its aspects into new PDF? is
there any function that can import Everything ( which includes comments
attachments annotations etc) in one go?

Eagerly waiting for your valuable reply...

#20032 From: DigiBrain Info Systems <info_wanted@...>
Date: Mon Nov 23, 2009 3:46 pm
Subject: Re: Please help me to learn PDFLib ...
info_wanted
Offline Offline
Send Email Send Email
 
Hi!

Thanks so much for your reply ... I was unaware that PDFLib cannot edit  or change existing PDF files. can you please tell me how to import an existing PDF file with all of its aspects into new PDF? is there any function that can import Everything ( which includes comments attachments annotations etc) in one go?

Eagerly waiting for your valuable reply,




From: Lance Cotton <lcotton+pdflib@...>
To: pdflib@yahoogroups.com
Sent: Mon, November 23, 2009 8:05:52 PM
Subject: Re: [pdflib] Please help me to learn PDFLib ...

 

On 11/23/2009 1:50, info_wanted wrote:
> Firstly, almost all the examples included in the Installer package
> "Create New PDF" and then demonstrate the features. I'm looking for the
> means to process existing PDF Files. So, I want to learn how to Open
> Existing PDF File and then ...
>
> 1. Digitally Sign it
> 2. Get the Author, Description, Keywords, Created by, Produced by etc.
> Information.
> 3. Change the information for the parameters mentioned in the point-2
above.
> 4. Embed JavaScript for different Document Action levels (such as Open,
> Close etc.)
> 5. Encrypt the PDF file by disabling certain features (such Copy, Print
> etc) and set Password (owner and/or user)
>
> I tried open_file but for some reason, it simply erases all the data in
> my PDF file and nothing is returned back to the calling application.
>
> Please help me to learn PDFLib for using it with Existing PDF Files and
> process it in different ways, later save it with the changes done.

PDFlib cannot edit existing files. It can only create new PDFs. You can
create a new PDF, import an existing PDF into it, and then save the
resulting new PDF with a different filename.

-Lance



#20033 From: Lance Cotton <lcotton+pdflib@...>
Date: Mon Nov 23, 2009 4:05 pm
Subject: Re: Re:
jose_can_u_c
Offline Offline
Send Email Send Email
 
On 11/23/2009 9:45, DigiBrain Info Systems wrote:
> Thanks so much for your reply ... I was unaware that PDFLib cannot
> edit or change existing PDF files. can you please tell me how to
> import an existing PDF file with all of its aspects into new PDF? is
> there any function that can import Everything ( which includes comments
> attachments annotations etc) in one go?

I do not believe that there is a single function that can import
everything. Once you import the page contents with the PDI functions,
you can extract pretty  much all of the remaining meta-data with the
pCOS functions built into PDFlib 7.

-Lance

#20034 From: "hanswurst75@..." <hanswurst75@...>
Date: Tue Nov 24, 2009 1:36 pm
Subject: Problems on reading-out multiple selection boxes
hanswurst75...
Offline Offline
Send Email Send Email
 
Hello everyone,
I'm stuck in a little issue while using the pCOS.
I'm trying to extract the form-data of a pdf-file which works fine aside from
one exception.
Theres no usefull response on reading-out multiple selection boxes of the
pdf-file. The value you get with "p.get_string(doc, "fields["+ i +"]/V")" (using
Java) is allways "0".

Theres another question in my mind is there an opportunity to read-out
field properties like it's a "date-field" or "numberfield"?


It would be fine if you help me with an idea to solve these problems.
Thank you and greetings Hans.

#20035 From: "Esher, Marc (4-7260)" <marc.esher@...>
Date: Tue Nov 24, 2009 2:21 pm
Subject: preferred method for partial-left / partial-right aligned text
jonnycattt
Offline Offline
Send Email Send Email
 
Greetings all,
 What's the preferred method in pdflib for creating text strings that have part of the text aligned left, and part of the text aligned right, on a given sentence:
 
 
Text Starts here (aligned left )                                Starting here, aligned right
 
Thanks.
 
Marc
This message and any attachments are intended only for the use of the addressee and
may contain information that is privileged and confidential. If the reader of the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.


#20036 From: Thomas Merz <tm@...>
Date: Tue Nov 24, 2009 8:24 pm
Subject: Re: Problems on reading-out multiple selection boxes
thomasmerz1
Offline Offline
Send Email Send Email
 
hanswurst75@... wrote:
> I'm stuck in a little issue while using the pCOS.
> I'm trying to extract the form-data of a pdf-file which works fine aside from
one exception.
> Theres no usefull response on reading-out multiple selection boxes of the
pdf-file. The value you get with "p.get_string(doc, "fields["+ i +"]/V")" (using
Java) is allways "0".

This is a bit tricky since Radio buttons in PDF are arranged
in a hierarchy. While individual buttons store only their
appearance (what does this button look like?), the value is
stored for the whole group, not in individual buttons. You
must check the parent entry of the button to determine the
/V value, e.g.

fields[5]/Parent/V

assuming that fields[5] is a button field.

Alternatively could query the "appearance state" AS from the button
field itself since it usually reflects the displayed value.
However, this is not guaranteed to be present and therefore not
recommended.

> Theres another question in my mind is there an opportunity to read-out
> field properties like it's a "date-field" or "numberfield"?

It depends on your definition of these types since these are
not predefined PDF data types. If the fields use a naming
convention you could check the field title in the /T entry.

Thomas

_______________________________________________________________
Thomas Merz             tm@...            www.pdflib.com
    PDFlib GmbH, Franziska-Bilek-Weg 9, 80339 München,  Germany
    Amtsgericht München HRB 129497, Geschäftsführer Thomas Merz
---------------------------------------------------------------
PDFlib 7:  Create PDF/A for archiving, format tables, and more!
_______PDFlib - a library for generating PDF on the fly________

#20037 From: <ksuiwskeio@...>
Date: Thu Nov 26, 2009 5:06 pm
Subject: WANTED: People To Work From Home. Must Have Computer
ksuiwskeio
Offline Offline
Send Email Send Email
 
WANTED: People To Work From Home. Must Have Computer

* Just fill simple surveys. Start today.

  Online Companies Will Pay YOU $5 to $125 for Each Survey!
  Get Paid to Participate in Online Focus Groups At $50 to $150 Per Hour!
  Get Paid to Try New Products - Keep The Products For FREE and Get Paid Too!
  Get Paid to Watch Movie Trailers $4 to $25 Per Hour!
  Get Paid $5 to $95 Per Hour to Take Surveys Offline!
  Get Paid to Travel! Earn $100's Each Month Just for Traveling!
  Get Paid to Drive Your Car $1000 to $3000 per month! Plus They Pay For Your
Gas!


Click here : http://easylnk.com/?15367

Messages 20008 - 20037 of 20037   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

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