You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by ph...@free.fr on 2015/05/07 09:15:15 UTC

Embedding an EPS

Hello,

is it possible to embed an EPS in a PDF, with PDFBox?

Many thanks.

Philippe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Re: Embedding an EPS

Posted by Eric Douglas <ed...@blockhouse.com>.
I just embed images, generated from iText

On Thu, May 7, 2015 at 1:07 PM, Tilman Hausherr <TH...@t-online.de>
wrote:

> Am 07.05.2015 um 18:59 schrieb John Hewson:
>
>> On 7 May 2015, at 09:04, phiroc@free.fr wrote:
>>>
>>> I would like to generate a barcode, then embed it in the PDF.
>>>
>>> The O'Reilly 'Developing with PDF' book says that you can use XObjects
>>> to embed vectorial images (such as, perhaps, EPS). Has anyone here ever
>>> tried it?
>>>
>> I have that book too, it actually says "PDF doesn't really have the
>> concept of a vector image such as an EPS or EMF" (p58). It's description of
>> what an Form XObject is is rather brief though. To clarify, it's a way of
>> embedding an existing PDF content stream, e.g. perhaps a diagram or a page
>> from another PDF. It does not provide support for any other file formats.
>>
>> Most barcodes I've encountered in PDFs use special fonts, rather than
>> graphics.
>>
>
> Can't remember if the 1.8.9 version can work properly, i.e. embed the
> font. And yes, a dedicated font best. There are some "3 of 9" fonts
> available on the web. With the font I use at work, one has to include the
> text wwith "*", i.e. *12345678*  .
>
> Tilman
>
>
>
>> -- John
>>
>>  ----- Mail original -----
>>> De: "Maruan Sahyoun" <sa...@fileaffairs.de>
>>> À: users@pdfbox.apache.org
>>> Envoyé: Jeudi 7 Mai 2015 17:38:54
>>> Objet: Re: Embedding an EPS
>>>
>>> Hi,
>>>
>>>  Am 07.05.2015 um 17:36 schrieb Tilman Hausherr <TH...@t-online.de>:
>>>>
>>>> Am 07.05.2015 um 09:15 schrieb phiroc@free.fr:
>>>>
>>>>> Hello,
>>>>>
>>>>> is it possible to embed an EPS in a PDF, with PDFBox?
>>>>>
>>>> No because PDF doesn't support it:
>>>> https://forums.adobe.com/thread/285464
>>>>
>>>> https://stackoverflow.com/questions/2029700/how-do-i-embed-eps-into-a-pdf-with-pdfapi2
>>>>
>>> or did you mean to embed the EPS file as an attachment to the PDF?
>>>
>>> BR
>>> Maruan
>>>
>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>>
>>>  ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>

Re: Embedding an EPS

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 07.05.2015 um 18:59 schrieb John Hewson:
>> On 7 May 2015, at 09:04, phiroc@free.fr wrote:
>>
>> I would like to generate a barcode, then embed it in the PDF.
>>
>> The O'Reilly 'Developing with PDF' book says that you can use XObjects to embed vectorial images (such as, perhaps, EPS). Has anyone here ever tried it?
> I have that book too, it actually says "PDF doesn't really have the concept of a vector image such as an EPS or EMF" (p58). It's description of what an Form XObject is is rather brief though. To clarify, it's a way of embedding an existing PDF content stream, e.g. perhaps a diagram or a page from another PDF. It does not provide support for any other file formats.
>
> Most barcodes I've encountered in PDFs use special fonts, rather than graphics.

Can't remember if the 1.8.9 version can work properly, i.e. embed the 
font. And yes, a dedicated font best. There are some "3 of 9" fonts 
available on the web. With the font I use at work, one has to include 
the text wwith "*", i.e. *12345678*  .

Tilman

>
> -- John
>
>> ----- Mail original -----
>> De: "Maruan Sahyoun" <sa...@fileaffairs.de>
>> À: users@pdfbox.apache.org
>> Envoyé: Jeudi 7 Mai 2015 17:38:54
>> Objet: Re: Embedding an EPS
>>
>> Hi,
>>
>>> Am 07.05.2015 um 17:36 schrieb Tilman Hausherr <TH...@t-online.de>:
>>>
>>> Am 07.05.2015 um 09:15 schrieb phiroc@free.fr:
>>>> Hello,
>>>>
>>>> is it possible to embed an EPS in a PDF, with PDFBox?
>>> No because PDF doesn't support it:
>>> https://forums.adobe.com/thread/285464
>>> https://stackoverflow.com/questions/2029700/how-do-i-embed-eps-into-a-pdf-with-pdfapi2
>> or did you mean to embed the EPS file as an attachment to the PDF?
>>
>> BR
>> Maruan
>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Re: Embedding an EPS

Posted by John Hewson <jo...@jahewson.com>.
> On 7 May 2015, at 09:04, phiroc@free.fr wrote:
> 
> I would like to generate a barcode, then embed it in the PDF.
> 
> The O'Reilly 'Developing with PDF' book says that you can use XObjects to embed vectorial images (such as, perhaps, EPS). Has anyone here ever tried it?

