Can Lasso do cut-and-paste from a PDF

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Can Lasso do cut-and-paste from a PDF

David Bergkvist
I need to do cut-and-paste from one PDF to another and would like to know if I can make Lasso save my day. Been looking over the PDF tags but can't find any that seem to solve my needs.

The situation is that I get shipping labels in a wasteful format (two small labels on each A4) and need to split and crop each page (or cut-and-paste certain areas from each page to a new page in another PDF with other format).

Can Lasso do any magic for me on this? Or any other suggestions?

Thank's

/David


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Can Lasso do cut-and-paste from a PDF

Jolle Carlestam-2
If it’s ok to have the end result an image you can do this using the image tags.
First convert the pdf to a high resolution image then crop the image to only hold the labels.

HDB
Jolle

13 feb 2015 kl. 09:38 skrev David Bergkvist <[hidden email]>:

> I need to do cut-and-paste from one PDF to another and would like to know if I can make Lasso save my day. Been looking over the PDF tags but can't find any that seem to solve my needs.
>
> The situation is that I get shipping labels in a wasteful format (two small labels on each A4) and need to split and crop each page (or cut-and-paste certain areas from each page to a new page in another PDF with other format).
>
> Can Lasso do any magic for me on this? Or any other suggestions?
>
> Thank's
>
> /David
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Can Lasso do cut-and-paste from a PDF

David Bergkvist
Well, since I have a multi-page PDF with the labels it would be really sweet if it could be turned into a new multi-page PDF with only one label per page and in a smaller size so it could be printed on a label printer.

But trying your route. Can I do high res image of each page in a PDF, crop it and place the image into a new PDF?

Best regards,

/David

13 feb 2015 kl. 10:15 skrev Jolle Carlestam <[hidden email]>:

> If it’s ok to have the end result an image you can do this using the image tags.
> First convert the pdf to a high resolution image then crop the image to only hold the labels.
>
> HDB
> Jolle
>
> 13 feb 2015 kl. 09:38 skrev David Bergkvist <[hidden email]>:
>
>> I need to do cut-and-paste from one PDF to another and would like to know if I can make Lasso save my day. Been looking over the PDF tags but can't find any that seem to solve my needs.
>>
>> The situation is that I get shipping labels in a wasteful format (two small labels on each A4) and need to split and crop each page (or cut-and-paste certain areas from each page to a new page in another PDF with other format).
>>
>> Can Lasso do any magic for me on this? Or any other suggestions?
>>
>> Thank's
>>
>> /David
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Can Lasso do cut-and-paste from a PDF

Jolle Carlestam-2
13 feb 2015 kl. 11:15 skrev David Bergkvist <[hidden email]>:

> But trying your route. Can I do high res image of each page in a PDF, crop it and place the image into a new PDF?

Yes

HDB
Jolle

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Can Lasso do cut-and-paste from a PDF

Bil Corry-3
In reply to this post by David Bergkvist
Most likely the addresses are embedded in the PDF as text (pop it open in a
text editor and look).  With some command-line magic, you can probably
extract the addresses using some combination of grep and strings.  If you
can't find the addresses, it may be the PDF is compressed, and you might
have better luck uncompressing it first (using a command-line PDF tool).


- Bil

On Fri, Feb 13, 2015 at 9:38 AM, David Bergkvist <
[hidden email]> wrote:

> I need to do cut-and-paste from one PDF to another and would like to know
> if I can make Lasso save my day. Been looking over the PDF tags but can't
> find any that seem to solve my needs.
>
> The situation is that I get shipping labels in a wasteful format (two
> small labels on each A4) and need to split and crop each page (or
> cut-and-paste certain areas from each page to a new page in another PDF
> with other format).
>
> Can Lasso do any magic for me on this? Or any other suggestions?
>
> Thank's
>
> /David
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Can Lasso do cut-and-paste from a PDF

Peter D Bethke
I’ve had good success in the past with command line PDF tools and Lasso. there are a ton of them out there.

My suggestion would be to use one to convert the PDF to a test file and use grep as mentioned by Bil to extract the addresses. You could probably do both on the command line if you needed to and pass the result back to lasso.

Peter

> On Feb 13, 2015, at 7:23 AM, Bil Corry <[hidden email]> wrote:
>
> Most likely the addresses are embedded in the PDF as text (pop it open in a
> text editor and look).  With some command-line magic, you can probably
> extract the addresses using some combination of grep and strings.  If you
> can't find the addresses, it may be the PDF is compressed, and you might
> have better luck uncompressing it first (using a command-line PDF tool).
>
>
> - Bil
>
> On Fri, Feb 13, 2015 at 9:38 AM, David Bergkvist <
> [hidden email]> wrote:
>
>> I need to do cut-and-paste from one PDF to another and would like to know
>> if I can make Lasso save my day. Been looking over the PDF tags but can't
>> find any that seem to solve my needs.
>>
>> The situation is that I get shipping labels in a wasteful format (two
>> small labels on each A4) and need to split and crop each page (or
>> cut-and-paste certain areas from each page to a new page in another PDF
>> with other format).
>>
>> Can Lasso do any magic for me on this? Or any other suggestions?
>>
>> Thank's
>>
>> /David
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Can Lasso do cut-and-paste from a PDF

