1 Replies - 216 Views - Last Post: 16 October 2015 - 02:54 AM Rate Topic: -----

#1 vishal kaushish  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 52
  • Joined: 09-March 15

How to append the pdf files that contains editable forms

Posted 16 October 2015 - 12:03 AM

I want to add some contents in a pdf file using perl code.
I have 2 pdf files:

1 pdf file contains plain text
2nd pdf file contains forms

Below mentioned code easily add the new page with some text in pdf file contains plain text

But when run the same on pdf file that contains forms, it shows below error:

The PDF file uses a cross-reference stream, which is not yet supported (see Know
n Issues in the PDF::API2 documentation) at C:\Perl\lib/PDF/API2/Basic/PDF/File.
pm line 1048.

	use strict;
	use warnings;
	use PDF::API2;
	my $pdf = PDF::API2->open('file.pdf');

	# Add a blank page
	my $page = $pdf->page();

	# Add some text to the page
	my $text = $page->text();
	my $font = $pdf->corefont('Helvetica-Bold');
	$text->font($font, 20);
	$text->translate(200, 700);
	$text->text('add some text');
	$pdf->saveas('file.pdf');




Could any body please provide some solution how to edit the pdf that have editable forms

Is This A Good Question/Topic? 0
  • +

Replies To: How to append the pdf files that contains editable forms

#2 Atli  Icon User is offline

  • Enhance Your Calm
  • member icon

Reputation: 4238
  • View blog
  • Posts: 7,216
  • Joined: 08-June 10

Re: How to append the pdf files that contains editable forms

Posted 16 October 2015 - 02:54 AM

Don't post the same question multiple times. If you post in the wrong forum, use the Report button to ask that it be moved.

Closed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1