I have that book too, it actually says "PDF doesn't really have the concept of a vector image such as an EPS or EMF" (p58). It's description of what an Form XObject is is rather brief though. To clarify, it's a way of embedding an existing PDF content stream, e.g. perhaps a diagram or a page from another PDF. It does not provide support for any other file formats.

Most barcodes I've encountered in PDFs use special fonts, rather than graphics.

-- John

> ----- Mail original -----
> De: "Maruan Sahyoun" <sa...@fileaffairs.de>
> À: users@pdfbox.apache.org
> Envoyé: Jeudi 7 Mai 2015 17:38:54
> Objet: Re: Embedding an EPS
> 
> Hi,
> 
>> Am 07.05.2015 um 17:36 schrieb Tilman Hausherr <TH...@t-online.de>:
>> 
>> Am 07.05.2015 um 09:15 schrieb phiroc@free.fr:
>>> Hello,
>>> 
>>> is it possible to embed an EPS in a PDF, with PDFBox?
>> 
>> No because PDF doesn't support it:
>> https://forums.adobe.com/thread/285464
>> https://stackoverflow.com/questions/2029700/how-do-i-embed-eps-into-a-pdf-with-pdfapi2
> 
> or did you mean to embed the EPS file as an attachment to the PDF?
> 
> BR
> Maruan
> 
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Re: Embedding an EPS

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 07.05.2015 um 18:04 schrieb phiroc@free.fr:
> I would like to generate a barcode, then embed it in the PDF.
>
> The O'Reilly 'Developing with PDF' book says that you can use XObjects to embed vectorial images (such as, perhaps, EPS). Has anyone here ever tried it?

They probably mean XForms. See e.g. the SuperimposePage example. A XForm 
is almost like a PDF within a PDF.

However why make your life so complex? There are barcode libraries and 
barcode fonts, you can put it in an image and then use that one.

Tilman



>
> ----- Mail original -----
> De: "Maruan Sahyoun" <sa...@fileaffairs.de>
> À: users@pdfbox.apache.org
> Envoyé: Jeudi 7 Mai 2015 17:38:54
> Objet: Re: Embedding an EPS
>
> Hi,
>
>> Am 07.05.2015 um 17:36 schrieb Tilman Hausherr <TH...@t-online.de>:
>>
>> Am 07.05.2015 um 09:15 schrieb phiroc@free.fr:
>>> Hello,
>>>
>>> is it possible to embed an EPS in a PDF, with PDFBox?
>> No because PDF doesn't support it:
>> https://forums.adobe.com/thread/285464
>> https://stackoverflow.com/questions/2029700/how-do-i-embed-eps-into-a-pdf-with-pdfapi2
>>
> or did you mean to embed the EPS file as an attachment to the PDF?
>
> BR
> Maruan
>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Re: Embedding an EPS

Posted by ph...@free.fr.
I would like to generate a barcode, then embed it in the PDF.

The O'Reilly 'Developing with PDF' book says that you can use XObjects to embed vectorial images (such as, perhaps, EPS). Has anyone here ever tried it?

----- Mail original -----
De: "Maruan Sahyoun" <sa...@fileaffairs.de>
À: users@pdfbox.apache.org
Envoyé: Jeudi 7 Mai 2015 17:38:54
Objet: Re: Embedding an EPS

Hi,

> Am 07.05.2015 um 17:36 schrieb Tilman Hausherr <TH...@t-online.de>:
> 
> Am 07.05.2015 um 09:15 schrieb phiroc@free.fr:
>> Hello,
>> 
>> is it possible to embed an EPS in a PDF, with PDFBox?
> 
> No because PDF doesn't support it:
> https://forums.adobe.com/thread/285464
> https://stackoverflow.com/questions/2029700/how-do-i-embed-eps-into-a-pdf-with-pdfapi2
> 

or did you mean to embed the EPS file as an attachment to the PDF?

BR
Maruan

> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Re: Embedding an EPS

Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
Hi,

> Am 07.05.2015 um 17:36 schrieb Tilman Hausherr <TH...@t-online.de>:
> 
> Am 07.05.2015 um 09:15 schrieb phiroc@free.fr:
>> Hello,
>> 
>> is it possible to embed an EPS in a PDF, with PDFBox?
> 
> No because PDF doesn't support it:
> https://forums.adobe.com/thread/285464
> https://stackoverflow.com/questions/2029700/how-do-i-embed-eps-into-a-pdf-with-pdfapi2
> 

or did you mean to embed the EPS file as an attachment to the PDF?

BR
Maruan

> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Re: Embedding an EPS

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 07.05.2015 um 09:15 schrieb phiroc@free.fr:
> Hello,
>
> is it possible to embed an EPS in a PDF, with PDFBox?

No because PDF doesn't support it:
https://forums.adobe.com/thread/285464
https://stackoverflow.com/questions/2029700/how-do-i-embed-eps-into-a-pdf-with-pdfapi2





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org