Peter D Bethke
Sorry - “text” not “test” file.

Peter

> On Feb 13, 2015, at 9:05 AM, Peter D Bethke <[hidden email]> wrote:
>
> I’ve had good success in the past with command line PDF tools and Lasso. there are a ton of them out there.
>
> My suggestion would be to use one to convert the PDF to a test file and use grep as mentioned by Bil to extract the addresses. You could probably do both on the command line if you needed to and pass the result back to lasso.
>
> Peter
>
>> On Feb 13, 2015, at 7:23 AM, Bil Corry <[hidden email]> wrote:
>>
>> Most likely the addresses are embedded in the PDF as text (pop it open in a
>> text editor and look).  With some command-line magic, you can probably
>> extract the addresses using some combination of grep and strings.  If you
>> can't find the addresses, it may be the PDF is compressed, and you might
>> have better luck uncompressing it first (using a command-line PDF tool).
>>
>>
>> - Bil
>>
>> On Fri, Feb 13, 2015 at 9:38 AM, David Bergkvist <
>> [hidden email]> wrote:
>>
>>> I need to do cut-and-paste from one PDF to another and would like to know
>>> if I can make Lasso save my day. Been looking over the PDF tags but can't
>>> find any that seem to solve my needs.
>>>
>>> The situation is that I get shipping labels in a wasteful format (two
>>> small labels on each A4) and need to split and crop each page (or
>>> cut-and-paste certain areas from each page to a new page in another PDF
>>> with other format).
>>>
>>> Can Lasso do any magic for me on this? Or any other suggestions?
>>>
>>> Thank's
>>>
>>> /David
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Can Lasso do cut-and-paste from a PDF

Carl Ketterling
In reply to this post by Peter D Bethke
I¹ve done this, too.  I was taking shipping labels that come with
instructions and cutting off the instructions using croppdf.sh before
printing (to save labels).  Like Peter said, there are many command line
utilities to do this type of thing.

Carl


From: Peter D Bethke <[hidden email]>
Reply-To: <[hidden email]>
Date: Fri, 13 Feb 2015 09:05:30 -0500
To: Lasso Talk <[hidden email]>
Subject: Re: Can Lasso do cut-and-paste from a PDF

I¹ve had good success in the past with command line PDF tools and Lasso.
there are a ton of them out there. My suggestion would be to use one to
convert the PDF to a test file and use grep as mentioned by Bil to extract
the addresses. You could probably do both on the command line if you needed
to and pass the result back to lasso. Peter > On Feb 13, 2015, at 7:23 AM,
Bil Corry <[hidden email]> wrote: > > Most likely the addresses are embedded
in the PDF as text (pop it open in a > text editor and look).  With some
command-line magic, you can probably > extract the addresses using some
combination of grep and strings.  If you > can't find the addresses, it may
be the PDF is compressed, and you might > have better luck uncompressing it
first (using a command-line PDF tool). > > > - Bil > > On Fri, Feb 13, 2015
at 9:38 AM, David Bergkvist < > [hidden email]> wrote: >
>> I need to do cut-and-paste from one PDF to another and would like to know
>> if I can make Lasso save my day. Been looking over the PDF tags but can't
>> find any that seem to solve my needs. >> >> The situation is that I get
shipping labels in a wasteful format (two >> small labels on each A4) and
need to split and crop each page (or >> cut-and-paste certain areas from
each page to a new page in another PDF >> with other format). >> >> Can
Lasso do any magic for me on this? Or any other suggestions? >> >> Thank's
>> >> /David >> >> >>
############################################################# >> >> This
message is sent to you because you are subscribed to >>  the mailing list
Lasso [hidden email] >> Official list archives available at
http://www.lassotalk.com >> To unsubscribe, E-mail to:
<[hidden email]> >> Send administrative queries to
<[hidden email]> >> > >
############################################################# > > This
message is sent to you because you are subscribed to >  the mailing list
Lasso [hidden email] > Official list archives available at
http://www.lassotalk.com > To unsubscribe, E-mail to:
<[hidden email]> > Send administrative queries to
<[hidden email]>
############################################################# This message
is sent to you because you are subscribed to  the mailing list Lasso
[hidden email] Official list archives available at
http://www.lassotalk.com To unsubscribe, E-mail to:
<[hidden email]> Send administrative queries to
<[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>