pdf2ps still omits text field data during print #674

Closed
michaelrsweet opened this Issue Apr 9, 2004 · 9 comments

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Apr 9, 2004

Version: 1.1.20
CUPS.org User: pete.gajrias

This is a follow up to :

http://www.cups.org/str.php?L663

Made the change to pdftops
flags = 4;

Problem still exists.
Heres a way to test it

1.open any pdf in acrobat
2.add a text field to it with some text inside it
3.save & exit
4.drop the pdf into linux
5.lp foo.pdf
6.the pdf prints with whatever was on there minus the newly added text field

ive supplied a test.pdf file
the first page contains 2 text fields with text entered by me.
when sent to the printer via cups in linux the 1st page should print with the text i've added

if anyone is able to replicate & find a resoulution please let me know

regards,
pete

Collaborator

michaelrsweet commented Apr 9, 2004

CUPS.org User: pete.gajrias

Thought I'd mention this

i use pdf2ps to convert that test.pdf
to test.ps & then do an lp test.ps & it prints perfectly

so the bug appears to be in pdftops

Collaborator

michaelrsweet commented Apr 9, 2004

CUPS.org User: mike

Try the attached patch and let me know if you have any other problems...

Collaborator

michaelrsweet commented Apr 9, 2004

CUPS.org User: mike

Fixed in CVS - the anonymous CVS repository will be updated at midnight EST.

Collaborator

michaelrsweet commented Apr 9, 2004

CUPS.org User: pete.gajrias

nope still doesnt work.
should this still be in Gfx.cxx or should i revert to flags=0;
flags = 4;

thanks
pete

Collaborator

michaelrsweet commented Apr 9, 2004

CUPS.org User: pete.gajrias

fyi,
i am applying these patches to 1.1.20

Collaborator

michaelrsweet commented Apr 11, 2004

CUPS.org User: mike

OK, can you grab the current CVS version and test against that?

Collaborator

michaelrsweet commented Apr 12, 2004

CUPS.org User: pete.gajrias

mike,
ill test in a day or so. i dont have another box available
at the moment thats not production.
if anyone else is following this str could you please
test this patch in the meantime.

thanks
pete

Collaborator

michaelrsweet commented Apr 28, 2004

CUPS.org User: mike

This STR has not been updated by the submitter for two or more weeks and has been closed as required by the CUPS Configuration Management Plan. If the issue still requires resolution, please re-submit a new STR.

Collaborator

michaelrsweet commented Apr 28, 2004

"str674.patch":

Index: Annot.cxx

RCS file: /development/cvs/cups/pdftops/Annot.cxx,v
retrieving revision 1.2
diff -u -r1.2 Annot.cxx
--- Annot.cxx 13 Dec 2002 20:19:23 -0000 1.2
+++ Annot.cxx 9 Apr 2004 20:16:20 -0000
@@ -97,7 +97,7 @@

Annots::Annots(XRef *xref, Object *annotsObj) {
Annot *annot;

  • Object obj1, obj2;
  • Object obj1;
    int size;
    int i;

@@ -108,21 +108,16 @@
if (annotsObj->isArray()) {
for (i = 0; i < annotsObj->arrayGetLength(); ++i) {
if (annotsObj->arrayGet(i, &obj1)->isDict()) {

  • obj1.dictLookup("Subtype", &obj2);
  • if (obj2.isName("Widget") ||
  •   obj2.isName("Stamp")) {
    
  • annot = new Annot(xref, obj1.getDict());
    
  • if (annot->isOk()) {
    
  •   if (nAnnots >= size) {
    
  •     size += 16;
    
  •     annots = (Annot **)grealloc(annots, size \* sizeof(Annot *));
    
  •   }
    
  •   annots[nAnnots++] = annot;
    
  • } else {
    
  •   delete annot;
    
  • annot = new Annot(xref, obj1.getDict());
  • if (annot->isOk()) {
  • if (nAnnots >= size) {
    
  •   size += 16;
    
  •   annots = (Annot **)grealloc(annots, size \* sizeof(Annot *));
    
    }
  • annots[nAnnots++] = annot;
    
  • } else {
  • delete annot;
    
    }
  • obj2.free();
    }
    obj1.free();
    }

michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment